Namespace

GdkX11 – 3.0

The GTK toolkit

Version3.24
AuthorsGTK Development Team
LicenseLGPL-2.1-or-later
Websitehttps://www.gtk.org
Sourcehttps://gitlab.gnome.org/GNOME/gtk/

Build

C headersgdk/gdkx.h
pkg-config filesgdk-x11-3.0

Dependencies

GObject—2.0 The base type system library
Browse documentation
Pango—1.0 Text shaping and rendering
Browse documentation
Gdk—3.0 The GDK windowing system abstraction
Browse documentation

Additional documentation

Functions

x11_atom_to_xatom

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

x11_atom_to_xatom_for_display

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.

since: 2.2

x11_device_get_id

Returns the device ID as seen by XInput2.

since: 3.2

x11_device_manager_lookup

Returns the GdkDevice that wraps the given device ID.

since: 3.2

x11_free_compound_text

Frees the data returned from gdk_x11_display_string_to_compound_text().

since: 2.24

x11_free_text_list

Frees the array of strings created by gdk_x11_display_text_property_to_text_list().

since: 2.24

x11_get_default_root_xwindow

Gets the root window of the default screen (see gdk_x11_get_default_screen()).

x11_get_default_screen

Gets the default GTK+ screen number.

x11_get_default_xdisplay

Gets the default GTK+ display.

x11_get_parent_relative_pattern

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.

unstable deprecated: 3.24 since: 3.24.2

x11_get_server_time

Routine to get the current X server time stamp.

x11_get_xatom_by_name

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.

x11_get_xatom_by_name_for_display

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.

since: 2.2

x11_get_xatom_name

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.

x11_get_xatom_name_for_display

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.

since: 2.2

x11_grab_server

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

x11_lookup_xdisplay

Find the GdkDisplay corresponding to xdisplay, if any exists.

since: 2.2

x11_register_standard_event_type

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

since: 2.4

x11_set_sm_client_id

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.

since: 2.24

x11_ungrab_server

Ungrab the default display after it has been grabbed with gdk_x11_grab_server().

x11_xatom_to_atom

Convert from an X atom for the default display to the corresponding GdkAtom.

x11_xatom_to_atom_for_display

Convert from an X atom for a GdkDisplay to the corresponding GdkAtom.

since: 2.2

Function Macros

CURSOR_XCURSOR

Returns the X cursor belonging to a GdkCursor.

CURSOR_XDISPLAY

Returns the display of a GdkCursor.

DISPLAY_XDISPLAY

POINTER_TO_XID

Converts a gpointer back to an XID that was previously converted using GDK_XID_TO_POINTER().

ROOT_WINDOW

Obtains the Xlib window id of the root window of the current screen.

SCREEN_XDISPLAY

Returns the display of a X11 GdkScreen.

SCREEN_XNUMBER

Returns the index of a X11 GdkScreen.

SCREEN_XSCREEN

Returns the screen of a X11 GdkScreen.

VISUAL_XVISUAL

WINDOW_XDISPLAY

Returns the display of a GdkWindow.

WINDOW_XID

Returns the X window belonging to a GdkWindow.

X11_DEVICE_MANAGER_XI2

X11_DEVICE_MANAGER_XI2_CLASS

X11_DEVICE_XI2

X11_DEVICE_XI2_CLASS

XID_TO_POINTER

Converts an XID into a gpointer. This is useful with data structures that use pointer arguments such as GHashTable. Use GDK_POINTER_TO_XID() to convert the argument back to an XID.