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
ファイルを表示 Open project: prime31/Nez

Public Methods

Method 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

Method Description
computeSize ( ) : void

Method Details

VerticalGroup() public method

public VerticalGroup ( ) : System
return System

VerticalGroup() public method

public VerticalGroup ( float spacing ) : System
spacing float
return System

invalidate() public method

public invalidate ( ) : void
return void

layout() public method

public layout ( ) : void
return void

setAlignment() public method

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.
return VerticalGroup

setFill() public method

fill 0 will use pref width
public setFill ( float fill ) : VerticalGroup
fill float Fill.
return VerticalGroup

setPad() public method

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

setPad() public method

public setPad ( float top, float left, float bottom, float right ) : VerticalGroup
top float
left float
bottom float
right float
return VerticalGroup

setPadBottom() public method

public setPadBottom ( float padBottom ) : VerticalGroup
padBottom float
return VerticalGroup

setPadLeft() public method

public setPadLeft ( float padLeft ) : VerticalGroup
padLeft float
return VerticalGroup

setPadRight() public method

public setPadRight ( float padRight ) : VerticalGroup
padRight float
return VerticalGroup

setPadTop() public method

public setPadTop ( float padTop ) : VerticalGroup
padTop float
return VerticalGroup

setReverse() public method

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.
return VerticalGroup

setRound() public method

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

setSpacing() public method

Sets the space between children
public setSpacing ( float spacing ) : VerticalGroup
spacing float Spacing.
return VerticalGroup