On Wed, 2008-07-16 at 15:39 +0530, varun shrivastava wrote:
> hi
>  I have some questions regarding realize virtual function
> 1). When is it called?

   i. when an unrealized actor is parented to a realized actor
  ii. before an actor is shown for the first time
 iii. when clutter_actor_realize() is called on an actor and
      CLUTTER_ACTOR_IS_REALIZED() on the actor evaluates to
      FALSE.

> 2). Why do we need to chain it up to parent implementation?

you don't *need* to if you're subclassing ClutterActor: you can set the
CLUTTER_ACTOR_REALIZED flag yourself; you *need* to chain up if you are
subclassing another actor class and you want its ::realize virtual
function to be called.

> 3) if so how can i chain up to its parent

in which language?

in C, it's:

  CLUTTER_ACTOR_CLASS (your_actor_parent_class)->realize (actor);

but you should already know this.

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