Converts from a #GdkAtom to the X atom for the default GDK display
with the same string value.
the X atom corresponding to @atom.
A #GdkAtom
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.
the X atom corresponding to @atom, or %None
A #GdkDisplay
A #GdkAtom, or %GDK_NONE
If xcolormap refers to a colormap previously known to GTK+,
returns a new reference to the existing #GdkColormap object,
otherwise creates a new GdkColormap object and returns that
the #GdkColormap object for @xcolormap.
Free with g_object_unref(). Note that for colormap created
with gdk_x11_colormap_foreign_new(), unref'ing the last
reference to the object will only free the #GdkColoramp
object and not call XFreeColormap()
a #GdkVisual
The XID of a colormap with visual @visual
Returns the X colormap belonging to a #GdkColormap.
an Xlib <type>Colormap</type>.
a #GdkColormap.
Returns the display of a #GdkColormap.
an Xlib <type>Display*</type>.
a #GdkColormap.
Returns the X cursor belonging to a #GdkCursor.
an Xlib <type>Cursor</type>.
a #GdkCursor.
Returns the display of a #GdkCursor.
an Xlib <type>Display*</type>.
a #GdkCursor.
Sends a startup notification message of type @message_type to
@display.
This is a convenience function for use by code that implements the
freedesktop startup notification specification. Applications should
not normally need to call it directly. See the <ulink
url="http://standards.freedesktop.org/startup-notification-spec/startup-notification-latest.txt">Startup
Notification Protocol specification</ulink> for
definitions of the message types and keys that can be used.
a #GdkDisplay
startup notification message type ("new", "change",
or "remove")
a list of key/value pairs (as strings), terminated by a
%NULL key. (A %NULL value for a key will cause that key to be
skipped in the output.)
Gets the startup notification ID for a display.
the startup notification ID for @display
a #GdkDisplay
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().
the timestamp of the last user interaction
a #GdkDisplay
Returns the X display of a #GdkDisplay.
an X display.
a #GdkDisplay
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.
a #GdkDisplay
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).
a #GdkDisplay
the name of the cursor theme to use, or %NULL to unset
a previously set value
the cursor size to use, or 0 to keep the previous size
Ungrab @display after it has been grabbed with
gdk_x11_display_grab().
a #GdkDisplay
Returns the display of a #GdkDrawable.
an Xlib <type>Display*</type>.
a #GdkDrawable.
Returns the X resource (window or pixmap) belonging to a #GdkDrawable.
the ID of @drawable's X resource.
a #GdkDrawable.
Returns the display of a #GdkGC.
#GdkGC has been replaced by #cairo_t.
an Xlib <type>Display*</type>.
a #GdkGC.
Returns the X GC of a #GdkGC.
#GdkGC has been replaced by #cairo_t.
an Xlib <type>GC</type>.
a #GdkGC.
Gets the root window of the default screen
(see gdk_x11_get_default_screen()).
an Xlib <type>Window</type>.
Gets the default GTK+ screen number.
returns the screen number specified by
the --display command line option or the DISPLAY environment
variable when gdk_init() calls XOpenDisplay().
Gets the default GTK+ display.
the Xlib <type>Display*</type> for the display
specified in the <option>--display</option> command line option
or the <envar>DISPLAY</envar> environment variable.
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.
a X atom for GDK's default display.
a string
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.
a X atom for a #GdkDisplay
a #GdkDisplay
a string
Returns the name of an X atom for GDK's default display. This
function is meant mainly for debugging, so for convenience, unlike
<function>XAtomName()</function> and gdk_atom_name(), the result
doesn't need to be freed. Also, this function will never return %NULL,
even if @xatom is invalid.
name of the X atom; this string is owned by GTK+,
so it shouldn't be modifed or freed.
an X atom for GDK's default 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.
name of the X atom; this string is owned by GDK,
so it shouldn't be modifed or freed.
the #GdkDisplay where @xatom is defined
an X atom
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 the display of a #GdkImage.
an Xlib <type>Display*</type>.
a #GdkImage.
Returns the X image belonging to a #GdkImage.
an <type>XImage*</type>.
a #GdkImage.
Find the #GdkDisplay corresponding to @display, if any exists.
the #GdkDisplay, if found, otherwise %NULL.
a pointer to an X Display
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.
the XID of the monitor
a #GdkScreen
number of the monitor, between 0 and gdk_screen_get_n_monitors (screen)
Returns the index of a #GdkScreen.
the position of @screen among the screens of
its display.
a #GdkScreen.
Returns the screen of a #GdkScreen.
an Xlib <type>Screen*</type>
a #GdkScreen.
Looks up the #GdkVisual for a particular screen and X Visual ID.
the #GdkVisual (owned by the screen
object), or %NULL if the visual ID wasn't found.
a #GdkScreen.
an X Visual ID.
Sets the <literal>SM_CLIENT_ID</literal> 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
the client id assigned by the session manager when the
connection was opened, or %NULL to remove the property.
Ungrab the default display after it has been grabbed with
gdk_x11_grab_server().
Returns the X visual belonging to a #GdkVisual.
an Xlib <type>Visual*</type>.
a #GdkVisual.
Wraps a native window in a #GdkWindow.
This may fail if the window has been destroyed. If the window
was already known to GDK, a new reference to the existing
#GdkWindow is returned.
a #GdkWindow wrapper for the native window or
%NULL if the window has been destroyed. The wrapper will be
newly created, if one doesn't exist already.
the #GdkDisplay where the window handle comes from.
an XLib <type>Window</type>
Looks up the #GdkWindow that wraps the given native window handle.
the #GdkWindow wrapper for the native window,
or %NULL if there is none.
the #GdkDisplay corresponding to the window handle
an XLib <type>Window</type>
Moves the window to the correct workspace when running under a
window manager that supports multiple workspaces, as described
in the <ulink url="http://www.freedesktop.org/Standards/wm-spec">Extended
Window Manager Hints</ulink>. Will not do anything if the
window is already on all workspaces.
a #GdkWindow
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.
A toplevel #GdkWindow
An XServer timestamp to which the property should be set
Convert from an X atom for the default display to the corresponding
#GdkAtom.
the corresponding G#dkAtom.
an X atom for the default GDK display
Convert from an X atom for a #GdkDisplay to the corresponding
#GdkAtom.
the corresponding #GdkAtom.
A #GdkDisplay
an X atom
Returns the Gdk object associated with the given X id for the default
display.
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.
the associated Gdk object, which may be a #GdkPixmap,
a #GdkWindow or a #GdkFont or %NULL if no object is associated
with the X id.
an X id.
Returns the GDK object associated with the given X id.
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.
the associated Gdk object, which may be a #GdkPixmap,
a #GdkWindow or a #GdkFont or %NULL if no object is associated
with the X id.
the #GdkDisplay.
an X id.