Details
GDK_ROOT_WINDOW()
#define GDK_ROOT_WINDOW() (gdk_x11_get_default_root_xwindow ())
|
Obtains the Xlib window id of the root window of the current screen.
GDK_ROOT_PARENT()
#define GDK_ROOT_PARENT() (gdk_get_default_root_window ())
|
Warning |
GDK_ROOT_PARENT is deprecated and should not be used in newly-written code.
|
Obtains the Xlib window id of the root window of the default screen.
GDK_DISPLAY()
#define GDK_DISPLAY() gdk_display
|
The current display.
GDK_WINDOW_XDISPLAY()
#define GDK_WINDOW_XDISPLAY(win) |
Returns the display of a GdkWindow.
GDK_WINDOW_XID()
#define GDK_WINDOW_XID(win) |
Returns the X window belonging to a GdkWindow.
GDK_PIXMAP_XDISPLAY()
#define GDK_PIXMAP_XDISPLAY(pix) |
Returns the display of a GdkPixmap.
GDK_PIXMAP_XID()
#define GDK_PIXMAP_XID(pix) |
Returns the X pixmap belonging to a GdkPixmap.
GDK_DISPLAY_XDISPLAY()
#define GDK_DISPLAY_XDISPLAY(display) |
Returns the display of a GdkDisplay.
GDK_DRAWABLE_XDISPLAY()
#define GDK_DRAWABLE_XDISPLAY(win) |
Returns the display of a GdkDrawable.
GDK_DRAWABLE_XID()
#define GDK_DRAWABLE_XID(win) |
Returns the X resource (window or pixmap) belonging to a GdkDrawable.
GDK_IMAGE_XDISPLAY()
#define GDK_IMAGE_XDISPLAY(image) (gdk_x11_image_get_xdisplay (image))
|
Returns the display of a GdkImage.
GDK_IMAGE_XIMAGE()
#define GDK_IMAGE_XIMAGE(image) (gdk_x11_image_get_ximage (image))
|
Returns the X image belonging to a GdkImage.
GDK_GC_XDISPLAY()
#define GDK_GC_XDISPLAY(gc) |
Returns the display of a GdkGC.
GDK_COLORMAP_XDISPLAY()
#define GDK_COLORMAP_XDISPLAY(cmap) (gdk_x11_colormap_get_xdisplay (cmap))
|
Returns the display of a GdkColormap.
GDK_COLORMAP_XCOLORMAP()
#define GDK_COLORMAP_XCOLORMAP(cmap) (gdk_x11_colormap_get_xcolormap (cmap))
|
Returns the X colormap belonging to a GdkColormap.
GDK_SCREEN_XDISPLAY()
#define GDK_SCREEN_XDISPLAY(screen) |
Returns the display of a GdkScreen.
GDK_SCREEN_XNUMBER()
#define GDK_SCREEN_XNUMBER(screen) |
Returns the index of a GdkScreen.
GDK_SCREEN_XSCREEN()
#define GDK_SCREEN_XSCREEN(screen) |
Returns the screen of a GdkScreen.
GDK_VISUAL_XVISUAL()
#define GDK_VISUAL_XVISUAL(vis) |
Returns the X visual belonging to a GdkVisual.
GDK_FONT_XDISPLAY()
#define GDK_FONT_XDISPLAY(font) (gdk_x11_font_get_xdisplay (font))
|
Warning |
GDK_FONT_XDISPLAY is deprecated and should not be used in newly-written code.
|
Returns the display of a GdkFont.
GDK_FONT_XFONT()
#define GDK_FONT_XFONT(font) (gdk_x11_font_get_xfont (font))
|
Warning |
GDK_FONT_XFONT is deprecated and should not be used in newly-written code.
|
Returns the X font belonging to a GdkFont.
GDK_CURSOR_XCURSOR()
#define GDK_CURSOR_XCURSOR(cursor) (gdk_x11_cursor_get_xcursor (cursor))
|
Returns the X cursor belonging to a GdkCursor.
GDK_CURSOR_XDISPLAY()
#define GDK_CURSOR_XDISPLAY(cursor) (gdk_x11_cursor_get_xdisplay (cursor))
|
Returns the display of a GdkCursor.
GDK_GC_XGC()
Returns the X GC of a GdkGC.
Note:
Note that the clip origin, clip region and tile/stipple origin fields of the
returned GC may not be in sync with gc. If you need that,
use GDK_GC_GET_XGC().
GDK_GC_GET_XGC()
#define GDK_GC_GET_XGC(gc) (GDK_GC_X11(gc)->dirty_mask ? _gdk_x11_gc_flush (gc) : ((GdkGCX11 *)(gc))->xgc)
|
Returns the X GC of a GdkGC.
GDK_WINDOW_XWINDOW
#define GDK_WINDOW_XWINDOW |
Another name for GDK_DRAWABLE_XID().
gdkx_visual_get ()
GdkVisual* gdkx_visual_get (VisualID xvisualid); |
Returns a GdkVisual corresponding to a X visual.
gdkx_visual_get_for_screen ()
Returns a GdkVisual from and X Visual id.
gdkx_colormap_get ()
Returns a GdkColormap corresponding to a X colormap.
gdk_pixmap_foreign_new ()
Wraps a native window for the default display in a GdkPixmap.
This may fail if the pixmap has been destroyed.
For example in the X backend, a native pixmap handle is an Xlib
XID.
gdk_pixmap_foreign_new_for_display ()
Wraps a native window in a GdkPixmap.
This may fail if the pixmap has been destroyed.
For example in the X backend, a native pixmap handle is an Xlib
XID.
gdk_window_foreign_new ()
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.
gdk_window_foreign_new_for_display ()
Wraps a native window 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.
gdk_xid_table_lookup ()
gpointer gdk_xid_table_lookup (XID xid); |
Returns the Gdk object associated with the given X id.
gdk_xid_table_lookup_for_display ()
Returns the Gdk object associated with the given X id.
gdk_window_lookup ()
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.
gdk_window_lookup_for_display ()
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.
gdk_pixmap_lookup ()
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.
gdk_pixmap_lookup_for_display ()
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.
gdk_font_lookup()
#define gdk_font_lookup(xid) ((GdkFont*) gdk_xid_table_lookup (xid))
|
Warning |
gdk_font_lookup is deprecated and should not be used in newly-written code.
|
Obtains the GdkFont for the given Xlib font ID, or NULL if no GdkFont has
been created for xid.
gdk_font_lookup_for_display()
#define gdk_font_lookup_for_display(display, xid) ((GdkFont*) gdk_xid_table_lookup_for_display (display, xid))
|
Warning |
gdk_font_lookup_for_display is deprecated and should not be used in newly-written code.
|
Obtains the GdkFont for the given Xlib font ID on display, or NULL if no
GdkFont has been created for xid.
gdk_x11_lookup_xdisplay ()
GdkDisplay* gdk_x11_lookup_xdisplay (Display *xdisplay); |
Find the GdkDisplay corresponding to display, if any exists.
gdk_x11_get_server_time ()
guint32 gdk_x11_get_server_time (GdkWindow *window); |
Routine to get the current X server time stamp.
gdk_net_wm_supports ()
This function is specific to the X11 backend of GDK, and indicates
whether the window manager for the default screen supports a certain
hint from the Extended Window Manager Hints Specification. See
gdk_x11_screen_supports_net_wm_hint() for complete details.
gdk_x11_screen_supports_net_wm_hint ()
This function is specific to the X11 backend of GDK, and indicates
whether the window manager supports a certain hint from the
Extended Window Manager Hints Specification. You can find this
specification on http://www.freedesktop.org.
When using this function, keep in mind that the window manager
can change over time; so you shouldn't use this function in
a way that impacts persistent application state. A common bug
is that your application can start up before the window manager
does when the user logs in, and before the window manager starts
gdk_x11_screen_supports_net_wm_hint() will return FALSE for every property.
gdk_x11_colormap_get_xcolormap ()
Colormap gdk_x11_colormap_get_xcolormap (GdkColormap *colormap); |
Returns the X colormap belonging to a GdkColormap.
gdk_x11_colormap_get_xdisplay ()
Display* gdk_x11_colormap_get_xdisplay (GdkColormap *colormap); |
Returns the display of a GdkColormap.
gdk_x11_cursor_get_xcursor ()
Cursor gdk_x11_cursor_get_xcursor (GdkCursor *cursor); |
Returns the X cursor belonging to a GdkCursor.
gdk_x11_cursor_get_xdisplay ()
Display* gdk_x11_cursor_get_xdisplay (GdkCursor *cursor); |
Returns the display of a GdkCursor.
gdk_x11_display_get_xdisplay ()
Display* gdk_x11_display_get_xdisplay (GdkDisplay *display); |
Returns the X display of a GdkDisplay.
gdk_x11_drawable_get_xdisplay ()
Display* gdk_x11_drawable_get_xdisplay (GdkDrawable *drawable); |
Returns the display of a GdkDrawable.
gdk_x11_drawable_get_xid ()
XID gdk_x11_drawable_get_xid (GdkDrawable *drawable); |
Returns the X resource (window or pixmap) belonging to a GdkDrawable.
gdk_x11_font_get_name ()
G_CONST_RETURN char* gdk_x11_font_get_name (GdkFont *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.
gdk_x11_font_get_xdisplay ()
Display* gdk_x11_font_get_xdisplay (GdkFont *font); |
Warning |
gdk_x11_font_get_xdisplay is deprecated and should not be used in newly-written code.
|
Returns the display of a GdkFont.
gdk_x11_font_get_xfont ()
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.
gdk_x11_gc_get_xdisplay ()
Display* gdk_x11_gc_get_xdisplay (GdkGC *gc); |
Returns the display of a GdkGC.
gdk_x11_gc_get_xgc ()
GC gdk_x11_gc_get_xgc (GdkGC *gc); |
Returns the X GC of a GdkGC.
gdk_x11_get_default_root_xwindow ()
Window gdk_x11_get_default_root_xwindow
(void); |
Gets the root window of the default screen
(see gdk_x11_get_default_screen()).
gdk_x11_get_default_screen ()
gint gdk_x11_get_default_screen (void); |
Gets the default GTK+ screen number.
gdk_x11_get_default_xdisplay ()
Display* gdk_x11_get_default_xdisplay (void); |
Gets the default GTK+ display.
gdk_x11_image_get_xdisplay ()
Display* gdk_x11_image_get_xdisplay (GdkImage *image); |
Returns the display of a GdkImage.
gdk_x11_image_get_ximage ()
XImage* gdk_x11_image_get_ximage (GdkImage *image); |
Returns the X image belonging to a GdkImage.
gdk_x11_screen_get_screen_number ()
int gdk_x11_screen_get_screen_number
(GdkScreen *screen); |
Returns the index of a GdkScreen.
gdk_x11_screen_get_xscreen ()
Screen* gdk_x11_screen_get_xscreen (GdkScreen *screen); |
Returns the screen of a GdkScreen.
gdk_x11_ungrab_server ()
void gdk_x11_ungrab_server (); |
Ungrab the default display after it has been grabbed with
gdk_x11_grab_server().
gdk_x11_visual_get_xvisual ()
Visual* gdk_x11_visual_get_xvisual (GdkVisual *visual); |
Returns the X visual belonging to a GdkVisual.
gdk_x11_atom_to_xatom ()
Atom gdk_x11_atom_to_xatom (GdkAtom atom); |
Converts from a GdkAtom to the X atom for the default GDK display
with the same string value.
gdk_x11_atom_to_xatom_for_display ()
Converts from a GdkAtom to the X atom for a GdkDisplay
with the same string value.
gdk_x11_xatom_to_atom ()
GdkAtom gdk_x11_xatom_to_atom (Atom xatom); |
Convert from an X atom for the default display to the corresponding
GdkAtom.
gdk_x11_xatom_to_atom_for_display ()
Convert from an X atom for a GdkDisplay to the corresponding
GdkAtom.
gdk_x11_get_xatom_by_name ()
Atom gdk_x11_get_xatom_by_name (const gchar *atom_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.
gdk_x11_get_xatom_by_name_for_display ()
Atom gdk_x11_get_xatom_by_name_for_display
(GdkDisplay *display,
const gchar *atom_name); |
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.
gdk_x11_get_xatom_name ()
G_CONST_RETURN gchar* gdk_x11_get_xatom_name
(Atom xatom); |
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.
gdk_x11_get_xatom_name_for_display ()
G_CONST_RETURN gchar* gdk_x11_get_xatom_name_for_display
(GdkDisplay *display,
Atom xatom); |
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.