gtkmm  3.91.0
Public Member Functions | Related Functions | List of all members
Gdk::EventTouchpadSwipe Class Reference

Generated during touchpad swipe gestures. More...

#include <gdkmm/event.h>

Inheritance diagram for Gdk::EventTouchpadSwipe:
Inheritance graph
[legend]

Public Member Functions

 EventTouchpadSwipe ()
 Creates an invalid event object. More...
 
 EventTouchpadSwipe (GdkEventTouchpadSwipe* gobject, bool make_a_copy=false)
 Wraps a C event instance. More...
 
void swap (EventTouchpadSwipe& other) noexcept
 
GdkEventTouchpadSwipe* gobj ()
 Provides access to the underlying C instance. More...
 
const GdkEventTouchpadSwipe* gobj () const
 Provides access to the underlying C instance. More...
 
GdkEventTouchpadSwipe* gobj_copy () const
 Provides access to the underlying C instance. More...
 
guint32 get_time () const
 Returns the timestamp of the event in milliseconds. More...
 
TouchpadGesturePhase get_phase () const
 Returns the current phase of the gesture. More...
 
int get_n_fingers () const
 Returns the number of fingers triggering the swipe. More...
 
ModifierType get_state () const
 Returns a bit mask representing the state of the modifier keys (e.g. More...
 
double get_x () const
 Returns the X coordinate of the pointer relative to the window. More...
 
double get_y () const
 Returns the Y coordinate of the pointer relative to the window. More...
 
double get_dx () const
 Returns the movement delta in the X axis of the swipe focal point. More...
 
double get_dy () const
 Returns the movement delta in the Y axis of the swipe focal point. More...
 
double get_root_x () const
 Returns the X coordinate of the pointer relative to the root of the screen. More...
 
double get_root_y () const
 Returns the Y coordinate of the pointer relative to the root of the screen. More...
 
- Public Member Functions inherited from Gdk::Event
 Event ()
 Creates an invalid event object. More...
 
 Event (GdkEvent* gobject, bool make_a_copy=false)
 Wraps a C event instance. More...
 
 Event (const Event& other)
 
Eventoperator= (const Event& other)
 
 Event (Event&& other) noexcept
 
Eventoperator= (Event&& other) noexcept
 
 ~Event () noexcept
 
void swap (Event& other) noexcept
 
GdkEvent* gobj ()
 Provides access to the underlying C instance. More...
 
const GdkEvent* gobj () const
 Provides access to the underlying C instance. More...
 
GdkEvent* gobj_copy () const
 Provides access to the underlying C instance. More...
 
Event::Type get_event_type () const
 Retrieves the type of the event. More...
 
Glib::RefPtr< Gdk::Windowget_window ()
 Returns the window which received the event. More...
 
Glib::RefPtr< const Gdk::Windowget_window () const
 
bool is_send_event () const
 Returns true if the event was sent explicitly (e.g. More...
 
Glib::RefPtr< Screenget_screen ()
 Returns the screen for the event. More...
 
Glib::RefPtr< const Screenget_screen () const
 Returns the screen for the event. More...
 
Glib::RefPtr< Seatget_seat ()
 Returns the Gdk::Seat this event was generated for. More...
 
Glib::RefPtr< const Seatget_seat () const
 Returns the Gdk::Seat this event was generated for. More...
 
void put ()
 Appends a copy of the given event onto the front of the event queue for event->any.window’s display, or the default event queue if event->any.window is nullptr. More...
 

Related Functions

(Note that these are not member functions.)

void swap (EventTouchpadSwipe& lhs, EventTouchpadSwipe& rhs) noexcept
 
const EventTouchpadSwipewrap_event (const GdkEventTouchpadSwipe*& event)
 Wraps a C event instance without making unnecessary copy when the ownership can not be acquired. More...
 
EventTouchpadSwipewrap_event (GdkEventTouchpadSwipe*& event)
 See wrap_event(const GdkEventTouchpadSwipe*& event). More...
 
Gdk::EventTouchpadSwipe wrap (GdkEventTouchpadSwipe* object, bool take_copy=false)
 A Glib::wrap() method for this object. More...
 

Additional Inherited Members

- Public Types inherited from Gdk::Event
enum  Type {
  Type::NOTHING = -1,
  Type::DELETE = 0,
  Type::DESTROY = 1,
  Type::EXPOSE = 2,
  Type::MOTION_NOTIFY = 3,
  Type::BUTTON_PRESS = 4,
  Type::DOUBLE_BUTTON_PRESS = 5,
  Type::TRIPLE_BUTTON_PRESS = 6,
  Type::BUTTON_RELEASE = 7,
  Type::KEY_PRESS = 8,
  Type::KEY_RELEASE = 9,
  Type::ENTER_NOTIFY = 10,
  Type::LEAVE_NOTIFY = 11,
  Type::FOCUS_CHANGE = 12,
  Type::CONFIGURE = 13,
  Type::MAP = 14,
  Type::UNMAP = 15,
  Type::PROPERTY_NOTIFY = 16,
  Type::SELECTION_CLEAR = 17,
  Type::SELECTION_REQUEST = 18,
  Type::SELECTION_NOTIFY = 19,
  Type::PROXIMITY_IN = 20,
  Type::PROXIMITY_OUT = 21,
  Type::DRAG_ENTER = 22,
  Type::DRAG_LEAVE = 23,
  Type::DRAG_MOTION = 24,
  Type::DRAG_STATUS = 25,
  Type::DROP_START = 26,
  Type::DROP_FINISHED = 27,
  Type::CLIENT_EVENT = 28,
  Type::VISIBILITY_NOTIFY = 29,
  Type::SCROLL = 31,
  Type::WINDOW_STATE = 32,
  Type::SETTING = 33,
  Type::OWNER_CHANGE = 34,
  Type::GRAB_BROKEN = 35,
  Type::DAMAGE = 36,
  Type::TOUCH_BEGIN = 37,
  Type::TOUCH_UPDATE = 38,
  Type::TOUCH_END = 39,
  Type::TOUCH_CANCEL = 40,
  Type::TOUCHPAD_SWIPE = 41,
  Type::TOUCHPAD_PINCH = 42,
  Type::PAD_BUTTON_PRESS = 43,
  Type::PAD_BUTTON_RELEASE = 44,
  Type::PAD_RING = 45,
  Type::PAD_STRIP = 46,
  Type::PAD_GROUP_MODE = 47,
  Type::EVENT_LAST = 48
}
 Specifies the type of the event. More...
 
- Static Public Member Functions inherited from Gdk::Event
static void set_show_events (bool show_events)
 Sets whether a trace of received events is output. More...
 
static bool get_show_events ()
 Gets whether event debugging output is enabled. More...
 
static Event get ()
 Checks all open displays for a Gdk::Event to process,to be processed on, fetching events from the windowing system if necessary. More...
 
static Event peek ()
 If there is an event waiting in the event queue of some open display, returns a copy of it. More...
 
static bool events_pending ()
 Checks if any events are ready to be processed for any display. More...
 

Detailed Description

Generated during touchpad swipe gestures.

get_event_type() will return Gdk::Event::Type::TOUCHPAD_SWIPE.

Since gtkmm 3.90:

Constructor & Destructor Documentation

Gdk::EventTouchpadSwipe::EventTouchpadSwipe ( )

Creates an invalid event object.

Calling any member functions is undefined behavior.

Gdk::EventTouchpadSwipe::EventTouchpadSwipe ( GdkEventTouchpadSwipe *  gobject,
bool  make_a_copy = false 
)
explicit

Wraps a C event instance.

This constructor either acquires ownership of gobject, or copies it.

Parameters
gobjectEvent to wrap.
make_a_copyIf false, the ownership of gobject is acquired, otherwise, a copy is made.

Member Function Documentation

double Gdk::EventTouchpadSwipe::get_dx ( ) const

Returns the movement delta in the X axis of the swipe focal point.

double Gdk::EventTouchpadSwipe::get_dy ( ) const

Returns the movement delta in the Y axis of the swipe focal point.

int Gdk::EventTouchpadSwipe::get_n_fingers ( ) const

Returns the number of fingers triggering the swipe.

TouchpadGesturePhase Gdk::EventTouchpadSwipe::get_phase ( ) const

Returns the current phase of the gesture.

double Gdk::EventTouchpadSwipe::get_root_x ( ) const

Returns the X coordinate of the pointer relative to the root of the screen.

double Gdk::EventTouchpadSwipe::get_root_y ( ) const

Returns the Y coordinate of the pointer relative to the root of the screen.

ModifierType Gdk::EventTouchpadSwipe::get_state ( ) const

Returns a bit mask representing the state of the modifier keys (e.g.

Control, Shift and Alt) and the pointer buttons.

guint32 Gdk::EventTouchpadSwipe::get_time ( ) const

Returns the timestamp of the event in milliseconds.

double Gdk::EventTouchpadSwipe::get_x ( ) const

Returns the X coordinate of the pointer relative to the window.

double Gdk::EventTouchpadSwipe::get_y ( ) const

Returns the Y coordinate of the pointer relative to the window.

GdkEventTouchpadSwipe* Gdk::EventTouchpadSwipe::gobj ( )
inline

Provides access to the underlying C instance.

const GdkEventTouchpadSwipe* Gdk::EventTouchpadSwipe::gobj ( ) const
inline

Provides access to the underlying C instance.

GdkEventTouchpadSwipe* Gdk::EventTouchpadSwipe::gobj_copy ( ) const

Provides access to the underlying C instance.

The caller is responsible for freeing it with gdk_event_free(). Use when directly setting fields in structs.

void Gdk::EventTouchpadSwipe::swap ( EventTouchpadSwipe other)
noexcept

Friends And Related Function Documentation

void swap ( EventTouchpadSwipe lhs,
EventTouchpadSwipe rhs 
)
related
Parameters
lhsThe left-hand side
rhsThe right-hand side
Gdk::EventTouchpadSwipe wrap ( GdkEventTouchpadSwipe *  object,
bool  take_copy = false 
)
related

A Glib::wrap() method for this object.

Parameters
objectThe C instance.
take_copyFalse if the result should take ownership of the C instance. True if it should take a new copy.
Returns
A C++ instance that wraps this C instance.
const EventTouchpadSwipe& wrap_event ( const GdkEventTouchpadSwipe *&  event)
related

Wraps a C event instance without making unnecessary copy when the ownership can not be acquired.

The event pointer must not be deleted until last usage of the returned instance. Note, that this requirement applies to the pointer itself, in addition to the object it is pointing to.

EventTouchpadSwipe& wrap_event ( GdkEventTouchpadSwipe *&  event)
related