Lysa.ui  0.0
Lysa 3D Engine
Alignment Enum Referenceenum

Detailed Description

Constants controlling how a widget is placed inside its parent's content area.

Lua full name: lysa.ui.Alignment

Constants

integer NONE
 No automatic alignment; position is set manually.
 
integer FILL
 Centered and resized to fill the parent's entire content area.
 
integer CENTER
 Centered horizontally and vertically within the parent (takes all available space).
 
integer HCENTER
 Horizontally centered; vertical position is not constrained.
 
integer VCENTER
 Vertically centered; horizontal position is not constrained.
 
integer TOP
 Stacked at the top of the parent.
 
integer BOTTOM
 Stacked at the bottom of the parent.
 
integer LEFT
 Stacked at the left of the parent.
 
integer RIGHT
 Stacked at the right of the parent.
 
integer TOPCENTER
 Stacked at the top and horizontally centered.
 
integer BOTTOMCENTER
 Stacked at the bottom and horizontally centered.
 
integer LEFTCENTER
 Stacked at the left and vertically centered.
 
integer RIGHTCENTER
 Stacked at the right and vertically centered.
 
integer TOPLEFT
 Stacked at the top and left-aligned.
 
integer BOTTOMLEFT
 Stacked at the bottom and left-aligned.
 
integer BOTTOMRIGHT
 Stacked at the bottom and right-aligned.
 
integer TOPRIGHT
 Stacked at the top and right-aligned.
 
integer LEFTTOP
 Stacked on the left side then aligned to the top.
 
integer LEFTBOTTOM
 Stacked on the left side then aligned to the bottom.
 
integer RIGHTBOTTOM
 Stacked on the right side then aligned to the bottom.
 
integer RIGHTTOP
 Stacked on the right side then aligned to the top.
 
integer CORNERTOPLEFT
 Pinned to the top-left corner of the parent.
 
integer CORNERTOPRIGHT
 Pinned to the top-right corner of the parent.
 
integer CORNERBOTTOMLEFT
 Pinned to the bottom-left corner of the parent.
 
integer CORNERBOTTOMRIGHT
 Pinned to the bottom-right corner of the parent.
 

Enumerator Documentation

integer NONE

No automatic alignment; position is set manually.

integer FILL

Centered and resized to fill the parent's entire content area.

integer CENTER

Centered horizontally and vertically within the parent (takes all available space).

integer HCENTER

Horizontally centered; vertical position is not constrained.

integer VCENTER

Vertically centered; horizontal position is not constrained.

integer TOP

Stacked at the top of the parent.

integer BOTTOM

Stacked at the bottom of the parent.

integer LEFT

Stacked at the left of the parent.

integer RIGHT

Stacked at the right of the parent.

integer TOPCENTER

Stacked at the top and horizontally centered.

integer BOTTOMCENTER

Stacked at the bottom and horizontally centered.

integer LEFTCENTER

Stacked at the left and vertically centered.

integer RIGHTCENTER

Stacked at the right and vertically centered.

integer TOPLEFT

Stacked at the top and left-aligned.

integer BOTTOMLEFT

Stacked at the bottom and left-aligned.

integer BOTTOMRIGHT

Stacked at the bottom and right-aligned.

integer TOPRIGHT

Stacked at the top and right-aligned.

integer LEFTTOP

Stacked on the left side then aligned to the top.

integer LEFTBOTTOM

Stacked on the left side then aligned to the bottom.

integer RIGHTBOTTOM

Stacked on the right side then aligned to the bottom.

integer RIGHTTOP

Stacked on the right side then aligned to the top.

integer CORNERTOPLEFT

Pinned to the top-left corner of the parent.

integer CORNERTOPRIGHT

Pinned to the top-right corner of the parent.

integer CORNERBOTTOMLEFT

Pinned to the bottom-left corner of the parent.

integer CORNERBOTTOMRIGHT

Pinned to the bottom-right corner of the parent.