#pragma once #include "desktop.h" #include "tft_handler.h" #include "event_manager.h" #include #include "GLOBALS.h" class Desktop_Hander : public IEventListener { private: TFT_Handler* tft; DISPLAY_STATE* display_state; std::vector items; void handle_desktop_click(const CLICK_EVENT& event); public: void init(TFT_Handler* th, DISPLAY_STATE* ds); void re_draw_desktop(); void draw_background(int color); void draw_task_bar(int color); void draw_desktop_Item(const Desktop_Item& desktop_item); // IEventListener interface void on_click_event(const CLICK_EVENT& event) override; };