pack


Description:

[ Version ( deprecated = true , deprecated_since = "1.12" , since = "1.2" ) ]
public void pack (Actor actor, bool expand, bool x_fill, bool y_fill, BoxAlignment x_align, BoxAlignment y_align)

Warning: pack is deprecated since 1.12.

Packs actor inside the Container associated to this and sets the layout properties

Note:

BoxLayout honours Actor's align and expand properties.

The preferred way is adding the actor with add_child and setting x_align, y_align, x_expand and y_expand

Parameters:

this

a BoxLayout

actor

a Actor

expand

whether the actor should expand

x_fill

whether the actor should fill horizontally

y_fill

whether the actor should fill vertically

x_align

the horizontal alignment policy for actor

y_align

the vertical alignment policy for actor