Options
All
  • Public
  • Public/Protected
  • All
Menu

Module ui

Index

References

Enumerations

Classes

Interfaces

Variables

Functions

Object literals

References

BlockInputEventsComponent

Renames and re-exports BlockInputEvents

ButtonComponent

Renames and re-exports Button

CanvasComponent

Renames and re-exports Canvas

EditBoxComponent

Renames and re-exports EditBox

GraphicsComponent

Renames and re-exports Graphics

IAssembler

Re-exports IAssembler

IAssemblerManager

Re-exports IAssemblerManager

LabelComponent

Renames and re-exports Label

LabelOutlineComponent

Renames and re-exports LabelOutline

LayoutComponent

Renames and re-exports Layout

MaskComponent

Renames and re-exports Mask

PageViewComponent

Renames and re-exports PageView

PageViewIndicatorComponent

Renames and re-exports PageViewIndicator

ProgressBarComponent

Renames and re-exports ProgressBar

RenderComponent

Renames and re-exports UIRenderable

RichTextComponent

Renames and re-exports RichText

SafeAreaComponent

Renames and re-exports SafeArea

ScrollBarComponent

Renames and re-exports ScrollBar

ScrollViewComponent

Renames and re-exports ScrollView

SliderComponent

Renames and re-exports Slider

SpriteComponent

Renames and re-exports Sprite

ToggleComponent

Renames and re-exports Toggle

ToggleContainerComponent

Renames and re-exports ToggleContainer

UICoordinateTrackerComponent

Renames and re-exports UICoordinateTracker

UIModelComponent

Renames and re-exports UIMeshRenderer

UIOpacityComponent

Renames and re-exports UIOpacity

UIStaticBatchComponent

Renames and re-exports UIStaticBatch

UITransformComponent

Renames and re-exports UITransform

WidgetComponent

Renames and re-exports Widget

barFilled

Re-exports barFilled

bmfont

Re-exports bmfont

graphics

Re-exports graphics

graphicsAssembler

Re-exports graphicsAssembler

labelAssembler

Re-exports labelAssembler

letter

Re-exports letter

mask

Renames and re-exports maskAssembler

maskEnd

Renames and re-exports maskEndAssembler

radialFilled

Re-exports radialFilled

simple

Re-exports simple

sliced

Re-exports sliced

ttf

Re-exports ttf

Variables

Const CanvasClearFlag

CanvasClearFlag: { DEPTH_ONLY: GFXClearFlag; DONT_CLEAR: GFXClearFlag; SOLID_COLOR: GFXClearFlag } = Enum({SOLID_COLOR: GFXClearFlag.ALL,DEPTH_ONLY: GFXClearFlag.DEPTH_STENCIL,DONT_CLEAR: GFXClearFlag.NONE,})

Type declaration

Const EPSILON

EPSILON: 0.0001 = 0.0001

Const GETTING_SHORTER_FACTOR

GETTING_SHORTER_FACTOR: 20 = 20

Const LEFT_PADDING

LEFT_PADDING: 2 = 2

Const LEFT_RIGHT

LEFT_RIGHT: number = AlignFlags.LEFT | AlignFlags.RIGHT

Const MOVEMENT_FACTOR

MOVEMENT_FACTOR: 0.7 = 0.7

Const NUMBER_OF_GATHERED_TOUCHES_FOR_MOVE_SPEED

NUMBER_OF_GATHERED_TOUCHES_FOR_MOVE_SPEED: 5 = 5

Const NodeEvent

NodeEvent: SystemEventType = SystemEventType

Const OUT_OF_BOUNDARY_BREAKING_FACTOR

OUT_OF_BOUNDARY_BREAKING_FACTOR: 0.05 = 0.05

Const RenderMode

RenderMode: { INTERSPERSE: number; OVERLAY: number } = Enum({OVERLAY: 0,INTERSPERSE: 1,})

Type declaration

  • INTERSPERSE: number
  • OVERLAY: number

Const RichTextChildImageName

RichTextChildImageName: "RICHTEXT_Image_CHILD" = "RICHTEXT_Image_CHILD"

Const RichTextChildName

RichTextChildName: "RICHTEXT_CHILD" = "RICHTEXT_CHILD"

Const SEGMENTS_MAX

SEGMENTS_MAX: 10000 = 10000

Const SEGMENTS_MIN

SEGMENTS_MIN: 3 = 3

Const TOLERANCE

TOLERANCE: 10000 = 10000

Const TOP_BOT

TOP_BOT: number = AlignFlags.TOP | AlignFlags.BOT

Const ZERO

ZERO: Vec3 = new Vec3()

