Unravel Engine C++ Reference
Loading...
Searching...
No Matches
project_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, const std::string& hint);
21
22private:
23 void draw_ui(rtti::context& ctx);
24
25 imgui_panels* parent_{};
26 bool show_request_{};
27 std::string hint_{};
28
29 using callback_t = std::function<void(rtti::context&)>;
30
31 struct setting_entry
32 {
33 std::string id;
34 callback_t callback;
35 };
36
37 setting_entry selected_entry_{};
38};
39} // namespace unravel
void on_frame_ui_render(rtti::context &ctx, const char *name)
void show(bool s, const std::string &hint)
std::string name
Definition hub.cpp:27