Class ImGuiLayer#
Defined in File ImGuiLayer.h
Inheritance Relationships#
Base Type#
public TRAP::Layer
(Class Layer)
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
-
constexpr ImGuiLayer()#