class Application
package feathers.controls
extends LayoutGroup › FeathersControl › MeasureSprite › ValidatingSprite
implements IFocusManagerAware
An optional root class for Feathers UI applications that will automatically scale the application based on the screen density of the device.
1.0.0
.See also:
Static variables
staticread onlytopLevelApplication:Application
The first Application
instance created is the top-level application.
Feathers UI does not require developers to use the Application
component, so this value may be null
in some projects.
1.0.0
.Constructor
Variables
customScale:Null<Float>
Instead of calculating the scale factor automatically, an application may be given a custom scale factor. Using this scale factor, the application will calculate the best width and height to fill the stage at that scale.
The following example sets a custom scale factor:
application.customScale = 3.0;
1.0.0
.read onlyscaleFactor:Float
The application's scaling factor on the current device. One pixel in application coordinates is equal to this number of pixels in screen coordinates.
See also:
popUpContainerFactory:() ‑> DisplayObjectContainer
A factory may be provided to return a custom container where the
application's pop-ups may be added when using PopUpManager
.
1.0.0
.See also: