|
FTXUI
5.0.0
C++ functional terminal UI.
|
A mouse event. It contains the coordinate of the mouse, the button pressed and the modifier (shift, ctrl, meta). More...
Public Types | |
| enum | Button { Left = 0 , Middle = 1 , Right = 2 , None = 3 , WheelUp = 4 , WheelDown = 5 } |
| enum | Motion { Released = 0 , Pressed = 1 } |
Public Member Functions | |
| bool | IsPressed (Button btn=Left) const |
| bool | IsHeld (Button btn=Left) const |
| bool | IsReleased (Button btn=Left) const |
Data Fields | |
| Button | button = Button::None |
| Motion | motion = Motion::Pressed |
| bool | shift = false |
| bool | meta = false |
| bool | control = false |
| int | x = 0 |
| int | y = 0 |
| Mouse * | previous = nullptr |
A mouse event. It contains the coordinate of the mouse, the button pressed and the modifier (shift, ctrl, meta).
| enum Button |
| Button button = Button::None |
| Motion motion = Motion::Pressed |
| bool shift = false |
| bool meta = false |
| bool control = false |
| int x = 0 |
| int y = 0 |