File: display/LStageAlign.js
/** @language english
* The LStageAlign class provides constant values to use for the Stage's align property.
* @class LStageAlign
* @constructor
* @example
* LInit(50, "legend", 240, 240, main);
* function main () {
* LGlobal.align = LStageAlign.BOTTOM_MIDDLE;
* LGlobal.stageScale = LStageScaleMode.NO_SCALE;
* LSystem.screen(LStage.FULL_SCREEN);
* var loader = new LLoader();
* loader.addEventListener(LEvent.COMPLETE, loadBitmapdata);
* loader.load("face.jpg", "bitmapData");
* }
* function loadBitmapdata (event) {
* var bitmapdata = new LBitmapData(event.currentTarget);
* var bitmap = new LBitmap(bitmapdata);
* addChild(bitmap);
* }
* @examplelink <p><a href="../../../api/LStageAlign/index.html" target="_blank">Try it »</a></p>
* @since 1.8.6
* @public
*/
function LStageAlign(){throw "LStageAlign cannot be instantiated";}
/** @language english
* [static] Specifies that the Stage is aligned at the top.
* @property TOP
* @type String
* @static
* @since 1.8.6
* @public
*/
LStageAlign.TOP = "T";
/** @language english
* [static] Specifies that the Stage is aligned at the bottom.
* @property BOTTOM
* @type String
* @static
* @since 1.8.6
* @public
*/
LStageAlign.BOTTOM = "B";
/** @language english
* [static] Specifies that the Stage is aligned on the left.
* @property LEFT
* @type String
* @static
* @since 1.8.6
* @public
*/
LStageAlign.LEFT = "L";
/** @language english
* [static] Specifies that the Stage is aligned on the right.
* @property RIGHT
* @type String
* @static
* @since 1.8.6
* @public
*/
LStageAlign.RIGHT = "Re";
/** @language english
* [static] Specifies that the Stage is aligned in the top-left corner.
* @property TOP_LEFT
* @type String
* @static
* @since 1.8.6
* @public
*/
LStageAlign.TOP_LEFT = "TL";
/** @language english
* [static] Specifies that the Stage is aligned in the top-right corner.
* @property TOP_RIGHT
* @type String
* @static
* @since 1.8.6
* @public
*/
LStageAlign.TOP_RIGHT = "TR";
/** @language english
* [static] Specifies that the Stage is aligned in the top-middle corner.
* @property TOP_MIDDLE
* @type String
* @static
* @since 1.8.6
* @public
*/
LStageAlign.TOP_MIDDLE = "TM";
/** @language english
* [static] Specifies that the Stage is aligned in the bottom-left corner.
* @property BOTTOM_LEFT
* @type String
* @static
* @since 1.8.6
* @public
*/
LStageAlign.BOTTOM_LEFT = "BL";
/** @language english
* [static] Specifies that the Stage is aligned in the bottom-right corner.
* @property BOTTOM_RIGHT
* @type String
* @static
* @since 1.8.6
* @public
*/
LStageAlign.BOTTOM_RIGHT = "BR";
/** @language english
* [static] Specifies that the Stage is aligned in the bottom-middle corner.
* @property BOTTOM_MIDDLE
* @type String
* @static
* @since 1.8.6
* @public
*/
LStageAlign.BOTTOM_MIDDLE = "BM";
/** @language english
* [static] Specifies that the Stage is aligned in the middle corner.
* @property MIDDLE
* @type String
* @static
* @since 1.8.6
* @public
*/
LStageAlign.MIDDLE = "M";