class Gdk::TouchpadEvent
- Gdk::TouchpadEvent
- Gdk::Event
- Reference
- Object
Overview
An event related to a gesture on a touchpad device.
Unlike touchscreens, where the windowing system sends basic sequences of begin, update, end events, and leaves gesture recognition to the clients, touchpad gestures are typically processed by the system, resulting in these events.
Defined in:
lib/gi-crystal/src/auto/gdk-4.0/touchpad_event.crConstructors
-
.new
Initialize a new
TouchpadEvent
.
Class Method Summary
-
.g_type : UInt64
Returns the type id (GType) registered in GLib type system.
Instance Method Summary
-
#==(other : self)
Returns
true
if this reference is the same as other. -
#deltas(dx : Float64, dy : Float64) : Nil
Extracts delta information from a touchpad event.
-
#gesture_phase : Gdk::TouchpadGesturePhase
Extracts the touchpad gesture phase from a touchpad event.
-
#hash(hasher)
See
Object#hash(hasher)
-
#n_fingers : UInt32
Extracts the number of fingers from a touchpad event.
-
#pinch_angle_delta : Float64
Extracts the angle delta from a touchpad pinch event.
-
#pinch_scale : Float64
Extracts the scale from a touchpad pinch event.
Instance methods inherited from class Gdk::Event
==(other : self)
==,
_get_angle(event2 : Gdk::Event, angle : Float64) : Bool
_get_angle,
_get_center(event2 : Gdk::Event, x : Float64, y : Float64) : Bool
_get_center,
_get_distance(event2 : Gdk::Event, distance : Float64) : Bool
_get_distance,
axes(axes : Enumerable(Float64)) : Boolaxes(*axes : Float64) axes, axis(axis_use : Gdk::AxisUse, value : Float64) : Bool axis, device : Gdk::Device | Nil device, device_tool : Gdk::DeviceTool | Nil device_tool, display : Gdk::Display | Nil display, event_sequence : Gdk::EventSequence event_sequence, event_type : Gdk::EventType event_type, finalize finalize, hash(hasher) hash, history : Enumerable(Gdk::TimeCoord) | Nil history, modifier_state : Gdk::ModifierType modifier_state, pointer_emulated : Bool pointer_emulated, position(x : Float64, y : Float64) : Bool position, seat : Gdk::Seat | Nil seat, surface : Gdk::Surface | Nil surface, time : UInt32 time, to_unsafe : Pointer(Void) to_unsafe, triggers_context_menu : Bool triggers_context_menu
Constructor methods inherited from class Gdk::Event
new(pointer : Pointer(Void), transfer : GICrystal::Transfer)
new
Class methods inherited from class Gdk::Event
g_type : UInt64
g_type
Constructor Detail
Class Method Detail
Returns the type id (GType) registered in GLib type system.
Instance Method Detail
Returns true
if this reference is the same as other. Invokes same?
.
Extracts delta information from a touchpad event.
Extracts the touchpad gesture phase from a touchpad event.
Extracts the angle delta from a touchpad pinch event.