|
Muto 0.0.1
|
Event for registering window resize. More...
#include <ApplicationEvent.h>
Public Member Functions | |
| unsigned int | GetHeight () const |
| Get the new height of the window. | |
| unsigned int | GetWidth () const |
| Get the new width of the window. | |
| std::string | ToString () const override |
| Convert the event to a string representation. | |
| WindowResizeEvent (unsigned int width, unsigned int height) | |
| Construct a WindowResizeEvent with the specified width and height. | |
Public Member Functions inherited from Muto::Event | |
| virtual int | GetCategoryFlags () const =0 |
| Get the category flags of the event. | |
| virtual EventType | GetEventType () const =0 |
| Get the type of the event. | |
| virtual const char * | GetName () const =0 |
| Get the name of the event. | |
| bool | IsInCategory (EventCategory category) |
| Check if the event is in a specific category. | |
| virtual | ~Event ()=default |
Private Attributes | |
| unsigned int | m_Height |
| unsigned int | m_Width |
Additional Inherited Members | |
Public Attributes inherited from Muto::Event | |
| bool | Handled = false |
| Indicates whether the event has been handled. | |
Event for registering window resize.
Construct a WindowResizeEvent with the specified width and height.
| width | The new width of the window. |
| height | The new height of the window. |
Get the new height of the window.
References m_Height.
Referenced by Muto::Application::OnWindowResize(), and Muto::OrthographicCameraController::OnWindowResized().
Get the new width of the window.
References m_Width.
Referenced by Muto::Application::OnWindowResize(), and Muto::OrthographicCameraController::OnWindowResized().
|
inlineoverridevirtual |
Referenced by GetHeight(), ToString(), and WindowResizeEvent().
Referenced by GetWidth(), ToString(), and WindowResizeEvent().