Class WindowMoveEvent#
Defined in File WindowEvent.h
Inheritance Relationships#
Base Type#
public TRAP::Events::Event
(Class Event)
Class Documentation#
-
class WindowMoveEvent : public TRAP::Events::Event#
Window moved.
Remark
Headless mode: This class is not available in headless mode.
Public Functions
-
WindowMoveEvent(i32 x, i32 y, TRAP::Window &window)#
Constructor.
Note
The window must outlive the WindowMoveEvent!
- Parameters:
x – New x position.
y – New y position.
window – The affected window.
-
constexpr ~WindowMoveEvent() override = default#
Destructor.
-
consteval WindowMoveEvent(const WindowMoveEvent&) noexcept = delete#
Copy constructor.
-
consteval WindowMoveEvent &operator=(const WindowMoveEvent&) noexcept = delete#
Copy assignment operator.
-
constexpr WindowMoveEvent(WindowMoveEvent&&) noexcept = default#
Move constructor.
-
WindowMoveEvent &operator=(WindowMoveEvent&&) noexcept = default#
Move assignment operator.
-
constexpr i32 GetX() const noexcept#
Retrieve the new window x position.
- Returns:
Window x position.
-
constexpr i32 GetY() const noexcept#
Retrieve the new window y position.
- Returns:
Window y position.
-
constexpr Math::Vec2i GetPosition() const noexcept#
Retrieve the new window position.
- Returns:
Window position
-
constexpr TRAP::Window &GetWindow() const noexcept#
Retrieve a pointer to the affected window.
- Returns:
Window pointer.
-
virtual constexpr EventType GetEventType() const noexcept override#
Retrieve the EventType of the event.
- Returns:
EventType.
-
virtual constexpr std::string GetName() const override#
Retrieve the name of the event.
- Returns:
Name.
-
virtual constexpr EventCategory GetCategoryFlags() const noexcept override#
Retrieve the category flags of the event.
- Returns:
Combination of one or more EventCategory’s.
-
virtual std::string ToString() const override#
Get a string representation of the event.
- Returns:
String representation.
-
WindowMoveEvent(i32 x, i32 y, TRAP::Window &window)#