Event

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

GdkEvents are immutable data structures, created by GDK to represent windowing system events.

In GTK applications the events are handled automatically by toplevel widgets and passed on to the event controllers of appropriate widgets, so using GdkEvent and its related API is rarely needed.

Skipped during bindings generation

  • parameter angle: angle: Out parameter is not supported

  • parameter x: x: Out parameter is not supported

  • parameter distance: distance: Out parameter is not supported

  • parameter axes: axes: Out parameter is not supported

  • parameter value: value: Out parameter is not supported

  • parameter out_n_coords: out_n_coords: Out parameter is not supported

  • parameter x: x: Out parameter is not supported

Inheritors

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 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

Returns the modifier state field of an 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.