virtual class vaseGui::Layout
sys::Obj vaseGui::Layout
Tell parent how to layout this widget The parent may ignore the param
- hAlign
-
Align hAlign := Align.begin
horizontal Alignment
- hUnit
-
Str hUnit := ""
- height
-
Int height := wrapContent
height of widget
- ignored
-
Bool ignored := false
- matchParent
-
const static Int matchParent := 0
fill parent or others define by layout pane
- offsetX
-
Int offsetX := 0
x position of widget.
- offsetY
-
Int offsetY := 0
y position of widget.
- percent
-
const static Str percent := "%"
Percent unit constant
- percentH
-
const static Str percentH := "%h"
- percentW
-
const static Str percentW := "%w"
- prefHeight
-
Int prefHeight(Widget w, Int parentWidth, Int parentHeight, Int selfHeight)
- prefWidth
-
Int prefWidth(Widget w, Int parentWidth, Int parentHeight, Int selfWidth)
- prefX
-
Int prefX(Widget w, Int parentWidth, Int parentHeight, Int selfWidth)
- prefY
-
Int prefY(Widget w, Int parentWidth, Int parentHeight, Int selfHeight)
- vAlign
-
Align vAlign := Align.begin
vertical Alignment
- wUnit
-
Str wUnit := ""
the unit is percent of parent
- weight
-
Float weight := 1.0f
layout weight compare to sibling widget
- width
-
Int width := matchParent
width of widget
- wrapContent
-
const static Int wrapContent := -1
preferred size by prefSize()
- xUnit
-
Str xUnit := ""
- yUnit
-
Str yUnit := ""