Gamp v0.0.7-36-g24b1eb6
Gamp: Graphics, Audio, Multimedia and Processing
|
#include <Event.hpp>
Public Member Functions | |
InputEvent (uint16_t type, const jau::fraction_timespec &when, const WindowRef &source, InputModifier mods) noexcept | |
constexpr int | buttonDownCount () const noexcept |
Returns the number of pressed buttons by counting the set bits: | |
std::vector< InputButton > | buttonsDown () const |
See also MouseEvent 's section about Multiple-Pointer Events. | |
constexpr bool | has_any (InputModifier bits) const noexcept |
Use with groups of bits / mask, e.g. | |
constexpr bool | is_set (InputModifier bits) const noexcept |
Use with single bits, e.g. | |
constexpr bool | isAltDown () const noexcept |
Returns true if modifier() contains InputModifier::alt. | |
constexpr bool | isAnyButtonDown () const noexcept |
Returns true if at least one button is pressed, otherwise false: | |
constexpr bool | isAutorepeat () const noexcept |
Returns true if modifier() contains InputModifier::autorepeat. | |
constexpr bool | isButtonDown (InputButton button) const noexcept |
See also MouseEvent 's section about Multiple-Pointer Events. | |
constexpr bool | isConfined () const noexcept |
Returns true if modifier() contains InputModifier::confined. | |
constexpr bool | isControlDown () const noexcept |
Returns true if modifier() contains InputModifier::ctrl. | |
constexpr bool | isInvisible () const noexcept |
Returns true if modifier() contains InputModifier::invisible. | |
constexpr bool | isMetaDown () const noexcept |
Returns true if modifier() contains InputModifier::meta. | |
constexpr bool | isShiftDown () const noexcept |
Returns true if modifier() contains InputModifier::shift. | |
constexpr InputModifier | modifier () const noexcept |
std::string | toString () const noexcept |
![]() | |
WTEvent (uint16_t type, const jau::fraction_timespec &when, const WindowRef &source) noexcept | |
constexpr bool | consumed () const noexcept |
Consumed events will stop traversing through listener. | |
constexpr void | setConsumed (bool v) noexcept |
Consumed events will stop traversing through listener. | |
constexpr const WindowWeakPtr & | source () const noexcept |
std::string | toString () const noexcept |
constexpr uint16_t | type () const noexcept |
constexpr const jau::fraction_timespec & | when () const noexcept |
Static Public Member Functions | |
static constexpr InputModifier | buttonMask (InputButton button) noexcept |
Returns the corresponding button mask for the given button. | |
|
inlinenoexcept |
|
inlinestaticconstexprnoexcept |
Returns the corresponding button mask for the given button.
In case the given button lies outside of the valid range [InputButton::button1 .. InputButton::button16], InputModifier::none is returned.
Definition at line 200 of file Event.hpp.
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
See also MouseEvent
's section about Multiple-Pointer Events.
button | the button to test |
Definition at line 222 of file Event.hpp.
|
inlineconstexprnoexcept |
Returns the number of pressed buttons by counting the set bits:
jau::ct_bit_count(modifier() & InputModifier::button_all);
See also MouseEvent
's section about Multiple-Pointer Events.
Definition at line 236 of file Event.hpp.
|
inlineconstexprnoexcept |
Returns true if at least one button is pressed, otherwise false:
0 != ( modifier() & InputModifier::button_all )
See also MouseEvent
's section about Multiple-Pointer Events.
|
inline |
See also MouseEvent
's section about Multiple-Pointer Events.
|
inlineconstexprnoexcept |
Returns true if modifier() contains InputModifier::alt.
|
inlineconstexprnoexcept |
Returns true if modifier() contains InputModifier::ctrl.
Definition at line 277 of file Event.hpp.
|
inlineconstexprnoexcept |
Returns true if modifier() contains InputModifier::meta.
|
inlineconstexprnoexcept |
Returns true if modifier() contains InputModifier::shift.
Definition at line 285 of file Event.hpp.
|
inlineconstexprnoexcept |
Returns true if modifier() contains InputModifier::autorepeat.
|
inlineconstexprnoexcept |
Returns true if modifier() contains InputModifier::confined.
|
inlineconstexprnoexcept |
Returns true if modifier() contains InputModifier::invisible.
|
inlinenoexcept |