Class KeyReleaseEvent#
Defined in File KeyEvent.h
Inheritance Relationships#
Base Type#
public TRAP::Events::KeyEvent
(Class KeyEvent)
Class Documentation#
-
class KeyReleaseEvent : public TRAP::Events::KeyEvent#
Key released.
Remark
Headless mode: This class is not available in headless mode.
Public Functions
-
KeyReleaseEvent(Input::Key key, TRAP::Window &window)#
Constructor.
Note
The window must outlive the KeyReleaseEvent!
- Parameters:
key – Released key.
window – The affected window.
-
constexpr ~KeyReleaseEvent() override = default#
Destructor.
-
consteval KeyReleaseEvent(const KeyReleaseEvent&) noexcept = delete#
Copy constructor.
-
consteval KeyReleaseEvent &operator=(const KeyReleaseEvent&) noexcept = delete#
Copy assignment operator.
-
constexpr KeyReleaseEvent(KeyReleaseEvent&&) noexcept = default#
Move constructor.
-
KeyReleaseEvent &operator=(KeyReleaseEvent&&) noexcept = default#
Move assignment operator.
-
constexpr TRAP::Window &GetWindow() const noexcept#
Retrieve a reference to the affected window.
- Returns:
Window reference.
-
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 std::string ToString() const override#
Get a string representation of the event.
- Returns:
String representation.
-
KeyReleaseEvent(Input::Key key, TRAP::Window &window)#