Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Window

Hierarchy

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Protected _bounds

_bounds: Bounds

Protected _boundsID

_boundsID: number

Protected _boundsRect

_boundsRect: Rectangle

Protected _cacheAsBitmap

_cacheAsBitmap: boolean

Protected _cacheData

_cacheData: boolean

Protected Readonly _destroyed

_destroyed: boolean

Protected _enabledFilters

_enabledFilters: Filter[] | null

Protected _filters

_filters: Filter[] | null

Protected _lastBoundsID

_lastBoundsID: number

Protected _localBoundsRect

_localBoundsRect: Rectangle

Protected _mask

_mask: Graphics | Sprite

accessible

accessible: boolean

accessibleHint

accessibleHint: string | null

accessibleTitle

accessibleTitle: string | null

active

active: boolean

The active state for the window.

property

active

alpha

alpha: number

backOpacity

backOpacity: number

The opacity of the window background (0 to 255).

property

backOpacity

buttonMode

buttonMode: boolean

cacheAsBitmap

cacheAsBitmap: boolean

children

children: DisplayObject[]

contents

contents: Bitmap

The bitmap used for the window contents.

property

contents

contentsOpacity

contentsOpacity: number

The opacity of the window contents (0 to 255).

property

contentsOpacity

cursor

cursor: string

defaultCursor

defaultCursor: string

downArrowVisible

downArrowVisible: boolean

The visibility of the down scroll arrow.

property

downArrowVisible

filterArea

filterArea: Rectangle

filters

filters: Filter[] | null

height

height: number

hitArea

innerHeight

innerHeight: number

The height of the content area in pixels.

innerRect

innerRect: Rectangle

The rectangle of the content area

innerWidth

innerWidth: number

The width of the content area in pixels.

interactive

interactive: boolean

interactiveChildren

interactiveChildren: boolean

localTransform

localTransform: Matrix

margin

margin: number

The size of the margin for the window background.

property

margin

mask

name

name: string | null

Protected onChildrenChange

onChildrenChange: (...args: any[]) => void

Type declaration

    • (...args: any[]): void
    • Parameters

      • Rest ...args: any[]

      Returns void

opacity

opacity: number

The opacity of the window without contents (0 to 255).

property

opacity

openness

openness: number

The openness of the window (0 to 255).

property

openness

origin

origin: Point

The origin point of the window for scrolling.

property

origin

padding

padding: number

The width of the window in pixels.

property

width

parent

parent: Container

pause

pause: boolean

The visibility of the pause sign.

property

pause

pivot

position

renderable

renderable: boolean

rotation

rotation: number

scale

skew

tabIndex

tabIndex: number

transform

transform: TransformBase

upArrowVisible

upArrowVisible: boolean

The visibility of the up scroll arrow.

property

upArrowVisible

visible

visible: boolean

width

width: number

windowskin

windowskin: Bitmap

The image used as a window skin.

property

windowskin

worldAlpha

worldAlpha: number

worldTransform

worldTransform: Matrix

worldVisible

worldVisible: boolean

x

x: number

y

y: number

Static EventEmitter

EventEmitter: { constructor: any; prefixed: string | boolean }

Type declaration

Static prefixed

prefixed: string | boolean

Methods

Protected _cacheAsBitmapDestroy

  • _cacheAsBitmapDestroy(options: boolean | any): void

Protected _calculateBounds

  • _calculateBounds(): void

Protected _calculateCachedBounds

Protected _destroyCachedDisplayObject

  • _destroyCachedDisplayObject(): void

Protected _getCachedLocalBounds

Protected _initCachedDisplayObject

Protected _initCachedDisplayObjectCanvas

Protected _recursivePostUpdateTransform

  • _recursivePostUpdateTransform(): void

Protected _renderCachedCanvas

Protected _renderCachedWebGL

Protected _renderCanvas

Protected _renderWebGL

addChild

addChildAt

addChildToBack

addInnerChild

addListener

calculateBounds

  • calculateBounds(): void

Protected containerUpdateTransform

  • containerUpdateTransform(): void

destroy

  • destroy(): void

Protected displayObjectUpdateTransform

  • displayObjectUpdateTransform(): void

drawShape

emit

  • emit(event: string | symbol, ...args: any[]): boolean
  • Calls each of the listeners registered for a given event.

    Parameters

    • event: string | symbol

      The event name.

    • Rest ...args: any[]

      Arguments that are passed to registered listeners

    Returns boolean

    true if the event had listeners, else false.

eventNames

  • eventNames(): Array<string | symbol>

getBounds

getChildAt

getChildByName

getChildIndex

getGlobalPosition

  • getGlobalPosition(point?: Point, skipUpdate?: boolean): Point

getLocalBounds

isClosed

  • isClosed(): boolean

isOpen

  • isOpen(): boolean

listeners

  • listeners(event: string | symbol): Function[]
  • listeners(event: string | symbol, exists: boolean): boolean

move

  • move(x?: number, y?: number, width?: number, height?: number): void
  • Sets the x, y, width, and height all at once.

    method

    move

    Parameters

    • Optional x: number

      The x coordinate of the window

    • Optional y: number

      The y coordinate of the window

    • Optional width: number

      The width of the window

    • Optional height: number

      The height of the window

    Returns void

moveCursorBy

  • moveCursorBy(x: number, y: number): void

moveInnerChildrenBy

  • moveInnerChildrenBy(x: number, y: number): void

off

  • off(event: "added" | "removed" | string, fn?: Function, context?: any): this

on

  • on(event: "added" | "removed", fn: (displayObject: DisplayObject) => void, context?: any): this
  • on(event: string, fn: Function, context?: any): this

once

  • once(event: "added" | "removed", fn: (displayObject: DisplayObject) => void, context?: any): this
  • once(event: string, fn: Function, context?: any): this

removeAllListeners

removeChild

removeChildAt

removeChildren

  • removeChildren(beginIndex?: number, endIndex?: number): DisplayObject[]

removeListener

renderAdvancedWebGL

renderCanvas

renderWebGL

setChildIndex

setCursorRect

  • setCursorRect(x?: number, y?: number, width?: number, height?: number): void
  • Sets the position of the command cursor.

    method

    setCursorRect

    Parameters

    • Optional x: number

      The x coordinate of the cursor

    • Optional y: number

      The y coordinate of the cursor

    • Optional width: number

      The width of the cursor

    • Optional height: number

      The height of the cursor

    Returns void

setMaxListeners

  • setMaxListeners(): this

setParent

setTone

  • setTone(r: number, g: number, b: number): void
  • Changes the color of the background.

    method

    setTone

    Parameters

    • r: number

      The red value in the range (-255, 255)

    • g: number

      The green value in the range (-255, 255)

    • b: number

      The blue value in the range (-255, 255)

    Returns void

setTransform

  • setTransform(x?: number, y?: number, scaleX?: number, scaleY?: number, rotation?: number, skewX?: number, skewY?: number, pivotX?: number, pivotY?: number): DisplayObject

swapChildren

toGlobal

toLocal

trackedPointers

  • trackedPointers(): {}

update

  • update(): void

Private updateTransform

  • updateTransform(): void

Generated using TypeDoc