Package | starling.utils |
Class | public class ScaleMode |
Inheritance | ScaleMode Object |
Method | Defined By | ||
---|---|---|---|
isValid(scaleMode:String):Boolean [static] Indicates whether the given scale mode string is valid. | ScaleMode |
Constant | Defined By | ||
---|---|---|---|
NO_BORDER : String = noBorder [static] Specifies that the rectangle fills the specified area without distortion
but possibly with some cropping, while maintaining the original aspect ratio. | ScaleMode | ||
NONE : String = none [static] Specifies that the rectangle is not scaled, but simply centered within the
specified area. | ScaleMode | ||
SHOW_ALL : String = showAll [static] Specifies that the entire rectangle will be scaled to fit into the specified
area, while maintaining the original aspect ratio. | ScaleMode |
isValid | () | method |
public static function isValid(scaleMode:String):Boolean
Indicates whether the given scale mode string is valid.
Parameters
scaleMode:String |
Boolean |
NO_BORDER | Constant |
public static const NO_BORDER:String = noBorder
Specifies that the rectangle fills the specified area without distortion but possibly with some cropping, while maintaining the original aspect ratio.
NONE | Constant |
public static const NONE:String = none
Specifies that the rectangle is not scaled, but simply centered within the specified area.
SHOW_ALL | Constant |
public static const SHOW_ALL:String = showAll
Specifies that the entire rectangle will be scaled to fit into the specified area, while maintaining the original aspect ratio. This might leave empty bars at either the top and bottom, or left and right.