#include <hikogui/GUI/gui_event.hpp>
|
| utc_nanoseconds | time_point |
| | The time when the event was created.
|
| |
| keyboard_modifiers | keyboard_modifiers |
| | Keyboard modifiers: shift, ctrl, alt, etc.
|
| |
| keyboard_state | keyboard_state |
| | State of the keyboard; caps-lock, num-lock, scroll-lock.
|
| |
◆ gui_event() [1/5]
| constexpr hi::v1::gui_event::gui_event |
( |
gui_event_type | type, |
|
|
utc_nanoseconds | time_point, |
|
|
hi::keyboard_modifiers | keyboard_modifiers, |
|
|
hi::keyboard_state | keyboard_state ) |
|
inlineconstexprnoexcept |
Create a GUI event.
- Parameters
-
| type | The type of the event. |
| time_point | The time when the was received. |
| keyboard_modifiers | A list of modifiers key that where hold down: alt, ctrl, shift. |
| keyboard_state | The state of the keyboard: scroll-lock, num-lock, caps-lock. |
◆ gui_event() [2/5]
Create an empty GUI event.
◆ gui_event() [3/5]
Create am empty GUI event.
- Parameters
-
| type | The type of the event. |
◆ gui_event() [4/5]
Create a rectangle event.
- Parameters
-
| type | The type of the rectangle event. |
| rectangle | The rectangle for this event. |
◆ gui_event() [5/5]
| hi::v1::gui_event::gui_event |
( |
gui_event_type | type, |
|
|
keyboard_virtual_key | key, |
|
|
hi::keyboard_modifiers | keyboard_modifiers = keyboard_modifiers::none, |
|
|
hi::keyboard_state | keyboard_state = keyboard_state::idle ) |
|
inlinenoexcept |
Create a GUI event.
- Parameters
-
| type | The type of the key event. |
| key | The virtual key that was pressed/released |
| keyboard_modifiers | A list of modifiers key that where hold down: alt, ctrl, shift. |
| keyboard_state | The state of the keyboard: scroll-lock, num-lock, caps-lock. |
◆ drag_delta()
Get the location of the mouse relative to the start of a drag.
◆ grapheme() [1/2]
| hi::grapheme const & hi::v1::gui_event::grapheme |
( |
| ) |
const |
|
inlinenoexcept |
Get the grapheme entered on the keyboard.
- Returns
- a referene to the grapheme.
◆ grapheme() [2/2]
| hi::grapheme & hi::v1::gui_event::grapheme |
( |
| ) |
|
|
inlinenoexcept |
Get the grapheme entered on the keyboard.
- Returns
- a referene to the grapheme.
◆ is_left_button_up()
Check if this event is for a left-button-up event while the mouse pointer is in the given area.
◆ key() [1/2]
| keyboard_virtual_key const & hi::v1::gui_event::key |
( |
| ) |
const |
|
inlinenoexcept |
Get the key from the keyboard event.
- Returns
- a referene to the key.
◆ key() [2/2]
| keyboard_virtual_key & hi::v1::gui_event::key |
( |
| ) |
|
|
inlinenoexcept |
Get the key from the keyboard event.
- Returns
- a referene to the key.
◆ make_clipboard_event()
Create clipboard event.
- Parameters
-
◆ make_mouse_enter()
Create a mouse enter event.
- Parameters
-
| position | The position where the mouse entered. |
◆ mouse() [1/2]
Get the mouse event information.
- Returns
- a referene to the mouse data.
◆ mouse() [2/2]
Get the mouse event information.
- Returns
- a referene to the mouse data.
◆ set_type()
Change the type of the gui_event.
- Note
- If the variant changes of this event the associated data is cleared.
- Parameters
-
◆ type()
◆ operator*
Transform a gui-event to another coordinate system.
This operations is used mostly to transform mouse evens to a widget's local coordinate system.
- Parameters
-
| transform | The transform object |
| rhs | The event to transform. |
- Returns
- The transformed event.
◆ keyboard_modifiers
| keyboard_modifiers hi::v1::gui_event::keyboard_modifiers |
Keyboard modifiers: shift, ctrl, alt, etc.
This may be used for in combination with both keyboard and mouse events.
◆ keyboard_state
| keyboard_state hi::v1::gui_event::keyboard_state |
State of the keyboard; caps-lock, num-lock, scroll-lock.
◆ time_point
| utc_nanoseconds hi::v1::gui_event::time_point |
The time when the event was created.
The documentation for this class was generated from the following file: