Packageorg.openPyro.core
Classpublic class Padding

Defines a padding object that is used by different systems (like Painters) to define active areas in a control



Public Properties
 PropertyDefined by
  bottom : Number
[read-only]
Padding
  left : Number
[read-only]
Padding
  right : Number
[read-only]
Padding
  top : Number
[read-only]
Padding
Public Methods
 MethodDefined by
  
Padding(top:Number = 0, right:Number = -1, bottom:Number = -1, left:Number = -1)
Creates a new Padding object.
Padding
  
toString():String
Padding
Property detail
bottomproperty
bottom:Number  [read-only]Implementation
    public function get bottom():Number
leftproperty 
left:Number  [read-only]Implementation
    public function get left():Number
rightproperty 
right:Number  [read-only]Implementation
    public function get right():Number
topproperty 
top:Number  [read-only]Implementation
    public function get top():Number
Constructor detail
Padding()constructor
public function Padding(top:Number = 0, right:Number = -1, bottom:Number = -1, left:Number = -1)

Creates a new Padding object. All arguments are optional and the behaviour with missing arguments is based on the way padding works in standard CSS. If you just provide one argument then that value is used on all sides. If you provide two arguments then the first argument is the padding on the top and bottom and the second argument is the padding on the right and left. If you provide three arguments then the first is the top padding, second is right and left padding and the third argument is the bottom padding. If you supply all four arguments then each argument is the padding for the side it is named on.

Parameters
top:Number (default = 0)
 
right:Number (default = -1)
 
bottom:Number (default = -1)
 
left:Number (default = -1)
Method detail
toString()method
public function toString():String

Returns
String