Photon Editor Library 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ImguiEditorSettings.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <vector>
6
7namespace ph::editor
8{
9
10class EditorSettings;
11
13{
14public:
15 explicit ImguiEditorSettings(ImguiEditorUIProxy editorUI);
16
17 void buildWindow(const char* windowIdName, bool* isOpening) override;
18 auto getAttributes() const -> Attributes override;
19
20private:
21 // Update `CATEGORY_NAMES` is modified
22 enum ECategory : int
23 {
24 General = 0,
25 Startup,
26 Control
27 };
28
29 static constexpr const char* CATEGORY_NAMES[] =
30 {
31 "General",
32 "Startup",
33 "Control"
34 };
35
36 void buildCategorySelectionContent();
37 void buildSettingsContent();
38 void buildGeneralCategoryContent();
39 void buildStartupCategoryContent();
40 void buildControlCategoryContent();
41
42 int m_category;
43 std::vector<char> m_stringDisplayBuffer;
44};
45
46}// end namespace ph::editor
Definition ImguiEditorPanel.h:29
Definition ImguiEditorSettings.h:13
ImguiEditorSettings(ImguiEditorUIProxy editorUI)
Definition ImguiEditorSettings.cpp:15
void buildWindow(const char *windowIdName, bool *isOpening) override
Definition ImguiEditorSettings.cpp:23
auto getAttributes() const -> Attributes override
Definition ImguiEditorSettings.cpp:67
Definition ImguiEditorUIProxy.h:16
Definition ph_editor.h:10
Definition ImguiEditorPanel.h:32