![]() |
![]() |
![]() |
Clutter 0.0 Reference Manual | ![]() |
---|---|---|---|---|
#define CLUTTER_STAGE_WIDTH () #define CLUTTER_STAGE_HEIGHT () ClutterStagePrivate; ClutterStage; ClutterActor* clutter_stage_get_default (void); Window clutter_stage_get_xwindow (ClutterStage *stage); gboolean clutter_stage_set_xwindow_foreign (ClutterStage *stage, Window xid); void clutter_stage_set_color (ClutterStage *stage, const ClutterColor *color); void clutter_stage_get_color (ClutterStage *stage, ClutterColor *color); ClutterActor* clutter_stage_get_actor_at_pos (ClutterStage *stage, gint x, gint y); GdkPixbuf* clutter_stage_snapshot (ClutterStage *stage, gint x, gint y, gint width, gint height);
"color" ClutterColor : Read / Write "fullscreen" gboolean : Read / Write / Construct "hide-cursor" gboolean : Read / Write / Construct "offscreen" gboolean : Read / Write / Construct
"button-press-event" void user_function (ClutterStage *clutterstage, ClutterEvent *arg1, gpointer user_data) : Run last "button-release-event" void user_function (ClutterStage *clutterstage, ClutterEvent *arg1, gpointer user_data) : Run last "input-event" void user_function (ClutterStage *clutterstage, ClutterEvent *arg1, gpointer user_data) : Run last "key-press-event" void user_function (ClutterStage *clutterstage, ClutterEvent *arg1, gpointer user_data) : Run last "key-release-event" void user_function (ClutterStage *clutterstage, ClutterEvent *arg1, gpointer user_data) : Run last "motion-event" void user_function (ClutterStage *clutterstage, ClutterEvent *arg1, gpointer user_data) : Run last
ClutterActor* clutter_stage_get_default (void);
Returns the main stage. ClutterStage is a singleton, so
the stage will be created the first time this function is
called (typically, inside clutter_init()
); all the subsequent
calls to clutter_stage_get_default()
will return the same
instance, with its reference count increased.
Returns : | the main ClutterStage. Use g_object_unref()
when finished using it.
|
Window clutter_stage_get_xwindow (ClutterStage *stage);
Get the stages underlying x window ID.
stage : |
A ClutterStage |
Returns : | Stage X Window XID |
gboolean clutter_stage_set_xwindow_foreign (ClutterStage *stage, Window xid);
Target the ClutterStage to use an existing externtal X Window.
stage : |
A ClutterStage |
xid : |
A preexisting X Window ID |
Returns : | TRUE if foreign window valid, FALSE otherwise |
void clutter_stage_set_color (ClutterStage *stage, const ClutterColor *color);
Set the stage color.
stage : |
A ClutterStage |
color : |
A ClutterColor |
void clutter_stage_get_color (ClutterStage *stage, ClutterColor *color);
Request the stage color.
stage : |
A ClutterStage |
color : |
return location for a ClutterColor |
ClutterActor* clutter_stage_get_actor_at_pos (ClutterStage *stage, gint x, gint y);
If found, retrieves the actor that the (x, y) coordinates.
stage : |
a ClutterStage |
x : |
the x coordinate |
y : |
the y coordinate |
Returns : | the ClutterActor at the desired coordinates,
or NULL if no actor was found.
|
GdkPixbuf* clutter_stage_snapshot (ClutterStage *stage, gint x, gint y, gint width, gint height);
Gets a pixel based representation of the current rendered stage.
stage : |
A ClutterStage |
x : |
x coordinate of the first pixel that is read from stage |
y : |
y coordinate of the first pixel that is read from stage |
width : |
Width dimention of pixels to be read, or -1 for the entire stage width |
height : |
Height dimention of pixels to be read, or -1 for the entire stage height |
Returns : | pixel representation as a GdkPixbuf |
fullscreen
" property"fullscreen" gboolean : Read / Write / Construct
Whether the stage should be fullscreen or not.
Default value: FALSE
hide-cursor
" property"hide-cursor" gboolean : Read / Write / Construct
Make Clutter stage cursor-less.
Default value: FALSE
void user_function (ClutterStage *clutterstage, ClutterEvent *arg1, gpointer user_data) : Run last
clutterstage : |
the object which received the signal. |
arg1 : |
|
user_data : |
user data set when the signal handler was connected. |
void user_function (ClutterStage *clutterstage, ClutterEvent *arg1, gpointer user_data) : Run last
clutterstage : |
the object which received the signal. |
arg1 : |
|
user_data : |
user data set when the signal handler was connected. |
void user_function (ClutterStage *clutterstage, ClutterEvent *arg1, gpointer user_data) : Run last
clutterstage : |
the object which received the signal. |
arg1 : |
|
user_data : |
user data set when the signal handler was connected. |
void user_function (ClutterStage *clutterstage, ClutterEvent *arg1, gpointer user_data) : Run last
clutterstage : |
the object which received the signal. |
arg1 : |
|
user_data : |
user data set when the signal handler was connected. |
void user_function (ClutterStage *clutterstage, ClutterEvent *arg1, gpointer user_data) : Run last
clutterstage : |
the object which received the signal. |
arg1 : |
|
user_data : |
user data set when the signal handler was connected. |
void user_function (ClutterStage *clutterstage, ClutterEvent *arg1, gpointer user_data) : Run last
clutterstage : |
the object which received the signal. |
arg1 : |
|
user_data : |
user data set when the signal handler was connected. |