C# Class Nez.UI.HorizontalGroup

Inheritance: Group
ファイルを表示 Open project: prime31/Nez Class Usage Examples

Public Properties

Property Type Description
_align int
_fill float
_padTop float
_reverse bool
_round bool
_spacing float

Public Methods

Method Description
HorizontalGroup ( ) : System
HorizontalGroup ( float spacing ) : System
invalidate ( ) : void
layout ( ) : void
setAlignment ( Align align ) : HorizontalGroup

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 ) : HorizontalGroup

fill 0 will use pref width

setPad ( float pad ) : HorizontalGroup

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

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

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

setRound ( bool round ) : HorizontalGroup

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

setSpacing ( float spacing ) : HorizontalGroup

Sets the space between children

Private Methods

Method Description
computeSize ( ) : void

Method Details

HorizontalGroup() public method

public HorizontalGroup ( ) : System
return System

HorizontalGroup() public method

public HorizontalGroup ( 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 ) : HorizontalGroup
align Align Align.
return HorizontalGroup

setFill() public method

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

setPad() public method

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

setPad() public method

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

setPadBottom() public method

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

setPadLeft() public method

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

setPadRight() public method

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

setPadTop() public method

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

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 ) : HorizontalGroup
reverse bool If set to true reverse.
return HorizontalGroup

setRound() public method

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

setSpacing() public method

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

Property Details

_align public_oe property

public int _align
return int

_fill public_oe property

public float _fill
return float

_padTop public_oe property

public float _padTop
return float

_reverse public_oe property

public bool _reverse
return bool

_round public_oe property

public bool _round
return bool

_spacing public_oe property

public float _spacing
return float