On Tue, 2008-07-22 at 15:55 +1000, Saul Lethbridge wrote:

> Can somebody please give me a quick example of using
> clutter_container_foreach ()? I'm wanting to evaluate the size of each
> actor in a container using cluttor_actor_get_size(). I noticed none of
> the 'tests' using this function.

the clutter_container_foreach() function iterates over each child of the
container using the function you provide as the "callback" parameter:

  static void
  do_foreach_child (ClutterActor *actor,
                    gpointer      user_data)
  {
    /* do something with actor */
  }

  ...

    clutter_container_foreach (CLUTTER_CONTAINER (container),
                               do_foreach_child,
                               some_data_to_pass);

ciao,
 Emmanuele.

-- 
Emmanuele Bassi, OpenedHand Ltd.
Unit R, Homesdale Business Centre
216-218 Homesdale Rd., Bromley - BR12QZ
http://www.o-hand.com

-- 
To unsubscribe send a mail to [EMAIL PROTECTED]

Reply via email to