Describes the thickness of the sides of a rectangle.
Normally the values of left, right, top and bottom are non-negative integers.
The constructors that allow you to create a thickness do not prevent you from setting a negative value for these properties. If the values are negative, the behavior of some methods defined by other objects is undefined.
support
hasAllSides:Boolean [read-only]Implementation
public function get hasAllSides():Boolean
horizontal:Number [read-only]Implementation
public function get horizontal():Number
vertical:Number [read-only]Implementation
public function get vertical():Number
public function Thickness(... rest)Parameters
public override function clone():EdgeMetrics
Returns
public function copy(em:EdgeMetrics):voidParameters
public static function deflate(rc:Rectangle, m:EdgeMetrics):Rectangle
Deflates the specified rectangle by the this Thickness
Parameters
| rc:Rectangle — The rectangle to deflate
|
| |
| m:EdgeMetrics |
Returns
| Rectangle — A new rectangle
|
public function equals(v:Thickness):BooleanParameters
Returns
public function inflate(rc:Rectangle, m:EdgeMetrics):Rectangle
Inflates the specified rectangle by the this Thickness
Parameters
| rc:Rectangle — The rectangle to inflate
|
| |
| m:EdgeMetrics |
Returns
| Rectangle — A new rectangle
|
public function isEmpty():Boolean
Returns
public function setEmpty():void
Sets all of the Thickness object's properties to 0.
A Thickness object is empty if its left, right, top and bottom are all equal to 0.
This method sets the values of the left, right, top, and bottom properties to 0.
public function setThickness(left:Number = 0, top:Number = 0, right:Number = 0, bottom:Number = 0):voidParameters
| left:Number (default = 0) |
| |
| top:Number (default = 0) |
| |
| right:Number (default = 0) |
| |
| bottom:Number (default = 0) |
public function toString():String
converts the specified object to a string and returns it.
Returns
public static const Thickness0:Thickness
public static const Thickness1:Thickness
public static const Thickness2:Thickness
public static const Thickness3:Thickness