set_from_allocation


Description:

[ Version ( since = "1.6" ) ]
public bool set_from_allocation (Actor actor)

Sets the PaintVolume from the allocation of actor.

This function should be used when overriding the ClutterActorClass.get_paint_volume by Actor sub-classes that do not paint outside their allocation.

A typical example is:

static gboolean
my_actor_get_paint_volume (ClutterActor *self,
ClutterPaintVolume *volume)
{
return clutter_paint_volume_set_from_allocation (volume, self);
}

Parameters:

this

a PaintVolume

actor

a Actor

Returns:

true if the paint volume was successfully set, and false otherwise




2022 vala-language.org