API Documentation for: 1.1.23
Show:

UIElement Class

Defined in: UIElement:8
Namespace: cloudkid

A single UI item that needs to be resized

Methods

destroy

()

Defined in destroy:299

Destroy this item, don't use after this

resize

(
  • newScreen
)

Defined in resize:164

Adjust the item scale and position, to reflect new screen

Parameters:

Properties

_designedScreen

ScreenSettings private

Defined in _designedScreen:157

The original screen the item was designed for

_item

createjs.DisplayObject | PIXI.DisplayObject private

Defined in _item:150

The reference to the interface item we're scaling

_settings

UIElementSettings private

Defined in _settings:143

The reference to the scale settings

origBounds

Object

Defined in origBounds:136

The original bounds of the item with x, y, right, bottom, width, height properties. Used to determine the distance to each edge of the item from its origin

origMarginHori

Number

Defined in origMarginHori:101

Original horizontal margin in pixels

Default: 0

origMarginVert

Number

Defined in origMarginVert:108

Original vertical margin in pixels

Default: 0

origScaleX

Number

Defined in origScaleX:122

Original X scale of the item

Default: 0

origScaleY

Number

Defined in origScaleY:129

The original Y scale of the item

Default: 0

origWidth

Number

Defined in origWidth:115

Original width in pixels

Default: 0