Unravel Engine C++ Reference
Loading...
Searching...
No Matches
editor_settings_panel.h
Go to the documentation of this file.
1#pragma once
2
3#include <base/basetypes.hpp>
4#include <context/context.hpp>
5
7
8namespace unravel
9{
10
11class imgui_panels;
12
14{
15public:
17
18 void on_frame_ui_render(rtti::context& ctx, const char* name);
19
20 void show(bool s);
21
22private:
23 void draw_ui(rtti::context& ctx);
24
25 imgui_panels* parent_{};
26 bool show_request_{};
27
28 using callback_t = std::function<void(rtti::context&)>;
29
30 struct setting_entry
31 {
32 std::string id;
33 callback_t callback;
34 };
35
36 setting_entry selected_entry_{};
37
38};
39} // namespace unravel
editor_settings_panel(imgui_panels *parent)
void on_frame_ui_render(rtti::context &ctx, const char *name)
std::string name
Definition hub.cpp:27