C# Класс 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.
Наследование: Group
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
computeSize ( ) : void

Описание методов

VerticalGroup() публичный Метод

public VerticalGroup ( ) : System
Результат System

VerticalGroup() публичный Метод

public VerticalGroup ( float spacing ) : System
spacing float
Результат System

invalidate() публичный Метод

public invalidate ( ) : void
Результат void

layout() публичный Метод

public layout ( ) : void
Результат void

setAlignment() публичный Метод

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.
Результат VerticalGroup

setFill() публичный Метод

fill 0 will use pref width
public setFill ( float fill ) : VerticalGroup
fill float Fill.
Результат VerticalGroup

setPad() публичный Метод

Sets the padTop, padLeft, padBottom, and padRight to the specified value
public setPad ( float pad ) : VerticalGroup
pad float Pad.
Результат VerticalGroup

setPad() публичный Метод

public setPad ( float top, float left, float bottom, float right ) : VerticalGroup
top float
left float
bottom float
right float
Результат VerticalGroup

setPadBottom() публичный Метод

public setPadBottom ( float padBottom ) : VerticalGroup
padBottom float
Результат VerticalGroup

setPadLeft() публичный Метод

public setPadLeft ( float padLeft ) : VerticalGroup
padLeft float
Результат VerticalGroup

setPadRight() публичный Метод

public setPadRight ( float padRight ) : VerticalGroup
padRight float
Результат VerticalGroup

setPadTop() публичный Метод

public setPadTop ( float padTop ) : VerticalGroup
padTop float
Результат VerticalGroup

setReverse() публичный Метод

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.
Результат VerticalGroup

setRound() публичный Метод

If true (the default), positions and sizes are rounded to integers.
public setRound ( bool round ) : VerticalGroup
round bool If set to true round.
Результат VerticalGroup

setSpacing() публичный Метод

Sets the space between children
public setSpacing ( float spacing ) : VerticalGroup
spacing float Spacing.
Результат VerticalGroup