Packagecom.addicted2flash.layout.util
Classpublic class Size

This class encapsulates the width and the height of an object.



Public Properties
 PropertyDefined by
  height : Number
Returns the height.
Size
  width : Number
Returns the width.
Size
Public Methods
 MethodDefined by
  
Size(width:Number = 0, height:Number = 0)
Creates a new Size.
Size
  
Returns a clone of the Size.
Size
  
toString():String
Returns the string representation of the Size.
Size
Property detail
heightproperty
height:Number  [read-write]

Returns the height.

Implementation
    public function get height():Number
    public function set height(value:Number):void
widthproperty 
width:Number  [read-write]

Returns the width.

Implementation
    public function get width():Number
    public function set width(value:Number):void
Constructor detail
Size()constructor
public function Size(width:Number = 0, height:Number = 0)

Creates a new Size.

Parameters
width:Number (default = 0) — width
 
height:Number (default = 0) — height

Throws
— if width or height smaller 0
Method detail
clone()method
public function clone():Size

Returns a clone of the Size.

Returns
Size — a clone of the Size
toString()method 
public function toString():String

Returns the string representation of the Size.

Returns
String — the string representation of the Size