Const ZERO

ZERO: Vec3 = new Vec3()

Const _circlePoints

_circlePoints: Vec3[] = []

Const _color

_color: Color = new Color()

Const _htmlTextParser

_htmlTextParser: HtmlTextParser = new HtmlTextParser()

Const _mat4_temp

_mat4_temp: Mat4 = new Mat4()

Const _mat4_temp

_mat4_temp: Mat4 = new Mat4()

Const _matrix

_matrix: Mat4 = new Mat4()

Const _rect

_rect: Rect = new Rect()

Const _tempColor

_tempColor: Color = new Color()

Const _tempColor

_tempColor: Color = new Color()

Const _tempPos

_tempPos: Vec3 = new Vec3()

Const _tempPos

_tempPos: Vec3 = new Vec3()

Const _tempPos_1

_tempPos_1: Vec3 = new Vec3()

Const _tempPos_2

_tempPos_2: Vec3 = new Vec3()

Const _tempScale

_tempScale: Vec3 = new Vec3()

Const _tempVec2

_tempVec2: Vec2 = new Vec2()

Const _tempVec2_1

_tempVec2_1: Vec2 = new Vec2()

Const _tempVec3

_tempVec3: Vec3 = new Vec3()

Const _tempVec3_1

_tempVec3_1: Vec3 = new Vec3()

Const _temp_vec2

_temp_vec2: Vec2 = new Vec2()

Const _vec2_temp

_vec2_temp: Vec2 = new Vec2()

Const _vec2a

_vec2a: Vec2 = new Vec2()

Const _vec2b

_vec2b: Vec2 = new Vec2()

Const _worldMatrix

_worldMatrix: Mat4 = new Mat4()

Const _worldMatrix

_worldMatrix: Mat4 = new Mat4()

Const _worldPos

_worldPos: Vec3 = new Vec3()

Const _zeroMatrix

_zeroMatrix: Mat4 = new Mat4(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)

Const _zeroVec3

_zeroVec3: Vec3 = new Vec3()

Const defaultAnchor

defaultAnchor: Vec2 = new Vec2()

Const pool

pool: Pool<ILabelSegment> = new Pool((labelSeg: ILabelSegment) => {if (EDITOR) {return false;}if (DEV) {assert(!labelSeg.node.parent, 'Recycling node\'s parent should be null!');}if (!legacyCC.isValid(labelSeg.node)) {return false;}else {let outline = labelSeg.node.getComponent(LabelOutline);if (outline) {outline.width = 0;}}return true;}, 20)

富文本池。

Functions

calculateCircle

  • calculateCircle(center: Vec3, radius: Vec3, segments: number): Vec3[]

capitalize

  • capitalize(str: string): string

capitalizeFirstLetter

  • capitalizeFirstLetter(str: string): string

computeInverseTransForTarget

  • computeInverseTransForTarget(widgetNode: Node, target: Node, out_inverseTranslate: Vec3, out_inverseScale: Vec3): void

getReadonlyNodeSize

  • getReadonlyNodeSize(parent: Node | Scene): Size | { bottom: any; bottomLeft: any; bottomRight: any; center: any; height: number; left: any; right: any; top: any; topLeft: any; topRight: any; width: number; init: any }
  • Parameters

    Returns Size | { bottom: any; bottomLeft: any; bottomRight: any; center: any; height: number; left: any; right: any; top: any; topLeft: any; topRight: any; width: number; init: any }

Const getTimeInMilliseconds

  • getTimeInMilliseconds(): number

Const quintEaseOut

  • quintEaseOut(time: number): number

Object literals

Const matInsInfo

matInsInfo: object

owner

owner: never = null!

parent

parent: never = null!

subModelIdx

subModelIdx: number = 0

Const matInsInfo

matInsInfo: object

owner

owner: never = null!

parent

parent: never = null!

subModelIdx

subModelIdx: number = 0

Const eventMap

eventMap: object

bounce-bottom

bounce-bottom: number = 6

bounce-left

bounce-left: number = 7

bounce-right

bounce-right: number = 8

bounce-top

bounce-top: number = 5

scroll-began

scroll-began: number = 12

scroll-ended

scroll-ended: number = 9

scroll-ended-with-threshold

scroll-ended-with-threshold: number = 11

scroll-to-bottom

scroll-to-bottom: number = 1

scroll-to-left

scroll-to-left: number = 2

scroll-to-right

scroll-to-right: number = 3

scroll-to-top

scroll-to-top: number = 0

scrolling

scrolling: number = 4

touch-up

touch-up: number = 10

Generated using TypeDoc