Inkscape
Vector Graphics Editor
|
A mouse button (left/right/middle) is 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.) | |
Public Attributes | |
int | num_press = 1 |
Counter for repeated clicks (e.g. double clicks). Starts at 1 and increments by 1 each time. | |
ExtendedInput | extinput |
Extended input data for graphics tablet input. Fields may be empty. | |
![]() | |
Geom::Point | pos |
Location of the cursor, in world coordinates. | |
Geom::Point | orig_pos |
Location of the cursor, in GDK event / canvas widget coordinates. | |
unsigned | button = 0 |
The button that was pressed/released. (Matches GDK_BUTTON_*.) | |
uint32_t | time = 0 |
Timestamp of the event in milliseconds. | |
![]() | |
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 mouse button (left/right/middle) is pressed.
May also be used for touch interactions.
Definition at line 118 of file canvas-event.h.
|
inlineoverridevirtual |
Return the dynamic type of the CanvasEvent.
Implements Inkscape::CanvasEvent.
Definition at line 120 of file canvas-event.h.
References Inkscape::BUTTON_PRESS.
ExtendedInput Inkscape::ButtonPressEvent::extinput |
Extended input data for graphics tablet input. Fields may be empty.
Definition at line 126 of file canvas-event.h.
int Inkscape::ButtonPressEvent::num_press = 1 |
Counter for repeated clicks (e.g. double clicks). Starts at 1 and increments by 1 each time.
Definition at line 123 of file canvas-event.h.
Referenced by Inkscape::UI::Tools::PencilTool::_handleButtonPress(), and Inkscape::UI::Tools::InteractiveBooleansTool::event_button_press_handler().