Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Inkscape::KeyPressEvent Struct Referencefinal

A key has been pressed. More...

#include <canvas-event.h>

Inheritance diagram for Inkscape::KeyPressEvent:
Inkscape::KeyEvent Inkscape::CanvasEvent

Public Member Functions

EventType type () const override
 Return the dynamic type of the CanvasEvent.
 
- Public Member Functions inherited from Inkscape::KeyEvent
unsigned modifiersChange () const override
 Get the change in the modifiers due to this event.
 
- Public Member Functions inherited from Inkscape::CanvasEvent
virtual ~CanvasEvent ()
 
unsigned modifiersAfter () const
 Get the modifiers mask immediately after the event. (Convenience function.)
 

Additional Inherited Members

- Public Attributes inherited from Inkscape::KeyEvent
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::Pointpos
 Location of the cursor, in world coordinates.
 
std::optional< Geom::Pointorig_pos
 Location of the cursor, in GDK event / canvas widget coordinates.
 
- Public Attributes inherited from Inkscape::CanvasEvent
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.
 

Detailed Description

A key has been pressed.

Definition at line 185 of file canvas-event.h.

Member Function Documentation

◆ type()

EventType Inkscape::KeyPressEvent::type ( ) const
inlineoverridevirtual

Return the dynamic type of the CanvasEvent.

Implements Inkscape::CanvasEvent.

Definition at line 187 of file canvas-event.h.

References Inkscape::KEY_PRESS.


The documentation for this struct was generated from the following file: