- Updated RootLayout to manage layout initialization and deinitialization more effectively. - Removed unnecessary dependencies and streamlined event handling for keyboard events. - Enhanced UIHandler to utilize shared pointers for app descriptors, improving memory management. - Added methods for showing and hiding navigation elements in RootLayout. - Introduced textarea widget with instant response by disabling animations. - Improved error handling and logging throughout the UI components.
16 lines
409 B
C
16 lines
409 B
C
#pragma once
|
|
|
|
#include "esp_event.h"
|
|
#include "lvgl.h"
|
|
|
|
ESP_EVENT_DECLARE_BASE(UI_EVENT_BASE);
|
|
|
|
struct KeyboardEventData {
|
|
lv_obj_t* textarea; ///< The textarea that triggered the keyboard event, nullptr if not applicable or for hide event
|
|
};
|
|
|
|
enum EventId {
|
|
UI_EVENT_KEYBOARD_SHOWN = 1, ///< Event ID for keyboard shown event
|
|
UI_EVENT_KEYBOARD_HIDDEN = 2 ///< Event ID for keyboard hidden event
|
|
};
|