diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-07-13 10:58:06 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-07-13 10:58:06 +1000 |
| commit | b6bc6b9e47605ede9bffe50445d1afe3acf0ab49 (patch) | |
| tree | 05c9281c2763919b6a6780191f6ecc54547063ae /src/ui/include/screen.hpp | |
| parent | 2dc700b12f26109d987ad22f530e39d165025656 (diff) | |
| download | tangara-fw-b6bc6b9e47605ede9bffe50445d1afe3acf0ab49.tar.gz | |
Ui polish and fleshing out
Diffstat (limited to 'src/ui/include/screen.hpp')
| -rw-r--r-- | src/ui/include/screen.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/ui/include/screen.hpp b/src/ui/include/screen.hpp index c6b2f137..0ec72a63 100644 --- a/src/ui/include/screen.hpp +++ b/src/ui/include/screen.hpp @@ -12,6 +12,7 @@ #include "core/lv_obj.h" #include "core/lv_obj_tree.h" #include "lvgl.h" +#include "widget_top_bar.hpp" namespace ui { @@ -37,12 +38,20 @@ class Screen { */ virtual auto Tick() -> void {} + auto UpdateTopBar(const widgets::TopBar::State& state) -> void; + auto root() -> lv_obj_t* { return root_; } auto group() -> lv_group_t* { return group_; } protected: + auto CreateTopBar(lv_obj_t* parent, const widgets::TopBar::Configuration&) + -> widgets::TopBar*; + lv_obj_t* const root_; lv_group_t* const group_; + + private: + std::unique_ptr<widgets::TopBar> top_bar_; }; } // namespace ui |
