#include "ScreenshotUi.h" #include namespace tt::app::screenshot { static void onShow(AppContext& app, lv_obj_t* parent) { auto ui = std::static_pointer_cast(app.getData()); create_ui(app, ui, parent); } static void onStart(AppContext& app) { auto ui = std::shared_ptr(new ScreenshotUi()); app.setData(ui); // Ensure data gets deleted when no more in use } extern const AppManifest manifest = { .id = "Screenshot", .name = "_Screenshot", // So it gets put at the bottom of the desktop and becomes less visible on small screen devices .icon = LV_SYMBOL_IMAGE, .type = TypeSystem, .onStart = onStart, .onShow = onShow, }; } // namespace