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 - 水平布局,從左到右排列布局,溢出往下?lián)Q行
  • RIGHT - 水平布局,從右到左排列布局,溢出往下?lián)Q行
  • 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

以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號