Gjsify LogoGjsify Logo

Index

Functions

  • Converts from a #GdkAtom to the X atom for the default GDK display with the same string value.

    Parameters

    Returns xlib.Atom

  • Converts from a #GdkAtom to the X atom for a #GdkDisplay with the same string value. The special value %GDK_NONE is converted to %None.

    Parameters

    Returns xlib.Atom

  • 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

  • x11FreeCompoundText(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

  • x11FreeTextList(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

  • x11GetDefaultScreen(): 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

  • 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

  • x11GetXatomByName(atomName: 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

    • atomName: 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

  • x11GetXatomName(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

  • 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

  • x11GrabServer(): 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

  • x11RegisterStandardEventType(display: GdkX11.X11Display, eventBase: number, nEvents: 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

    • eventBase: number

      first event type code to register

    • nEvents: number

      number of event type codes to register

    Returns void

  • x11SetSmClientId(smClientId: 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

    • smClientId: string

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

    Returns void

  • x11UngrabServer(): void
  • Ungrab the default display after it has been grabbed with gdk_x11_grab_server().

    Returns void

  • x11XatomToAtom(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