|
QuasarEngine
Cross-platform 3D engine and editor
|
Sent when the size of the drawing area of the window changes. More...
#include <quasar/events/WindowEvent.h>
Public Member Functions | |
| WindowResizeEvent (std::uint32_t width, std::uint32_t height) | |
| Creates the event with the new size, in pixels. | |
| std::uint32_t | GetWidth () const |
| Returns the new width, in pixels. | |
| std::uint32_t | GetHeight () const |
| Returns the new height, in pixels. | |
| std::string | ToString () const override |
| Returns the event with its size, for example "WindowResize: 1280x720". | |
| Public Member Functions inherited from Quasar::EventOf< EventType::WindowResize, EventCategory::Window > | |
| EventType | GetType () const override |
| Returns the type of the event. | |
| EventCategory | GetCategories () const override |
| Returns all the categories of the event. | |
| Public Member Functions inherited from Quasar::Event | |
| const char * | GetName () const |
| Returns the name of the type of the event, for example "KeyPressed". | |
| bool | IsInCategory (EventCategory category) const |
| Returns true if the event belongs to the given category. | |
| bool | IsHandled () const |
| Returns true if the event was handled. | |
| void | SetHandled (bool handled) |
| Marks the event as handled, or not handled. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from Quasar::EventOf< EventType::WindowResize, EventCategory::Window > | |
| static constexpr EventType | GetStaticType () |
| Returns the type of this event class. | |
| Protected Member Functions inherited from Quasar::Event | |
| Event ()=default | |
| Creates an event that is not handled. | |
Sent when the size of the drawing area of the window changes.
The size is in pixels, like Window::GetWidth() and Window::GetHeight(). It can be 0x0, for example when the window is minimized on Windows.
|
inlineoverridevirtual |
Returns the event with its size, for example "WindowResize: 1280x720".
Reimplemented from Quasar::Event.