TouchpadEvent

open class TouchpadEvent(pointer: <Error class: unknown class><<Error class: unknown class>>) : Event

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.

Skipped during bindings generation

  • parameter dx: dx: Out parameter is not supported

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val gdkTouchpadEventPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val gPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
open fun getDevice(): Device?

Returns the device of an event.

Link copied to clipboard

Returns a GdkDeviceTool representing the tool that caused the event.

Link copied to clipboard
open fun getDisplay(): Display?

Retrieves the display associated to the @event.

Link copied to clipboard

Returns the event sequence to which the event belongs.

Link copied to clipboard

Retrieves the type of the event.

Link copied to clipboard

Extracts the touchpad gesture phase from a touchpad event.

Link copied to clipboard

Returns the modifier state field of an event.

Link copied to clipboard
open fun getNFingers(): <Error class: unknown class>

Extracts the number of fingers from a touchpad event.

Link copied to clipboard
open fun getPinchAngleDelta(): <Error class: unknown class>

Extracts the angle delta from a touchpad pinch event.

Link copied to clipboard
open fun getPinchScale(): <Error class: unknown class>

Extracts the scale from a touchpad pinch event.

Link copied to clipboard

Returns whether this event is an 'emulated' pointer event.

Link copied to clipboard
open fun getSeat(): Seat?

Returns the seat that originated the event.

Link copied to clipboard
open fun getSurface(): Surface?

Extracts the surface associated with an event.

Link copied to clipboard
open fun getTime(): <Error class: unknown class>

Returns the timestamp of @event.

Link copied to clipboard
open fun ref(): Event

Increase the ref count of @event.

Link copied to clipboard

Returns whether a GdkEvent should trigger a context menu, according to platform conventions.

Link copied to clipboard
open fun unref()

Decrease the ref count of @event.