allocate
Description:
public virtual void allocate (
ActorBox box,
AllocationFlags flags)
Called by the parent of an actor to assign the actor its size.
Should never be called by applications (except when implementing a container or layout manager).
Actors can know from their allocation box whether they have moved with respect to their parent actor. The flags parameter
describes additional information about the allocation, for instance whether the parent has moved with respect to the stage, for example because
a grandparent's origin has moved.
Parameters:
| box |
new allocation of the actor, in parent-relative coordinates |
| flags |
flags that control the allocation |