2
3
4
5
9#include "Slate/Imgui/ImguiUtils.h"
18
19
20
21
22
24 const std::string& panelName,
30
31
35
36
37
41
42
46
47
53
54
#define BIND_EVENT_FN(x)
Bind Event.
#define SPICES_PROFILE_ZONEN(...)
#define SPICES_PROFILE_ZONE
EventDispatcher(Event &event)
Constructor Function.
This Class store a Specific Event type first and Dispatch a event handle function to it.
This Class is the basic Event Class. Inherit from it and create specific event class.
FrameInfo Class. This class defines the FrameInfo data.
ImguiSlate(const std::string &panelName, FrameInfo &frameInfo)
Constructor Function. Init with Slate's name.
bool m_IsResized
Boolean of whether resized this frame.
This Class defines the basic behaves of specific slate. When we add an new Slate, we need inherit fro...
uint32_t m_Index
This viewport index.
bool OnWindowResizeOver(WindowResizeOverEvent &event) const
Event Dispatcher target. Registry on Windows Resized.
void Toggle() const
Toggle viewport.
bool OnToggleSlate(KeyPressedEvent &event) const
Toggle focused slate.
ImguiViewport(const std::string &panelName, FrameInfo &frameInfo, uint32_t index=0)
Constructor Function.
bool OnSlateResize(SlateResizeEvent &event) const
Event Dispatcher target. Registry on Slate(Viewport) Resized.
virtual void QueryIsResizedThisFrame(const ImVec2 &thisFrameSize) override
Query whether viewport is resized this frame. Clamp min m_panelsize value to 1 here,...
virtual void OnRender() override
This interface is called On SlateRenderer Render.
std::pair< uint32_t, uint32_t > GetMousePosInViewport() const
Get Mouse Position Relative Viewport(Might be negative value).
virtual void OnEvent(Event &event) override
This interface is called On Global Event Function Pointer is called.
The ImguiViewport Class. This class defines how to render a viewport.
const int & GetKeyCode() const
Get Key Input Code.
This Class is inherited from KeyEvent Class.
This Class is inherited from Event Class. Called by Viewport Resize.
This Class handles our engine time step during frames. Global Unique.