summaryrefslogtreecommitdiff
path: root/src/ui/include/widget_top_bar.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/include/widget_top_bar.hpp')
-rw-r--r--src/ui/include/widget_top_bar.hpp45
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