API Documentation for: 0.0.1
Show:

UIElement Class

Defined in: UIElement:8
Namespace: cloudkid

A single UI item that needs to be resized

Methods

destroy

()

Defined in destroy:238

Destroy this item, don't use after this

resize

(
  • newScreen
)

Defined in resize:138

Adjust the item scale and position, to reflect new screen

Parameters:

Properties

_designedScreen

ScreenSettings private

Defined in _designedScreen:131

The original screen the item was designed for

_item

createjs.DisplayObject | PIXI.DisplayObject private

Defined in _item:124

The reference to the interface item we're scaling

_settings

UIElementSettings private

Defined in _settings:117

The reference to the scale settings

origBounds

Object

Defined in origBounds:110

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:75

Original horizontal margin in pixels

Default: 0

origMarginVert

Number

Defined in origMarginVert:82

Original vertical margin in pixels

Default: 0

origScaleX

Number

Defined in origScaleX:96

Original X scale of the item

Default: 0

origScaleY

Number

Defined in origScaleY:103

The original Y scale of the item

Default: 0

origWidth

Number

Defined in origWidth:89

Original width in pixels

Default: 0