Inkscape
Vector Graphics Editor
|
A key has been pressed. More...
#include <canvas-event.h>
Public Member Functions | |
unsigned | modifiersChange () const override |
Get the change in the modifiers due to this event. | |
![]() | |
virtual | ~CanvasEvent () |
virtual EventType | type () const =0 |
Return the dynamic type of the CanvasEvent. | |
unsigned | modifiersAfter () const |
Get the modifiers mask immediately after the event. (Convenience function.) | |
Public Attributes | |
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 141 of file canvas-event.h.
|
inlineoverridevirtual |
Get the change in the modifiers due to this event.
Reimplemented from Inkscape::CanvasEvent.
Definition at line 143 of file canvas-event.h.
References keyval.
int Inkscape::KeyEvent::group = 0 |
The keyboard group.
Definition at line 170 of file canvas-event.h.
Referenced by Inkscape::Shortcuts::get_from_event(), and Inkscape::UI::Tools::get_latin_keyval().
uint16_t Inkscape::KeyEvent::keycode = 0 |
The raw code of the key that was pressed/released.
Definition at line 167 of file canvas-event.h.
Referenced by Inkscape::Shortcuts::get_from_event(), and Inkscape::UI::Tools::get_latin_keyval().
uint32_t Inkscape::KeyEvent::keyval = 0 |
The key that was pressed/released. (Matches gdkkeysyms.h.)
Definition at line 164 of file canvas-event.h.
Referenced by Inkscape::UI::Tools::ToolBase::_keyboardMove(), Inkscape::UI::Tools::accelerate_scroll(), Inkscape::Shortcuts::get_from_event(), Inkscape::UI::Tools::get_latin_keyval(), and modifiersChange().
std::optional<Geom::Point> Inkscape::KeyEvent::orig_pos |
Location of the cursor, in GDK event / canvas widget coordinates.
Definition at line 179 of file canvas-event.h.
std::optional<Geom::Point> Inkscape::KeyEvent::pos |
Location of the cursor, in world coordinates.
Definition at line 176 of file canvas-event.h.
uint32_t Inkscape::KeyEvent::time = 0 |
Timestamp of the event in milliseconds.
Definition at line 173 of file canvas-event.h.