Gjsify LogoGjsify Logo

Index

Functions

  • net_wm_supports(property: Gdk.Atom): boolean
  • 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

  • x11_display_get_startup_notification_id(display: Gdk.Display): string
  • x11_display_get_user_time(display: Gdk.Display): number
  • Returns the timestamp of the last user interaction on display. The timestamp is taken from events caused by user interaction such as key presses or pointer movements. See gdk_x11_window_set_user_time().

    Parameters

    Returns number

  • Call XGrabServer() on display. To ungrab the display again, use gdk_x11_display_ungrab().

    gdk_x11_display_grab()/gdk_x11_display_ungrab() calls can be nested.

    Parameters

    Returns void

  • x11_display_set_cursor_theme(display: Gdk.Display, theme: string, size: number): void
  • Sets the cursor theme from which the images for cursor should be taken.

    If the windowing system supports it, existing cursors created with gdk_cursor_new(), gdk_cursor_new_for_display() and gdk_cursor_new_for_name() are updated to reflect the theme change. Custom cursors constructed with gdk_cursor_new_from_pixmap() or gdk_cursor_new_from_pixbuf() will have to be handled by the application (GTK+ applications can learn about cursor theme changes by listening for change notification for the corresponding #GtkSetting).

    Parameters

    • display: Gdk.Display

      a #GdkDisplay

    • theme: string

      the name of the cursor theme to use, or %NULL to unset a previously set value

    • size: number

      the cursor size to use, or 0 to keep the previous size

    Returns void

  • x11_display_string_to_compound_text(display: Gdk.Display, str: string, encoding: Gdk.Atom, format: number, ctext: number, length: number): number
  • x11_display_text_property_to_text_list(display: Gdk.Display, encoding: Gdk.Atom, format: number, text: number, length: number, list: string): number
  • x11_display_utf8_to_compound_text(display: Gdk.Display, str: string, encoding: Gdk.Atom, format: number, ctext: number, length: number): boolean
  • x11_font_get_name(font: Gdk.Font): string
  • x11_font_get_xfont(font: Gdk.Font): object | null
  • x11_free_compound_text(ctext: number): void
  • x11_free_text_list(list: string): void
  • x11_get_default_screen(): number
  • x11_get_server_time(window: Gdk.Window): 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

    • display: Gdk.Display

      a #GdkDisplay

    • atom_name: string

      a string

    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: Gdk.Display, 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: Gdk.Display

      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: Gdk.Display, event_base: number, n_events: number): void
  • x11_screen_get_monitor_output(screen: Gdk.Screen, monitor_num: number): XID
  • Gets the XID of the specified output/monitor. If the X server does not support version 1.2 of the RANDR extension, 0 is returned.

    Parameters

    • screen: Gdk.Screen

      a #GdkScreen

    • monitor_num: number

      number of the monitor, between 0 and gdk_screen_get_n_monitors (screen)

    Returns XID

  • x11_screen_get_screen_number(screen: Gdk.Screen): number
  • x11_screen_get_window_manager_name(screen: Gdk.Screen): string
  • x11_screen_supports_net_wm_hint(screen: Gdk.Screen, property: Gdk.Atom): boolean
  • 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_window_move_to_current_desktop(window: Gdk.Window): void
  • Moves the window to the correct workspace when running under a window manager that supports multiple workspaces, as described in the Extended Window Manager Hints. Will not do anything if the window is already on all workspaces.

    Parameters

    Returns void

  • x11_window_set_user_time(window: Gdk.Window, timestamp: number): void
  • The application can use this call to update the _NET_WM_USER_TIME property on a toplevel window. This property stores an Xserver time which represents the time of the last user input event received for this window. This property may be used by the window manager to alter the focus, stacking, and/or placement behavior of windows when they are mapped depending on whether the new window was created by a user action or is a "pop-up" window activated by a timer or some other event.

    Note that this property is automatically updated by GDK, so this function should only be used by applications which handle input events bypassing GDK.

    Parameters

    • window: Gdk.Window

      A toplevel #GdkWindow

    • timestamp: number

      An XServer timestamp to which the property should be set

    Returns void

  • xid_table_lookup(xid: number): object | null
  • Returns the Gdk object associated with the given X id for the default display.

    Parameters

    • xid: number

      an X id.

    Returns object | null

  • xid_table_lookup_for_display(display: Gdk.Display, xid: number): object | null

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