Gjsify LogoGjsify Logo

Hierarchy

  • Event

Index

Constructors

Properties

client: EventClient
configure: Gdk.EventConfigure
crossing: Gdk.EventCrossing
focusChange: Gdk.EventFocus
grabBroken: Gdk.EventGrabBroken
noExpose: EventNoExpose
ownerChange: Gdk.EventOwnerChange
property: Gdk.EventProperty
proximity: Gdk.EventProximity
selection: Gdk.EventSelection
setting: Gdk.EventSetting
visibility: Gdk.EventVisibility
windowState: Gdk.EventWindowState
name: string

Methods

  • Copies a #GdkEvent, copying or incrementing the reference count of the resources associated with it (e.g. #GdkWindow's and strings).

    Returns Gdk.Event

  • free(): void
  • Frees a #GdkEvent, freeing or decrementing any resources associated with it. Note that this function should only be called with events returned from functions such as gdk_event_peek(), gdk_event_get(), gdk_event_get_graphics_expose() and gdk_event_copy() and gdk_event_new().

    Returns void

  • Extract the axis value for a particular axis use from an event structure.

    Parameters

    Returns [boolean, number]

  • getCoords(): [boolean, number, number]
  • Extract the event window relative x/y coordinates from an event.

    Returns [boolean, number, number]

  • getRootCoords(): [boolean, number, number]
  • Extract the root window relative x/y coordinates from an event.

    Returns [boolean, number, number]

  • If the event contains a "state" field, puts that field in state. Otherwise stores an empty state (0). Returns %TRUE if there was a state field in the event. event may be %NULL, in which case it's treated as if the event had no state field.

    Returns [boolean, Gdk.ModifierType]

  • getTime(): number
  • Returns the time stamp from event, if there is one; otherwise returns #GDK_CURRENT_TIME. If event is %NULL, returns #GDK_CURRENT_TIME.

    Returns number

  • put(): void
  • 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 %NULL. See gdk_display_put_event().

    Returns void

  • sendClientMessage(winid: number): boolean
  • Sends an X ClientMessage event to a given window (which must be on the default #GdkDisplay.) This could be used for communicating between different applications, though the amount of data is limited to 20 bytes.

    Parameters

    • winid: number

      the window to send the X ClientMessage event to.

    Returns boolean

  • sendClientmessageToall(): void
  • Sends an X ClientMessage event to all toplevel windows on the default #GdkScreen.

    Toplevel windows are determined by checking for the WM_STATE property, as described in the Inter-Client Communication Conventions Manual (ICCCM). If no windows are found with the WM_STATE property set, the message is sent to all children of the root window.

    Returns void

  • Sets the screen for event to screen. The event must have been allocated by GTK+, for instance, by gdk_event_copy().

    Parameters

    Returns void

  • Checks all open displays for a #GdkEvent to process,to be processed on, fetching events from the windowing system if necessary. See gdk_display_get_event().

    Returns Gdk.Event

  • Sets the function to call to handle all events from GDK.

    Note that GTK+ uses this to install its own event handler, so it is usually not useful for GTK+ applications. (Although an application can call this function then call gtk_main_do_event() to pass events to GTK+.)

    Parameters

    • func: Gdk.EventFunc

      the function to call to handle events from GDK.

    Returns void

  • If there is an event waiting in the event queue of some open display, returns a copy of it. See gdk_display_peek_event().

    Returns Gdk.Event

  • Request more motion notifies if event is a motion notify hint event. This function should be used instead of gdk_window_get_pointer() to request further motion notifies, because it also works for extension events where motion notifies are provided for devices other than the core pointer. Coordinate extraction, processing and requesting more motion events from a %GDK_MOTION_NOTIFY event usually works like this:

    |[ { /* motion_event handler */ x = motion_event->x; y = motion_event->y; /* handle (x,y) motion */ gdk_event_request_motions (motion_event); /* handles is_hint events */ }


    @param event a valid #GdkEvent

    Parameters

    Returns void

  • sendClientMessageForDisplay(display: Gdk.Display, event: Gdk.Event, winid: number): boolean

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method