actor: Adds private _clutter_actor_get_n_children

This adds a private getter to query the number of children an actor has.
One use planned for this API is to avoid calling get_paint_volume on
such actors. (It's not clear what the best semantics for
get_paint_volume are for actors with children, so we are considering
leaving the semantics undefined for the initial clutter 1.4 release)
This commit is contained in:
Robert Bragg 2010-09-12 23:49:02 +01:00
parent 239d83f952
commit 9a1abbc713
2 changed files with 8 additions and 0 deletions

View File

@ -12116,3 +12116,10 @@ clutter_actor_get_paint_box (ClutterActor *self,
return TRUE; return TRUE;
} }
gint
_clutter_actor_get_n_children (ClutterActor *self)
{
return self->priv->n_children;
}

View File

@ -452,6 +452,7 @@ gboolean _clutter_boolean_handled_accumulator (GSignalInvocationHint *ihint,
const GValue *handler_return, const GValue *handler_return,
gpointer dummy); gpointer dummy);
gint _clutter_actor_get_n_children (ClutterActor *self);
ClutterActor *_clutter_actor_get_stage_internal (ClutterActor *actor); ClutterActor *_clutter_actor_get_stage_internal (ClutterActor *actor);
void _clutter_actor_apply_modelview_transform (ClutterActor *self, void _clutter_actor_apply_modelview_transform (ClutterActor *self,