#pragma once #include "app.h" #include "app_keys.h" #include "app_manager.h" #include "list_model.h" #include "ui/theme.h" namespace roro { // Home screen: lists the visible Apps; Select opens one. class LauncherApp : public App { public: void setManager(AppManager& manager) { manager_ = &manager; } void onEnter() override; bool onKey(const KeyEvent& e) override; void draw(Canvas& c) override; void help(std::vector& out) const override { keys::add(out, keys::kLauncher); } private: AppManager* manager_ = nullptr; ListModel list_{theme::kContent.h / theme::kLineHeight}; }; } // namespace roro