#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; int handle_desktop_click(CLICK_EVENT event); bool handle_taskbar_click(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(Desktop_Item desktop_item); // IEventListener interface void on_click_event(CLICK_EVENT event) override; };