|
Muto 0.0.1
|
#include <ImGuiLayer.h>
Public Member Functions | |
| virtual void | Begin () |
| virtual void | End () |
| ImGuiLayer () | |
| virtual void | OnAttach () override |
| Called when the layer is attached to the application. | |
| virtual void | OnDetach () override |
| Called when the layer is detached from the application. | |
| virtual void | OnEvent (Event &e) override |
| Called when an event is dispatched to the layer. | |
| virtual void | OnImGuiRender () override |
| Called when the layer should render its ImGui components. | |
| virtual void | SetBlockEvents (bool block) |
| virtual void | SetDarkThemeColors () |
| ~ImGuiLayer () | |
Public Member Functions inherited from Muto::Layer | |
| const std::string & | GetName () const |
| Retrieves the name of the layer for debugging purposes. | |
| Layer (const std::string &name="Layer") | |
| Constructs a Layer with an optional name for debugging purposes. | |
| virtual void | OnRender () |
| Called when the layer should render its contents. | |
| virtual void | OnUpdate (Timestep ts) |
| Called every frame to update the layer with the given timestep. | |
| virtual | ~Layer () |
Protected Attributes | |
| bool | m_BlockEvents = true |
| float | m_Time = 0.0f |
Protected Attributes inherited from Muto::Layer | |
| std::string | m_DebugName |
| The name of the layer assigned at creation, used for debugging. | |
| Muto::ImGuiLayer::ImGuiLayer | ( | ) |
Referenced by Muto::Application::Application(), Muto::Application::Application(), and Muto::OpenGLImGuiLayer::OpenGLImGuiLayer().
| Muto::ImGuiLayer::~ImGuiLayer | ( | ) |
|
virtual |
Reimplemented in Muto::OpenGLImGuiLayer.
Referenced by Muto::OpenGLImGuiLayer::Begin(), and Muto::Application::Run().
|
virtual |
Reimplemented in Muto::OpenGLImGuiLayer.
References Muto::Application::Get(), Muto::Window::GetHeight(), Muto::Window::GetWidth(), and Muto::Application::GetWindow().
Referenced by Muto::OpenGLImGuiLayer::End(), and Muto::Application::Run().
|
overridevirtual |
Called when the layer is attached to the application.
Reimplemented from Muto::Layer.
Reimplemented in Muto::OpenGLImGuiLayer.
References Muto::AssetsDirectory, Muto::Application::Get(), Muto::Application::ResolvePath(), and SetDarkThemeColors().
Referenced by Muto::OpenGLImGuiLayer::OnAttach().
|
overridevirtual |
Called when the layer is detached from the application.
Reimplemented from Muto::Layer.
Reimplemented in Muto::OpenGLImGuiLayer.
Referenced by Muto::OpenGLImGuiLayer::OnDetach().
Called when an event is dispatched to the layer.
| event | The event being dispatched. |
Reimplemented from Muto::Layer.
Reimplemented in Muto::OpenGLImGuiLayer.
References Muto::EC_Keyboard, Muto::EC_Mouse, Muto::Event::Handled, Muto::Event::IsInCategory(), and m_BlockEvents.
Referenced by Muto::OpenGLImGuiLayer::OnEvent().
|
overridevirtual |
Called when the layer should render its ImGui components.
Reimplemented from Muto::Layer.
Reimplemented in Muto::OpenGLImGuiLayer.
Referenced by Muto::OpenGLImGuiLayer::OnImGuiRender().
Reimplemented in Muto::OpenGLImGuiLayer.
References m_BlockEvents.
Referenced by Muto::EditorLayer::OnImGuiRender().
|
virtual |
Reimplemented in Muto::OpenGLImGuiLayer.
Referenced by OnAttach(), and Muto::OpenGLImGuiLayer::SetDarkThemeColors().
Referenced by OnEvent(), SetBlockEvents(), and Muto::OpenGLImGuiLayer::SetBlockEvents().
|
protected |