Clutter 0.8.2 Reference Manual | ||||
---|---|---|---|---|
void clutter_win32_disable_event_retrieval (void); gboolean clutter_win32_set_stage_foreign (ClutterStage *stage, HWND hwnd); ClutterStage* clutter_win32_get_stage_from_window (HWND hwnd); HWND clutter_win32_get_stage_window (ClutterStage *stage);
The Win32 backend for Clutter provides some specific API, allowing integration with the Win32 API for embedding and manipulating the stage window.
The ClutterWin32 API is available since Clutter 0.8
void clutter_win32_disable_event_retrieval (void);
Disables retrieval of Windows messages in the main loop. Use to create event-less canvas.
This function can only be called before calling clutter_init()
.
Since 0.8
gboolean clutter_win32_set_stage_foreign (ClutterStage *stage, HWND hwnd);
Target the ClutterStage to use an existing external window handle.
|
a ClutterStage |
|
an existing window handle |
Returns : |
TRUE if foreign window is valid
|
Since 0.8
ClutterStage* clutter_win32_get_stage_from_window (HWND hwnd);
Gets the stage for a particular window.
|
a window handle |
Returns : |
The stage or NULL if a stage does not exist for the window. |
Since 0.8
HWND clutter_win32_get_stage_window (ClutterStage *stage);
Gets the stage's window handle
|
a ClutterStage |
Returns : |
An HWND for the stage window. |
Since 0.8