diff options
| author | jacqueline <me@jacqueline.id.au> | 2024-01-15 12:31:20 +1100 |
|---|---|---|
| committer | jacqueline <me@jacqueline.id.au> | 2024-01-15 12:31:20 +1100 |
| commit | 7cdcd44e0ca10ebdc796638190ed1d9b45d99ef0 (patch) | |
| tree | 637b43848d17c9dbdc1688cb4733eb235f223e37 /src/ui/include/widget_top_bar.hpp | |
| parent | 0e04eb918ec976017276306181282769d8896c83 (diff) | |
| download | tangara-fw-7cdcd44e0ca10ebdc796638190ed1d9b45d99ef0.tar.gz | |
Begin migration of remaining screens to Lua
Diffstat (limited to 'src/ui/include/widget_top_bar.hpp')
| -rw-r--r-- | src/ui/include/widget_top_bar.hpp | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/src/ui/include/widget_top_bar.hpp b/src/ui/include/widget_top_bar.hpp deleted file mode 100644 index b240188c..00000000 --- a/src/ui/include/widget_top_bar.hpp +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2023 jacqueline <me@jacqueline.id.au> - * - * SPDX-License-Identifier: GPL-3.0-only - */ - -#pragma once - -#include <cstdint> -#include <string> - -#include "bindey/binding.h" -#include "lvgl.h" - -#include "memory_resource.hpp" -#include "model_top_bar.hpp" - -namespace ui { - -namespace widgets { - -class TopBar { - public: - struct Configuration { - bool show_back_button; - std::pmr::string title; - }; - - explicit TopBar(lv_obj_t* parent, - const Configuration& config, - models::TopBar& model); - - auto root() -> lv_obj_t* { return container_; } - auto button() -> lv_obj_t* { return back_button_; } - - private: - std::vector<bindey::scoped_binding> bindings_; - - lv_obj_t* container_; - lv_obj_t* back_button_; -}; - -} // namespace widgets - -} // namespace ui |
