Gjsify LogoGjsify Logo

Index

Functions

  • Returns the device ID as seen by XInput2.

    If gdk_disable_multidevice() has been called, this function will respectively return 2/3 for the core pointer and keyboard, (matching the IDs for the Virtual Core Pointer and Keyboard in XInput 2), but calling this function on any slave devices (i.e. those managed via XInput 1.x), will return 0.

    Parameters

    Returns number

  • x11_free_compound_text(ctext: number): void
  • Frees the data returned from gdk_x11_display_string_to_compound_text().

    Parameters

    • ctext: number

      The pointer stored in ctext from a call to gdk_x11_display_string_to_compound_text().

    Returns void

  • x11_free_text_list(list: string): void
  • Frees the array of strings created by gdk_x11_display_text_property_to_text_list().

    Parameters

    • list: string

      the value stored in the list parameter by a call to gdk_x11_display_text_property_to_text_list().

    Returns void

  • x11_get_default_screen(): number
  • Used with gdk_window_set_background_pattern() to inherit background from parent window. Useful for imitating transparency when compositing is not available. Otherwise behaves like a transparent pattern.

    Returns cairo.Pattern

  • x11_get_server_time(window: X11Window): number
  • Routine to get the current X server time stamp.

    Parameters

    • window: X11Window

      a #GdkWindow, used for communication with the server. The window must have GDK_PROPERTY_CHANGE_MASK in its events mask or a hang will result.

    Returns number

  • x11_get_xatom_by_name(atom_name: string): xlib.Atom
  • Returns the X atom for GDK’s default display corresponding to atom_name. This function caches the result, so if called repeatedly it is much faster than XInternAtom(), which is a round trip to the server each time.

    Parameters

    • atom_name: string

      a string

    Returns xlib.Atom

  • Returns the X atom for a #GdkDisplay corresponding to atom_name. This function caches the result, so if called repeatedly it is much faster than XInternAtom(), which is a round trip to the server each time.

    Parameters

    Returns xlib.Atom

  • x11_get_xatom_name(xatom: number): string
  • Returns the name of an X atom for GDK’s default display. This function is meant mainly for debugging, so for convenience, unlike XAtomName() and gdk_atom_name(), the result doesn’t need to be freed. Also, this function will never return %NULL, even if xatom is invalid.

    Parameters

    • xatom: number

      an X atom for GDK’s default display

    Returns string

  • x11_get_xatom_name_for_display(display: GdkX11.X11Display, xatom: number): string
  • Returns the name of an X atom for its display. This function is meant mainly for debugging, so for convenience, unlike XAtomName() and gdk_atom_name(), the result doesn’t need to be freed.

    Parameters

    • display: GdkX11.X11Display

      the #GdkDisplay where xatom is defined

    • xatom: number

      an X atom

    Returns string

  • x11_grab_server(): void
  • Call gdk_x11_display_grab() on the default display. To ungrab the server again, use gdk_x11_ungrab_server().

    gdk_x11_grab_server()/gdk_x11_ungrab_server() calls can be nested.

    Returns void

  • x11_register_standard_event_type(display: GdkX11.X11Display, event_base: number, n_events: number): void
  • Registers interest in receiving extension events with type codes between event_base and event_base + n_events - 1. The registered events must have the window field in the same place as core X events (this is not the case for e.g. XKB extension events).

    If an event type is registered, events of this type will go through global and window-specific filters (see gdk_window_add_filter()). Unregistered events will only go through global filters. GDK may register the events of some X extensions on its own.

    This function should only be needed in unusual circumstances, e.g. when filtering XInput extension events on the root window.

    Parameters

    • display: GdkX11.X11Display

      a #GdkDisplay

    • event_base: number

      first event type code to register

    • n_events: number

      number of event type codes to register

    Returns void

  • x11_set_sm_client_id(sm_client_id: string): void
  • Sets the SM_CLIENT_ID property on the application’s leader window so that the window manager can save the application’s state using the X11R6 ICCCM session management protocol.

    See the X Session Management Library documentation for more information on session management and the Inter-Client Communication Conventions Manual

    Parameters

    • sm_client_id: string

      the client id assigned by the session manager when the connection was opened, or %NULL to remove the property.

    Returns void

  • x11_ungrab_server(): void
  • x11_xatom_to_atom(xatom: number): Gdk.Atom
  • Convert from an X atom for the default display to the corresponding #GdkAtom.

    Parameters

    • xatom: number

      an X atom for the default GDK display

    Returns Gdk.Atom

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