Constructor Function.
Instance a FloattingInfo.
Instance a Gizmos.
Instance a Gizmos.
Instance a FloattingInfo.
Instance a Gizmos.
Instance a Gizmos.
27 {
29
30 {
32
33 m_ViewportContext = std::make_shared<SlateImage>(
"SceneColor",
"SlateRenderer.Slate.Default");
34 }
35
39 {
40 std::stringstream ss;
41 ss <<
"FloatingInfo_" <<
m_Index;
42
44 }
45
49 {
50 std::stringstream ss;
52
54 }
55
59 {
60 std::stringstream ss;
62
64 }
65
69 {
71
72 {
75
77
79 {
82 });
83 }
84 else
85 {
86 m_WindowFlags ^= ImGuiWindowFlags_NoResize & ImGuiWindowFlags_NoMove;
87
90 });
91 }
92 });
93 }
94 {
97
99 {
100 const ImGuiViewport* viewport = ImGui::GetMainViewport();
101 ImGui::SetNextWindowPos(viewport->Pos);
102 ImGui::SetNextWindowSize(viewport->Size);
103
104 m_WindowFlags |= ImGuiWindowFlags_NoResize | ImGuiWindowFlags_NoMove;
105 }
106 });
107 }
108
110 }
111 }
#define SPICES_PROFILE_ZONEN(...)
#define SPICES_PROFILE_ZONE
ImGuiWindowFlags m_WindowFlags
Flags of this window slate.
ImguiSlate(const std::string &panelName, FrameInfo &frameInfo)
Constructor Function. Init with Slate's name.
uint32_t m_Index
This viewport index.
std::shared_ptr< ImguiViewportToolBar > m_ToolBar
The shared pointer of ImguiGizmos.
std::shared_ptr< ImguiGizmos > m_Gizmos
The shared pointer of ImguiGizmos.
std::shared_ptr< scl::behave_state_list< void > > m_ToggleStateList
Toggle behave state list.
bool m_IsToggled
True if this slate toggled this frame.
std::shared_ptr< ImguiFloatingInfo > m_FloatingInfo
The shared pointer of ImguiFloatingInfo.
std::shared_ptr< SlateImage > m_ViewportContext
SlateImage of SceneColor.
static std::shared_ptr< SlateStyleLayout > Get()
Get this single instance.
static std::shared_ptr< SlateRegister > GetRegister()
Get slate register.
behave_state_node< Ret, Args... > * AddNode()
Add a empty node to this list.
void SetState(uint32_t state)
Set Current State.
void PushBehave(const std::string &name, const std::function< Ret(Args...)> &fn)
Push a behave to this state.
static auto AsyncTask(ThreadPoolEnum pool, F &&func, Args &&... args) -> std::future< decltype(func(std::forward< Args >(args)...))>