update src/TODO.md
[zinnia.git] / src / gui.h
blobaeb9f8fc5c8da7c944548573e74d0fabb1cf6110
1 #pragma once
3 #include "state.h"
4 #include <memory>
5 #include <cpptoml.h>
7 class Gui {
8 public:
9 Gui(DemoState *state) :
10 perf_open(false),
11 state(state)
13 this->load_style(cpptoml::parse_file(state->config->stylepath));
16 void render();
18 bool perf_open = false;
19 bool project_overlay_open = true;
21 bool imgui_demo_open = false;
23 private:
24 DemoState *state;
26 void render_project_overlay();
28 void render_menubar();
29 void render_mmb_file();
30 void render_mmb_view();
31 void render_mmb_debug();
33 void load_style(std::shared_ptr<cpptoml::table> style);