value.md
2018-11-22 17:56 更新
ngui/value
Class: TextAlign
TextAlign.value
LEFT
- 从左到右
排列并且以左边
对齐CENTER
- 从左到右
排列并且以居中
对齐RIGHT
- 从左到右
排列并且以右边
对齐LEFT_REVERSE
- 从右到左
排列并且以左边
对齐CENTER_REVERSE
- 从右到左
排列并且以居中
对齐RIGHT_REVERSE
- 从右到左
排列并且以右边
对齐
Class: Align
Align.value
Class: ContentAlign
ContentAlign.value
LEFT
- 水平布局,从左到右排列布局,溢出往下换行RIGHT
- 水平布局,从右到左排列布局,溢出往下换行TOP
- 垂直布局,从上到下排列布局,溢出往右边换行BOTTOM
- 垂直布局,从下到上排列布局,溢出往右换行
Class: Repeat
Repeat.value
NONE
- 不重复REPEAT
-x
轴与y
轴都重复REPEAT_X
- 只重复x
轴REPEAT_Y
- 只重复y
轴MIRRORED_REPEAT
- 镜像模式x
轴与y
轴都重复MIRRORED_REPEAT_X
- 镜像模式只重复x
轴MIRRORED_REPEAT_Y
- 镜像模式只重复y
轴
Class: Direction
Direction.value
Class: KeyboardType
KeyboardType.value
NORMAL
-ASCII
-NUMBER
-URL
-NUMBER_PAD
-PHONE
-NAME_PHONE
-EMAIL
-DECIMAL
-TWITTER
-SEARCH
-ASCII_NUMBER
-
Class: KeyboardReturnType
KeyboardReturnType.value
Class: Border
Border.width
- {
float
}
Border.color
- {
Color
}
Class: Shadow
Shadow.offsetX
- {
float
}
Shadow.offsetY
- {
float
}
Shadow.size
- {
float
}
Shadow.color
- {
Color
}
Class: Color
Color.r
- {
uint
}
Color.g
- {
uint
}
Color.b
- {
uint
}
Color.a
- {
uint
}
Color.reverse()
- @ret {
Color
}
Color.toRgbString()
Color.toRgbaString()
Color.toHex32String()
Class: Vec2
Vec2.x
- {
float
}
Vec2.y
- {
float
}
Class: Vec3
Vec3.x
- {
float
}
Vec3.y
- {
float
}
Vec3.z
- {
float
}
Class: Vec4
Vec4.x
- {
float
}
Vec4.y
- {
float
}
Vec4.z
- {
float
}
Vec4.w
- {
float
}
Class: Curve
Curve.p1X
- {
float
}
Curve.p1Y
- {
float
}
Curve.p2X
- {
float
}
Curve.p2Y
- {
float
}
Example:
// 'linear'、'ease'、'easeIn'、'easeOut'、'easeInOut'
var cueceLinear = new Curve(0, 0, 1, 1)
var cueceEase = new Curve(0.25, 0.1, 0.25, 1)
var cueceEaseIn = new Curve(0.42, 0, 1, 1)
var cueceEaseOut = new Curve(0.25, 0.1, 0.25, 1)
var cueceEaseInOut = new Curve(0.25, 0.1, 0.25, 1)
Class: Rect
Rect.x
- {
float
}
Rect.y
- {
float
}
Rect.width
- {
float
}
Rect.height
- {
float
}
Class: Mat
Mat.m0
Mat.m1
Mat.m2
Mat.m3
Mat.m4
Mat.m5
Class: Mat4
Mat4.m0
Mat4.m1
Mat4.m2
Mat4.m3
Mat4.m4
Mat4.m5
Mat4.m6
Mat4.m7
Mat4.m8
Mat4.m9
Mat4.m10
Mat4.m11
Mat4.m12
Mat4.m13
Mat4.m14
Mat4.m15
Class: Value
Value.type
Value.value
- {
float
}
Class: TextAttrsValue
TextColor.type
Class: TextColor
extends
TextAttrsValue
TextColor.value
- {
Color
}
Class: TextSize
extends
TextAttrsValue
TextSize.value
- {
float
}
Class: TextFamily
extends
TextAttrsValue
TextFamily.value
- {
String
}
Class: TextStyle
extends
TextAttrsValue
TextStyle.value
THIN
- 100ULTRALIGHT
- 200LIGHT
- 300REGULAR
- 400 正常MEDIUM
- 500SEMIBOLD
- 600BOLD
- 700HEAVY
- 800BLACK
- 900THIN_ITALIC
- 100 斜体ULTRALIGHT_ITALIC
- 200 斜体LIGHT_ITALIC
- 300 斜体ITALIC
- 400 斜体MEDIUM_ITALIC
- 500 斜体SEMIBOLD_ITALIC
- 600 斜体BOLD_ITALIC
- 700 斜体HEAVY_ITALIC
- 800 斜体BLACK_ITALIC
- 900 斜体
Class: TextShadow
extends
TextAttrsValue
TextShadow.value
- {
Shadow
}
Class: TextLineHeight
extends
TextAttrsValue
TextLineHeight.isAuto
- {
bool
}
TextLineHeight.height
- {
float
}
Class: TextDecoration
extends
TextAttrsValue
TextDecoration.value
NONE
- 无装饰OVERLINE
- 上划线LINE_THROUGH
- 中划线UNDERLINE
- 下划线
Class: TextOverflow
extends
TextAttrsValue
TextOverflow.value
NORMAL
- 不做处理CLIP
- 修剪ELLIPSIS
- 修剪并在文本末尾显示省略号CENTER_ELLIPSIS
- 修剪并在文本中间显示省略号
Class: TextWhiteSpace
extends
TextAttrsValue
TextWhiteSpace.value
NORMAL
- 保留所有空白,使用自动wrapNO_WRAP
- 合并空白序列,不使用自动wrapNO_SPACE
- 合并空白序列,使用自动wrapPRE
- 保留所有空白,不使用自动wrapPRE_LINE
- 合并空白符序列,但保留换行符,使用自动wrap
parseTextAlign(str)
- @ret {
TextAlign
}
parseAlign(str)
- @ret {
Align
}
parseContentAlign(str)
- @ret {
ContentAlign
}
parseRepeat(str)
- @ret {
Repeat
}
parseDirection(str)
- @ret {
Direction
}
parseKeyboardType(str)
- @ret {
KeyboardType
}
parseKeyboardReturnType(str)
- @ret {
KeyboardReturnType
}
parseBorder(str)
- @ret {
Border
}
parseShadow(str)
- @ret {
Shadow
}
parseColor(str)
- @ret {
Color
}
parseVec2(str)
- @ret {
Vec2
}
parseVec3(str)
- @ret {
Vec3
}
parseVec4(str)
- @ret {
Vec4
}
parseCurve(str)
- @ret {
Curve
}
parseRect(str)
- @ret {
Rect
}
parseMat(str)
- @ret {
Mat
}
parseMat4(str)
- @ret {
Mat4
}
parseValue(str)
- @ret {
Class: Value
}
parseTextColor(str)
- @ret {
TextColor
}
parseTextSize(str)
- @ret {
TextSize
}
parseTextFamily(str)
- @ret {
TextFamily
}
parseTextStyle(str)
- @ret {
TextStyle
}
parseTextShadow(str)
- @ret {
TextShadow
}
parseTextLineHeight(str)
- @ret {
TextLineHeight
}
parseTextDecoration(str)
- @ret {
TextDecoration
}
parseTextOverflow(str)
- @ret {
TextOverflow
}
parseTextWhiteSpace(str)
- @ret {
TextWhiteSpace
}
Enum: All
AUTO
FULL
PIXEL
PERCENT
MINUS
INHERIT
VALUE
THIN
ULTRALIGHT
LIGHT
REGULAR
MEDIUM
SEMIBOLD
BOLD
HEAVY
BLACK
THIN_ITALIC
ULTRALIGHT_ITALIC
LIGHT_ITALIC
ITALIC
MEDIUM_ITALIC
SEMIBOLD_ITALIC
BOLD_ITALIC
HEAVY_ITALIC
BLACK_ITALIC
NONE
OVERLINE
LINE_THROUGH
UNDERLINE
LEFT
CENTER
RIGHT
LEFT_REVERSE
CENTER_REVERSE
RIGHT_REVERSE
TOP
BOTTOM
MIDDLE
REPEAT
REPEAT_X
REPEAT_Y
MIRRORED_REPEAT
MIRRORED_REPEAT_X
MIRRORED_REPEAT_Y
NORMAL
CLIP
ELLIPSIS
CENTER_ELLIPSIS
NO_WRAP
NO_SPACE
PRE
PRE_LINE
ASCII
NUMBER
URL
NUMBER_PAD
PHONE
NAME_PHONE
DECIMAL
SEARCH
ASCII_NUMBER
GO
JOIN
NEXT
ROUTE
SEND
DONE
EMERGENCY
CONTINUE
以上内容是否对您有帮助:
← index.md
更多建议: