|
CeresEngine 0.2.0
A game development framework
|
A variant type that can hold any UIEvent. More...
#include <CeresEngine/UI/UIEvent.hpp>
Public Member Functions | |
| bool | isKeyEvent () const noexcept |
Checks if the event is a UIKeyEvent. | |
| const UIKeyEvent & | asKeyEvent () const noexcept |
Gets the event as a UIKeyEvent. | |
| UIKeyEvent & | asKeyEvent () noexcept |
Gets the event as a UIKeyEvent. | |
| bool | isMouseEvent () const noexcept |
Checks if the event is a UIMouseEvent. | |
| const UIMouseEvent & | asMouseEvent () const noexcept |
Gets the event as a UIMouseEvent. | |
| UIMouseEvent & | asMouseEvent () noexcept |
Gets the event as a UIMouseEvent. | |
Public Member Functions inherited from CeresEngine::Variant< UIKeyEvent, UIMouseEvent > | |
| constexpr std::size_t | getIndex () const noexcept |
| constexpr bool | is () const noexcept |
| constexpr T & | as () & |
| constexpr T && | as () && |
| constexpr const T & | as () const & |
| constexpr const T && | as () const && |
| constexpr std::add_pointer_t< T > | asIf () noexcept |
| constexpr std::add_pointer_t< const T > | asIf () const noexcept |
| constexpr decltype(auto) | visit (Visitor &&visitor) & |
| constexpr decltype(auto) | visit (Visitor &&visitor) && |
| constexpr decltype(auto) | visit (Visitor &&visitor) const & |
| constexpr decltype(auto) | visit (Visitor &&visitor) const && |
Private Types | |
| using | super = Variant< UIKeyEvent, UIMouseEvent > |
A variant type that can hold any UIEvent.
|
private |
|
inlinenoexcept |
Gets the event as a UIKeyEvent.
|
inlinenoexcept |
Gets the event as a UIKeyEvent.
|
inlinenoexcept |
Gets the event as a UIMouseEvent.
|
inlinenoexcept |
Gets the event as a UIMouseEvent.
|
inlinenoexcept |
Checks if the event is a UIKeyEvent.
|
inlinenoexcept |
Checks if the event is a UIMouseEvent.