![]() |
1.11 |
#include <event.h>
Public Types | |
| enum class | Button { none , left , middle , right } |
| Definitions for pointer buttons. More... | |
Public Member Functions | |
| constexpr | Pointer () noexcept=default |
| constexpr | Pointer (const DisplayPoint &p, Button b, size_t s=0) noexcept |
| constexpr | Pointer (const DisplayPoint &p, const DisplayPoint &d, size_t s=0) noexcept |
| constexpr | Pointer (const DisplayPoint &p, size_t s=0) noexcept |
| EGT_NODISCARD DisplayPoint | delta () const |
| Get the drag delta. | |
Public Attributes | |
| Button | btn {Button::none} |
| Pointer button value. | |
| DisplayPoint | drag_start |
| The mouse point where EventId::pointer_drag_start occurred. | |
| DisplayPoint | point |
| Mouse position in display coordinates. | |
| size_t | slot {} |
| The event slot. Used for multi-touch. | |
Pointer event data.
|
strong |
|
constexprdefaultnoexcept |
|
inlineexplicitconstexprnoexcept |
| [in] | p | Display point of the event. |
| [in] | s | Slot of the event. |
|
inlineconstexprnoexcept |
| [in] | p | Display point of the event. |
| [in] | b | Pointer button data of the event. |
| [in] | s | Slot of the event. |
|
inlineconstexprnoexcept |
| [in] | p | Display point of the event. |
| [in] | d | Drag start of the event. |
| [in] | s | Slot of the event. |
|
inline |
Get the drag delta.
| Button btn {Button::none} |
Pointer button value.
| DisplayPoint drag_start |
The mouse point where EventId::pointer_drag_start occurred.
Only valid with the following events:
| DisplayPoint point |
Mouse position in display coordinates.
| size_t slot {} |
The event slot. Used for multi-touch.