Clutter 0.8.2 Reference Manual | ||||
---|---|---|---|---|
ClutterGroup; ClutterGroupClass; ClutterActor* clutter_group_new (void); void clutter_group_add_many (ClutterGroup *group, ClutterActor *first_actor, ...); void clutter_group_add_many_valist (ClutterGroup *group, ClutterActor *first_actor, va_list var_args); void clutter_group_remove (ClutterGroup *group, ClutterActor *actor); void clutter_group_remove_all (ClutterGroup *group); gint clutter_group_get_n_children (ClutterGroup *self); ClutterActor* clutter_group_get_nth_child (ClutterGroup *self, gint index_); void clutter_group_raise (ClutterGroup *self, ClutterActor *actor, ClutterActor *sibling); void clutter_group_lower (ClutterGroup *self, ClutterActor *actor, ClutterActor *sibling); void clutter_group_sort_depth_order (ClutterGroup *self);
GObject +----GInitiallyUnowned +----ClutterActor +----ClutterGroup +----ClutterStage
A ClutterGroup is an Actor which contains multiple child actors positioned relative to the ClutterGroup position. Other operations such as scaling, rotating and clipping of the group will apply to the child actors.
A ClutterGroup's size is defined by the size and position of its children. Resize requests via the ClutterActor API will be ignored.
ClutterActor* clutter_group_new (void);
Create a new ClutterGroup.
Returns : |
the newly created ClutterGroup actor |
void clutter_group_add_many (ClutterGroup *group, ClutterActor *first_actor, ...);
clutter_group_add_many
is deprecated and should not be used in newly-written code.
Adds a NULL
-terminated list of actors to a group. This function is
equivalent to calling clutter_group_add()
for each member of the list.
Deprecated
: 0.4: This function is obsolete, use clutter_container_add()
instead.
|
A ClutterGroup |
|
the ClutterActor actor to add to the group |
|
additional actors to add to the group |
void clutter_group_add_many_valist (ClutterGroup *group, ClutterActor *first_actor, va_list var_args);
clutter_group_add_many_valist
is deprecated and should not be used in newly-written code.
Similar to clutter_group_add_many()
but using a va_list. Use this
function inside bindings.
Deprecated
: 0.4: This function is obsolete, use
clutter_container_add_valist()
instead.
|
a ClutterGroup |
|
the ClutterActor actor to add to the group |
|
the actors to be added |
void clutter_group_remove (ClutterGroup *group, ClutterActor *actor);
clutter_group_remove
is deprecated and should not be used in newly-written code.
Removes a child ClutterActor from the parent ClutterGroup.
Deprecated
: 0.4: This function is obsolete, use
clutter_container_remove_actor()
instead.
|
A ClutterGroup |
|
A ClutterActor |
void clutter_group_remove_all (ClutterGroup *group);
Removes all children actors from the ClutterGroup.
|
A ClutterGroup |
gint clutter_group_get_n_children (ClutterGroup *self);
Gets the number of actors held in the group.
|
A ClutterGroup |
Returns : |
The number of child actors held in the group. |
Since 0.2
ClutterActor* clutter_group_get_nth_child (ClutterGroup *self, gint index_);
Gets a groups child held at index_
in stack.
|
A ClutterGroup |
|
the position of the requested actor. |
Returns : |
A Clutter actor or NULL if index_ is invalid.
|
Since 0.2
void clutter_group_raise (ClutterGroup *self, ClutterActor *actor, ClutterActor *sibling);
clutter_group_raise
has been deprecated since version 0.6 and should not be used in newly-written code. Use clutter_container_raise_child()
instead.
Raises actor
to sibling
level in the depth ordering.
|
a ClutterGroup |
|
a ClutterActor |
|
a ClutterActor |
void clutter_group_lower (ClutterGroup *self, ClutterActor *actor, ClutterActor *sibling);
clutter_group_lower
has been deprecated since version 0.6 and should not be used in newly-written code. Use clutter_container_lower_child()
instead
Lowers actor
to sibling
level in the depth ordering.
|
a ClutterGroup |
|
a ClutterActor |
|
a ClutterActor |
void clutter_group_sort_depth_order (ClutterGroup *self);
clutter_group_sort_depth_order
has been deprecated since version 0.6 and should not be used in newly-written code. Use clutter_container_sort_depth_order()
instead.
Sorts a ClutterGroup's children by their depth value. This function should not be used by applications.
|
A ClutterGroup |
"add"
signalvoid user_function (ClutterGroup *group, ClutterActor *actor, gpointer user_data) : Run First
The ::add signal is emitted each time an actor has been added to the group.
Deprecated
: 0.4: This signal is deprecated, you should connect
to the ClutterContainer::actor-added signal instead.
|
the ClutterGroup that received the signal |
|
the actor added to the group |
|
user data set when the signal handler was connected. |
"remove"
signalvoid user_function (ClutterGroup *group, ClutterActor *actor, gpointer user_data) : Run First
The ::remove signal is emitted each time an actor has been removed from the group
Deprecated
: 0.4: This signal is deprecated, you should connect
to the ClutterContainer::actor-removed signal instead
|
the ClutterGroup that received the signal |
|
the actor added to the group |
|
user data set when the signal handler was connected. |