X11

Description

Members

Static functions

displayGetStartupNotificationId
string displayGetStartupNotificationId(Display display)

Gets the startup notification ID for a display. Since 2.12

drawableGetXid
uint drawableGetXid(Drawable drawable)

Returns the X resource (window or pixmap) belonging to a GdkDrawable.

fontGetName
string fontGetName(Font font)

Warning gdk_x11_font_get_name is deprecated and should not be used in newly-written code. Return the X Logical Font Description (for font->type == GDK_FONT_FONT) or comma separated list of XLFDs (for font->type == GDK_FONT_FONTSET) that was used to load the font. If the same font was loaded via multiple names, which name is returned is undefined.

fontGetXfont
void* fontGetXfont(Font font)

Warning gdk_x11_font_get_xfont is deprecated and should not be used in newly-written code. Returns the X font belonging to a GdkFont.

gdkPixmapLookup
Pixmap gdkPixmapLookup(GdkNativeWindow anid)

Looks up the GdkPixmap that wraps the given native pixmap handle. For example in the X backend, a native pixmap handle is an Xlib XID.

gdkWindowForeignNew
Window gdkWindowForeignNew(GdkNativeWindow anid)

Warning gdk_window_foreign_new is deprecated and should not be used in newly-written code. Wraps a native window for the default display in a GdkWindow. This may fail if the window has been destroyed. For example in the X backend, a native window handle is an Xlib XID.

gdkWindowLookup
Window gdkWindowLookup(GdkNativeWindow anid)

Warning gdk_window_lookup has been deprecated since version 2.24 and should not be used in newly-written code. Use gdk_x11_window_lookup_for_display() or equivalent backend-specific functionality instead Looks up the GdkWindow that wraps the given native window handle. For example in the X backend, a native window handle is an Xlib XID.

gdkXidTableLookup
void* gdkXidTableLookup(uint xid)

Warning gdk_xid_table_lookup has been deprecated since version 2.24 and should not be used in newly-written code. This function will be removed in GTK+ 3.0. GTK+ only stores windows in its X id table nowadays, so use gdk_x11_window_lookup_for_display() instead. Returns the Gdk object associated with the given X id for the default display.

getDefaultScreen
int getDefaultScreen()

Gets the default GTK+ screen number.

getServerTime
uint getServerTime(Window window)

Routine to get the current X server time stamp.

grabServer
void grabServer()

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.

screenGetMonitorOutput
uint screenGetMonitorOutput(GdkScreen* screen, int monitorNum)

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. Since 2.14

setSmClientId
void setSmClientId(string smClientId)

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 Since 2.24

ungrabServer
void ungrabServer()

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

windowMoveToCurrentDesktop
void windowMoveToCurrentDesktop(Window window)

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. Since 2.8

windowSetUserTime
void windowSetUserTime(Window window, uint timestamp)

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. Since 2.6

Meta