Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
canvas-event.h File Reference

Go to the source code of this file.

Classes

struct  Inkscape::ExtendedInput
 Extended input data associated to events generated by graphics tablets. More...
 
struct  Inkscape::CanvasEvent
 Abstract base class for events. More...
 
struct  Inkscape::ButtonEvent
 Abstract event for mouse button (left/right/middle). More...
 
struct  Inkscape::ButtonPressEvent
 A mouse button (left/right/middle) is pressed. More...
 
struct  Inkscape::ButtonReleaseEvent
 A mouse button (left/right/middle) is released. More...
 
struct  Inkscape::KeyEvent
 A key has been pressed. More...
 
struct  Inkscape::KeyPressEvent
 A key has been pressed. More...
 
struct  Inkscape::KeyReleaseEvent
 A key has been released. More...
 
struct  Inkscape::MotionEvent
 Movement of the mouse pointer. More...
 
struct  Inkscape::EnterEvent
 The pointer has entered a widget or item. More...
 
struct  Inkscape::LeaveEvent
 The pointer has exited a widget or item. More...
 
struct  Inkscape::ScrollEvent
 Scroll the item or widget by the provided amount. More...
 

Namespaces

namespace  Gdk
 
namespace  Inkscape
 Helper class to stream background task notifications as a series of messages.
 
namespace  Inkscape::canvas_event_detail
 

Functions

ExtendedInput Inkscape::extinput_from_gdkevent (Gdk::Event const &event)
 Read the extended input data from a Gdk::Event.
 
template<typename E >
E & Inkscape::canvas_event_detail::cast_helper (CanvasEvent &event)
 
template<typename E >
E const & Inkscape::canvas_event_detail::cast_helper (CanvasEvent const &event)
 
template<typename E >
E && Inkscape::canvas_event_detail::cast_helper (CanvasEvent &&event)
 
template<typename E , typename... Fs>
void Inkscape::inspect_event (E &&event, Fs... funcs)
 Perform pattern-matching on a CanvasEvent.
 
bool Inkscape::mod_shift (unsigned modifiers)
 
bool Inkscape::mod_ctrl (unsigned modifiers)
 
bool Inkscape::mod_alt (unsigned modifiers)
 
bool Inkscape::mod_shift_only (unsigned modifiers)
 
bool Inkscape::mod_ctrl_only (unsigned modifiers)
 
bool Inkscape::mod_alt_only (unsigned modifiers)
 
bool Inkscape::mod_any (unsigned modifiers)
 
bool Inkscape::mod_none (unsigned modifiers)
 
template<unsigned button>
bool Inkscape::mod_button (unsigned modifiers)
 
bool Inkscape::mod_shift (CanvasEvent const &event)
 
bool Inkscape::mod_ctrl (CanvasEvent const &event)
 
bool Inkscape::mod_alt (CanvasEvent const &event)
 
bool Inkscape::mod_shift_only (CanvasEvent const &event)
 
bool Inkscape::mod_ctrl_only (CanvasEvent const &event)
 
bool Inkscape::mod_alt_only (CanvasEvent const &event)
 
bool Inkscape::mod_any (CanvasEvent const &event)
 
bool Inkscape::mod_none (CanvasEvent const &event)
 
template<unsigned button>
bool Inkscape::mod_button (CanvasEvent const &event)
 

Variables

constexpr auto Inkscape::INK_GDK_MODIFIER_MASK = GDK_SHIFT_MASK | GDK_CONTROL_MASK | GDK_ALT_MASK | GDK_META_MASK
 All modifiers used by Inkscape.