Next: Undocumented, Previous: Overview, Up: Top
X11 specific API
The X11 backend for Clutter provides some specific API, allowing integration with the Xlibs API for embedding and manipulating the stage window, or for trapping X errors.
The ClutterX11 API is available since Clutter 0.6
unsigned-int32) (ret <clutter-stage>)Gets the stage for a particular X window.
- win
- an X Window ID
- ret
- The stage or NULL if a stage does not exist for the window.
Since 0.8
int)Gets the number of the default X Screen object.
- ret
- the number of the default screen
Since 0.6
unsigned-int32)Retrieves the root window.
- ret
- the id of the root window
Since 0.6
<clutter-stage>) (ret unsigned-int32)Gets the stages X Window.
- stage
- a
<clutter-stage>- ret
- An XID for the stage window.
Since 0.4
<clutter-stage>) (xwindow unsigned-int32) (ret bool)Target the
<clutter-stage>to use an existing external X Window
- stage
- a
<clutter-stage>- xwindow
- an existing X Window id
- ret
- ‘
#t’ if foreign window is validSince 0.4
Traps every X error until
clutter-x11-untrap-x-errorsis called.Since 0.6