mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 10:53:17 +00:00
- Added `AppHub` app - Added `AppHubDetails` app - Added `cJSON` dependency - Renamed `AppSim` module to `FirmwareSim` - Added extra `tt::app::alertdialg::start()` - Renamed `addApp()`, `removeApp()`, `findAppById()` and `getApps()` to `addAppManifest()`, `removeAppManifest()`, `findAppManifestById()` and `getAppManifests()` - Added `tt::lvgl::toolbar_clear_actions()` - Added `tt::network::EspHttpClient` as a thread-safe wrapper around `esp_http_client` - Added `tt::network::http::download()` to download files - Added `tt::network::ntp::isSynced()` - When time is synced, the timestamp is stored in NVS flash. On boot, it is restored. This helps SSL connections when doing a quick reset: when WiFi reconnects, the user doesn't have to wait for NTP sync before SSL works. - Added `tt::json::Reader` as a `cJSON` wrapper - Added `int64_t` support for `Preferences` - Added `int64_t` support for `Bundle` - Added dependencies: `cJSON`, `esp-tls` - When time is synced via NTP, disable time sync. - Added docs to 'tt::file::` functions - Added `tt::string::join()` that works with `std::vector<const char*>` - Fixed `tt::file::getLastPathSegment()` for the scenario when a path was passed with only a single segment - Set `CONFIG_ESP_MAIN_TASK_STACK_SIZE=5120` (from about 3k) for all boards - Set `CONFIG_MBEDTLS_SSL_PROTO_TLS1_3=y` for all boards
43 lines
1.5 KiB
C++
43 lines
1.5 KiB
C++
#include "tt_lvgl_toolbar.h"
|
|
#include <Tactility/lvgl/Toolbar.h>
|
|
|
|
extern "C" {
|
|
|
|
lv_obj_t* tt_lvgl_toolbar_create(lv_obj_t* parent, const char* title) {
|
|
return tt::lvgl::toolbar_create(parent, title);
|
|
}
|
|
|
|
lv_obj_t* tt_lvgl_toolbar_create_for_app(lv_obj_t* parent, AppHandle context) {
|
|
return tt::lvgl::toolbar_create(parent, *(tt::app::AppContext*)context);
|
|
}
|
|
|
|
void tt_lvgl_toolbar_set_title(lv_obj_t* obj, const char* title) {
|
|
tt::lvgl::toolbar_set_title(obj, title);
|
|
}
|
|
|
|
void tt_lvgl_toolbar_set_nav_action(lv_obj_t* obj, const char* icon, lv_event_cb_t callback, void* callbackEventUserData) {
|
|
tt::lvgl::toolbar_set_nav_action(obj, icon, callback, callbackEventUserData);
|
|
}
|
|
|
|
lv_obj_t* tt_lvgl_toolbar_add_image_button_action(lv_obj_t* obj, const char* imagePath, lv_event_cb_t callback, void* callbackUserData) {
|
|
return tt::lvgl::toolbar_add_image_button_action(obj, imagePath, callback, callbackUserData);
|
|
}
|
|
|
|
lv_obj_t* tt_lvgl_toolbar_add_text_button_action(lv_obj_t* obj, const char* text, lv_event_cb_t callback, void* callbackUserData) {
|
|
return tt::lvgl::toolbar_add_text_button_action(obj, text, callback, callbackUserData);
|
|
}
|
|
|
|
lv_obj_t* tt_lvgl_toolbar_add_switch_action(lv_obj_t* obj) {
|
|
return tt::lvgl::toolbar_add_switch_action(obj);
|
|
}
|
|
|
|
lv_obj_t* tt_lvgl_toolbar_add_spinner_action(lv_obj_t* obj) {
|
|
return tt::lvgl::toolbar_add_spinner_action(obj);
|
|
}
|
|
|
|
void tt_lvgl_toolbar_clear_actions(lv_obj_t* obj) {
|
|
tt::lvgl::toolbar_clear_actions(obj);
|
|
}
|
|
|
|
}
|