Photon Editor Library 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ImguiEditorPanel.h
Go to the documentation of this file.
1#pragma once
2
4
5#include <string>
6
7namespace ph::editor
8{
9
18
27
29{
30public:
32 {
33 std::string title;
34 std::string icon;
35 std::string tooltip;
38 bool isOpenedByDefault = false;
39 bool isCloseable = true;
40 bool useMenubar = true;
41 bool useSidebar = false;
42 };
43
44 explicit ImguiEditorPanel(ImguiEditorUIProxy editorUI);
46
47 virtual void buildWindow(const char* windowIdName, bool* isOpening) = 0;
48 virtual auto getAttributes() const -> Attributes = 0;
49
51
52private:
53 ImguiEditorUIProxy m_editorUI;
54};
55
57{
58 return m_editorUI;
59}
60
61}// end namespace ph::editor
Definition ImguiEditorPanel.h:29
ImguiEditorUIProxy getEditorUI() const
Definition ImguiEditorPanel.h:56
virtual auto getAttributes() const -> Attributes=0
virtual void buildWindow(const char *windowIdName, bool *isOpening)=0
ImguiEditorPanel(ImguiEditorUIProxy editorUI)
Definition ImguiEditorPanel.cpp:6
Definition ImguiEditorUIProxy.h:16
Definition ph_editor.h:10
EImguiPanelCategory
Definition ImguiEditorPanel.h:11
@ Tools
Definition ImguiEditorPanel.h:15
@ Debug
Definition ImguiEditorPanel.h:16
@ File
Definition ImguiEditorPanel.h:13
@ Window
Definition ImguiEditorPanel.h:12
@ Edit
Definition ImguiEditorPanel.h:14
EImguiPanelDockingLot
Definition ImguiEditorPanel.h:20
@ Bottom
Definition ImguiEditorPanel.h:23
@ None
Definition ImguiEditorPanel.h:21
@ UpperRight
Definition ImguiEditorPanel.h:24
@ Center
Definition ImguiEditorPanel.h:22
@ LowerRight
Definition ImguiEditorPanel.h:25
Definition ImguiEditorPanel.h:32
bool isOpenedByDefault
Definition ImguiEditorPanel.h:38
EImguiPanelCategory category
Definition ImguiEditorPanel.h:36
std::string tooltip
Definition ImguiEditorPanel.h:35
bool useMenubar
Definition ImguiEditorPanel.h:40
EImguiPanelDockingLot preferredDockingLot
Definition ImguiEditorPanel.h:37
bool useSidebar
Definition ImguiEditorPanel.h:41
std::string title
Definition ImguiEditorPanel.h:33
bool isCloseable
Definition ImguiEditorPanel.h:39
std::string icon
Definition ImguiEditorPanel.h:34