Class ImGuiLayer#

Inheritance Relationships#

Base Type#

Class Documentation#

class ImGuiLayer : public TRAP::Layer#

Remark

Headless mode: This class is not available in headless mode.

Public Functions

constexpr ImGuiLayer()#

Constructor.

consteval ImGuiLayer(const ImGuiLayer&) noexcept = delete#

Copy constructor.

consteval ImGuiLayer &operator=(const ImGuiLayer&) noexcept = delete#

Copy assignment operator.

consteval ImGuiLayer(ImGuiLayer&&) noexcept = delete#

Move constructor.

consteval ImGuiLayer &operator=(ImGuiLayer&&) noexcept = delete#

Move assignment operator.

~ImGuiLayer() override = default#

Destructor.

virtual void OnAttach() override#

Called when pushed to a layer stack.

virtual void OnDetach() override#

Called when popped from a layer stack.

virtual void OnEvent(Events::Event &event) override#

Called when an event occurs.

Parameters:

event – Event that occurred.

constexpr void BlockEvents(bool block) noexcept#

Block ImGui event handling.

Parameters:

block – Whether to block events or not

Public Static Functions

static void Begin()#

Begin a new ImGui frame.

static void End()#

End an ImGui frame.

static void SetDarkThemeColors()#

Sets a dark theme for ImGui.

static void SetImGuizmoStyle()#

Sets the style for ImGuizmo.