View source
class CustomScaleManager
package feathers.core
extends EventDispatcher
implements IScaleManager
Allows the application's scale to be set manually to a specific value, instead of calculating it automatically, like other scale managers. Defaults to automatically calculating the application dimensions to fill the stage dimensions, but can optionally accept custom application dimensions too.
The following example creates a CustomScaleManager
with a scale value of
2.0
:
var manager = new CustomScaleManager(2.0);
application.scaleManager = manager;
The following example creates a CustomScaleManager
with a scale value of
1.0
and custom bounds:
var manager = new CustomScaleManager(1.0, new Rectangle(0.0, 0.0, 640.0, 480.0));
application.scaleManager = manager;
Available since
1.0.0
.See also:
Constructor
new(customScale:Float = 1.0, ?customBounds:Rectangle)
Creates a new CustomScaleManager
object.
Available since
1.0.0
.