In this document, we provide all the built-in types that you can use directly in the GenUI
project.
Generally speaking, you will rarely use these types because GenUI
has shielded the lowest-level component construction for you.
However, since the writing of the attribute values of these built-in types will be involved in the built-in components, we still provide you with a relatively complete writing reference.
If you have studied the value parsing and writing in the Data Type section, you should be able to understand how to write it very easily.
Align
range: [0.0, 1.0]
{x: 0.5}
{y: 0.2}
{x: 0.2, y: 0.9}
GChooseType
Round
Tick
Cross
GChooseType::Round
GChooseType::Tick
GChooseType::Cross
MouseCursor
Hidden
Hand
MouseCursor::Move
LiveDependency
dep('path')
dep("path")
Direction
Horizontal
Vertical
Direction::Horizontal
EventOrder
Down
Up
Flow
Right
Down
ImageFit
Stretch
Horizontal
LinkType
NewTab
ViewOptimize
DrawList
Texture
GOsType
Mac
Padding
1.0
means: {left: 1.0, top: 1.0, right: 1.0, bottom: 1.0}
1.0 2.0
means: {left: 2.0, top: 1.0, right: 2.0, bottom: 1.0}
1.0 2.0 4.0 6.0
means: {left: 6.0, top: 1.0, right: 2.0, bottom: 4.0}
Margin
1.0
means: {left: 1.0, top: 1.0, right: 1.0, bottom: 1.0}
1.0 2.0
means: {left: 2.0, top: 1.0, right: 2.0, bottom: 1.0}
1.0 2.0 4.0 6.0
means: {left: 6.0, top: 1.0, right: 2.0, bottom: 4.0}
TextWrap
Ellipsis
Word
DVec2
~DVec4
range: [0.0, 1.0]
{x: 0.2}
{y: 0.4, z: 0.7}
Vec2
~Vec4
same as DVec
Size
Fit
Fill
200.0
means: Size::Fixed(200.0)
Fixed(200.0)
Themes
Dark
Info