Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MultiLineLabel

Hierarchy

Implements

Index

Constructors

constructor

Properties

Private _beforeBitmapFont

_beforeBitmapFont: BitmapFont

Private _beforeFontSize

_beforeFontSize: number

Private _beforeLineBreak

_beforeLineBreak: boolean

Private _beforeText

_beforeText: string

Private _beforeTextAlign

_beforeTextAlign: TextAlign

Private _beforeWidth

_beforeWidth: number

Private _cache

_cache: Surface

Private _cacheSize

_cacheSize: CommonSize

Private _hasTouchableChildren

_hasTouchableChildren: boolean

Private _matrix

_matrix: Matrix

Private _renderedCamera

_renderedCamera: Camera

Private _renderer

_renderer: Renderer

Private _shouldRenderChildren

_shouldRenderChildren: boolean

Private _targetCameras

_targetCameras: Camera[]

angle

angle: number

bitmapFont

bitmapFont: BitmapFont

children

children: E[]

compositeOperation

compositeOperation: CompositeOperation

fontSize

fontSize: number

height

height: number

id

id: number

lineBreak

lineBreak: boolean

lineGap

lineGap: number

local

local: boolean

message

opacity

opacity: number

parent

parent: E | Scene

pointDown

pointMove

pointUp

scaleX

scaleX: number

scaleY

scaleY: number

scene

scene: Scene

state

tag

tag: any

targetCameras

targetCameras: Camera[]

text

text: string

textAlign

textAlign: TextAlign

textColor

textColor: string

touchable

touchable: boolean

update

update: Trigger<void>

width

width: number

x

x: number

y

y: number

Static Private PADDING

PADDING: number

Methods

Private _calculateBoundingRect

Private _disableTouchPropagation

  • _disableTouchPropagation(): void

Private _enableTouchPropagation

  • _enableTouchPropagation(): void

Private _isTargetOperation

Private _lineBrokenText

  • _lineBrokenText(): string[]
  • Returns string[]

Private _offsetX

  • _offsetX(width: number): number
  • Parameters

    • width: number

    Returns number

Private _updateMatrix

  • _updateMatrix(): void

append

  • append(e: E): void
  • Parameters

    • e: E

    Returns void

calculateBoundingRect

calculateCacheSize

destroy

  • destroy(): void

destroyed

  • destroyed(): boolean

findPointSourceByPoint

game

  • Returns Game

getMatrix

hide

  • hide(): void
  • Returns void

insertBefore

  • insertBefore(e: E, target: E): void
  • Parameters

    • e: E
    • target: E

    Returns void

invalidate

  • invalidate(): void

modified

  • modified(isBubbling?: boolean): void
  • Parameters

    • Optional isBubbling: boolean

    Returns void

moveBy

  • moveBy(x: number, y: number): void
  • Parameters

    • x: number
    • y: number

    Returns void

moveTo

  • moveTo(x: number, y: number): void
  • moveTo(obj: CommonOffset): void
  • Parameters

    • x: number
    • y: number

    Returns void

  • Parameters

    Returns void

remove

  • remove(e?: E): void
  • Parameters

    • Optional e: E

    Returns void

render

  • Parameters

    Returns void

renderCache

renderSelf

renderSelfFromCache

  • renderSelfFromCache(renderer: Renderer): void

resizeBy

  • resizeBy(width: number, height: number): void
  • Parameters

    • width: number
    • height: number

    Returns void

resizeTo

  • resizeTo(width: number, height: number): void
  • resizeTo(size: CommonSize): void
  • Parameters

    • width: number
    • height: number

    Returns void

  • Parameters

    Returns void

scale

  • scale(scale: number): void
  • Parameters

    • scale: number

    Returns void

shouldFindChildrenByPoint

show

  • show(): void
  • Returns void

visible

  • visible(): boolean
  • Returns boolean

Generated using TypeDoc