allocate_align_fill


Description:

[ Version ( since = "1.4" ) ]
public void allocate_align_fill (ActorBox box, double x_align, double y_align, bool x_fill, bool y_fill, AllocationFlags flags)

Allocates this by taking into consideration the available allocation area; an alignment factor on either axis; and whether the actor should fill the allocation on either axis.

The box should contain the available allocation width and height; if the x1 and y1 members of ActorBox are not set to 0, the allocation will be offset by their value.

This function takes into consideration the geometry request specified by the request_mode property, and the text direction.

This function is useful for fluid layout managers using legacy alignment flags. Newly written layout managers should use the x_align and y_align properties, instead, and just call allocate inside their allocate implementation.

Parameters:

this

a Actor

box

a ActorBox, containing the available width and height

x_align

the horizontal alignment, between 0 and 1

y_align

the vertical alignment, between 0 and 1

x_fill

whether the actor should fill horizontally

y_fill

whether the actor should fill vertically

flags

allocation flags to be passed to allocate