UIElement Class
A single UI item that needs to be resized
Item Index
Methods
destroy
()
Destroy this item, don't use after this
resize
(
-
newScreen
Adjust the item scale and position, to reflect new screen
Parameters:
-
newScreen
ScreenSettingsThe current screen settings
Properties
_item
createjs.DisplayObject | PIXI.DisplayObject
private
The reference to the interface item we're scaling
origBounds
Object
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