在本文档中我们提供所有您可以直接在GenUI
项目中使用的内置类型,通常来说您很少会用到这些类型,因为GenUI
已经帮您屏蔽了最底层的组件构建。
但由于在内置组件中会涉及到这些内置类型的属性值的写法,所以我们依然提供给您较为完整的写法参考。
如果您学习过数据类型部分的值解析与写法,您应该非常容易理解如何编写。
Align
取值范围: [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
表示: {left: 1.0, top: 1.0, right: 1.0, bottom: 1.0}
1.0 2.0
表示: {left: 2.0, top: 1.0, right: 2.0, bottom: 1.0}
1.0 2.0 4.0 6.0
表示: {left: 6.0, top: 1.0, right: 2.0, bottom: 4.0}
Margin
1.0
表示: {left: 1.0, top: 1.0, right: 1.0, bottom: 1.0}
1.0 2.0
表示: {left: 2.0, top: 1.0, right: 2.0, bottom: 1.0}
1.0 2.0 4.0 6.0
表示: {left: 6.0, top: 1.0, right: 2.0, bottom: 4.0}
TextWrap
Ellipsis
Word
DVec2
~DVec4
取值范围: [0.0, 1.0]
{x: 0.2}
{y: 0.4, z: 0.7}
Vec2
~Vec4
同DVec
Size
Fit
Fill
200.0
表示: Size::Fixed(200.0)
Fixed(200.0)
Themes
Dark
Info