diff options
| author | jacqueline <me@jacqueline.id.au> | 2023-07-12 22:34:19 +1000 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2023-07-12 22:34:19 +1000 |
| commit | 8eabeedbb9a487653c6eca9cb814af3cccb29b6e (patch) | |
| tree | 43d1230334a547e40b5de63e9a16fc56a8950842 /src/ui/include/widget_top_bar.hpp | |
| parent | 50bb261f67a0a32a75f7cd76e0a4e4231f6d57c8 (diff) | |
| download | tangara-fw-8eabeedbb9a487653c6eca9cb814af3cccb29b6e.tar.gz | |
Make title bar a common component, some ui nits
Diffstat (limited to 'src/ui/include/widget_top_bar.hpp')
| -rw-r--r-- | src/ui/include/widget_top_bar.hpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/ui/include/widget_top_bar.hpp b/src/ui/include/widget_top_bar.hpp new file mode 100644 index 00000000..9019807f --- /dev/null +++ b/src/ui/include/widget_top_bar.hpp @@ -0,0 +1,30 @@ +/* + * Copyright 2023 jacqueline <me@jacqueline.id.au> + * + * SPDX-License-Identifier: GPL-3.0-only + */ + +#pragma once + +#include <string> + +#include "lvgl.h" + +namespace ui { + +namespace widgets { + +class TopBar { + public: + TopBar(lv_obj_t* parent, lv_group_t* group); + + auto set_title(const std::string&) -> void; + + lv_obj_t* container_; + lv_obj_t* title_; + lv_obj_t* back_button_; +}; + +} // namespace widgets + +} // namespace ui |
