C# Class Nez.UI.VerticalGroup

A group that lays out its children on top of each other in a single column. This can be easier than using {@link Table} when elements need to be inserted in the middle of the group. The preferred width is the largest preferred width of any child. The preferred height is the sum of the children's preferred heights, plus spacing between them if set. The min size is the preferred size and the max size is 0.
Inheritance: Group
Afficher le fichier Open project: prime31/Nez

Méthodes publiques

Méthode Description
VerticalGroup ( ) : System
VerticalGroup ( float spacing ) : System
invalidate ( ) : void
layout ( ) : void
setAlignment ( Align align ) : VerticalGroup

Sets the alignment of widgets within the vertical group. Set to {@link Align#center}, {@link Align#top}, {@link Align#bottom}, {@link Align#left}, {@link Align#right}, or any combination of those

setFill ( float fill ) : VerticalGroup

fill 0 will use pref width

setPad ( float pad ) : VerticalGroup

Sets the padTop, padLeft, padBottom, and padRight to the specified value

setPad ( float top, float left, float bottom, float right ) : VerticalGroup
setPadBottom ( float padBottom ) : VerticalGroup
setPadLeft ( float padLeft ) : VerticalGroup
setPadRight ( float padRight ) : VerticalGroup
setPadTop ( float padTop ) : VerticalGroup
setReverse ( bool reverse ) : VerticalGroup

If true, the children will be ordered from bottom to top rather than the default top to bottom.

setRound ( bool round ) : VerticalGroup

If true (the default), positions and sizes are rounded to integers.

setSpacing ( float spacing ) : VerticalGroup

Sets the space between children

Private Methods

Méthode Description
computeSize ( ) : void

Method Details

VerticalGroup() public méthode

public VerticalGroup ( ) : System
Résultat System

VerticalGroup() public méthode

public VerticalGroup ( float spacing ) : System
spacing float
Résultat System

invalidate() public méthode

public invalidate ( ) : void
Résultat void

layout() public méthode

public layout ( ) : void
Résultat void

setAlignment() public méthode

Sets the alignment of widgets within the vertical group. Set to {@link Align#center}, {@link Align#top}, {@link Align#bottom}, {@link Align#left}, {@link Align#right}, or any combination of those
public setAlignment ( Align align ) : VerticalGroup
align Align Align.
Résultat VerticalGroup

setFill() public méthode

fill 0 will use pref width
public setFill ( float fill ) : VerticalGroup
fill float Fill.
Résultat VerticalGroup

setPad() public méthode

Sets the padTop, padLeft, padBottom, and padRight to the specified value
public setPad ( float pad ) : VerticalGroup
pad float Pad.
Résultat VerticalGroup

setPad() public méthode

public setPad ( float top, float left, float bottom, float right ) : VerticalGroup
top float
left float
bottom float
right float
Résultat VerticalGroup

setPadBottom() public méthode

public setPadBottom ( float padBottom ) : VerticalGroup
padBottom float
Résultat VerticalGroup

setPadLeft() public méthode

public setPadLeft ( float padLeft ) : VerticalGroup
padLeft float
Résultat VerticalGroup

setPadRight() public méthode

public setPadRight ( float padRight ) : VerticalGroup
padRight float
Résultat VerticalGroup

setPadTop() public méthode

public setPadTop ( float padTop ) : VerticalGroup
padTop float
Résultat VerticalGroup

setReverse() public méthode

If true, the children will be ordered from bottom to top rather than the default top to bottom.
public setReverse ( bool reverse ) : VerticalGroup
reverse bool If set to true reverse.
Résultat VerticalGroup

setRound() public méthode

If true (the default), positions and sizes are rounded to integers.
public setRound ( bool round ) : VerticalGroup
round bool If set to true round.
Résultat VerticalGroup

setSpacing() public méthode

Sets the space between children
public setSpacing ( float spacing ) : VerticalGroup
spacing float Spacing.
Résultat VerticalGroup