aboutsummaryrefslogtreecommitdiff
path: root/src/components/Menu.hpp
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-02-12 19:13:34 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-02-12 19:13:34 +0100
commita359219e33fdf3afb5ddfbb084563054a947b106 (patch)
tree91dab9c21321f73152993183cd6e8cf4a04017f8 /src/components/Menu.hpp
Create project
Diffstat (limited to 'src/components/Menu.hpp')
-rw-r--r--src/components/Menu.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/components/Menu.hpp b/src/components/Menu.hpp
new file mode 100644
index 0000000..ca33ac3
--- /dev/null
+++ b/src/components/Menu.hpp
@@ -0,0 +1,12 @@
+#include "Component.hpp"
+
+namespace cgeditor {
+class Menu : public Component {
+ std::vector<std::string> entries;
+ /// @brief Set to true if the menu was open during the last editor draw
+ bool WasOpen;
+public:
+ Menu(Status *s);
+ void Refresh();
+};
+} // namespace cgeditor \ No newline at end of file