Inkscape
Vector Graphics Editor
|
A key has been pressed. More...
#include <canvas-event.h>
Public Member Functions | |
EventType | type () const override |
Return the dynamic type of the CanvasEvent. | |
![]() | |
unsigned | modifiersChange () const override |
Get the change in the modifiers due to this event. | |
![]() | |
virtual | ~CanvasEvent () |
unsigned | modifiersAfter () const |
Get the modifiers mask immediately after the event. (Convenience function.) | |
Additional Inherited Members | |
![]() | |
uint32_t | keyval = 0 |
The key that was pressed/released. (Matches gdkkeysyms.h.) | |
uint16_t | keycode = 0 |
The raw code of the key that was pressed/released. | |
int | group = 0 |
The keyboard group. | |
uint32_t | time = 0 |
Timestamp of the event in milliseconds. | |
std::optional< Geom::Point > | pos |
Location of the cursor, in world coordinates. | |
std::optional< Geom::Point > | orig_pos |
Location of the cursor, in GDK event / canvas widget coordinates. | |
![]() | |
unsigned | modifiers = 0 |
The modifiers mask immediately before the event. | |
std::shared_ptr< Gdk::Device const > | device |
The device that sourced the event. May be null. | |
A key has been pressed.
Definition at line 185 of file canvas-event.h.
|
inlineoverridevirtual |
Return the dynamic type of the CanvasEvent.
Implements Inkscape::CanvasEvent.
Definition at line 187 of file canvas-event.h.
References Inkscape::KEY_PRESS.