value.md

由 louistru 创建, 最后一次修改 2017-11-22

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

Class: Direction

Direction.value

Class: KeyboardType

KeyboardType.value

Class: KeyboardReturnType

KeyboardReturnType.value

Class: Border

Border.width

Border.color

Class: Shadow

Shadow.offsetX

Shadow.offsetY

Shadow.size

Shadow.color

Class: Color

Color.r

Color.g

Color.b

Color.a

Color.reverse()

Color.toRgbString()

Color.toRgbaString()

Color.toHex32String()

Class: Vec2

Vec2.x

Vec2.y

Class: Vec3

Vec3.x

Vec3.y

Vec3.z

Class: Vec4

Vec4.x

Vec4.y

Vec4.z

Vec4.w

Class: Curve

Curve.p1X

Curve.p1Y

Curve.p2X

Curve.p2Y

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

Rect.y

Rect.width

Rect.height

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

Class: TextAttrsValue

TextColor.type

Class: TextColor

TextColor.value

Class: TextSize

TextSize.value

Class: TextFamily

TextFamily.value

Class: TextStyle

TextStyle.value

Class: TextShadow

TextShadow.value

Class: TextLineHeight

TextLineHeight.isAuto

TextLineHeight.height

Class: TextDecoration

TextDecoration.value

Class: TextOverflow

TextOverflow.value

Class: TextWhiteSpace

TextWhiteSpace.value

  • NORMAL - 保留所有空白,使用自动wrap
  • NO_WRAP - 合并空白序列,不使用自动wrap
  • NO_SPACE - 合并空白序列,使用自动wrap
  • PRE - 保留所有空白,不使用自动wrap
  • PRE_LINE - 合并空白符序列,但保留换行符,使用自动wrap

parseTextAlign(str)

parseAlign(str)

parseContentAlign(str)

parseRepeat(str)

parseDirection(str)

parseKeyboardType(str)

parseKeyboardReturnType(str)

parseBorder(str)

parseShadow(str)

parseColor(str)

parseVec2(str)

parseVec3(str)

parseVec4(str)

parseCurve(str)

parseRect(str)

parseMat(str)

parseMat4(str)

parseValue(str)

parseTextColor(str)

parseTextSize(str)

parseTextFamily(str)

parseTextStyle(str)

parseTextShadow(str)

parseTextLineHeight(str)

parseTextDecoration(str)

parseTextOverflow(str)

parseTextWhiteSpace(str)

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

EMAIL

DECIMAL

TWITTER

SEARCH

ASCII_NUMBER

GO

JOIN

NEXT

ROUTE

SEND

DONE

EMERGENCY

CONTINUE

以上内容是否对您有帮助:
二维码
建议反馈
二维码