Files
2013-04-25 13:56:18 -07:00

36 lines
1.2 KiB
ActionScript

// =================================================================================================
//
// Starling Framework
// Copyright 2011 Gamua OG. All Rights Reserved.
//
// This program is free software. You can redistribute and/or modify it
// in accordance with the terms of the accompanying license agreement.
//
// =================================================================================================
package starling.utils
{
import starling.errors.AbstractClassError;
/** A class that provides constant values for horizontal alignment of objects. */
public final class HAlign
{
/** @private */
public function HAlign() { throw new AbstractClassError(); }
/** Left alignment. */
public static const LEFT:String = "left";
/** Centered alignement. */
public static const CENTER:String = "center";
/** Right alignment. */
public static const RIGHT:String = "right";
/** Indicates whether the given alignment string is valid. */
public static function isValid(hAlign:String):Boolean
{
return hAlign == LEFT || hAlign == CENTER || hAlign == RIGHT;
}
}
}