qnx.ui.geom.EdgeMetrics

EdgeMetrics

Properties | Methods


Packageqnx.ui.geom
Classpublic class EdgeMetrics
InheritanceEdgeMetrics Inheritance Object

The EdgeMetrics class returns the actual left, top, right, and bottom scale-9 values of the current skin state. The EgdeMetrics class differs from the Flash scale9Grid property, in that an EgdeMetrics object returns the scaled edge values of the skin.

Class information:
PlayBook Tablet OS Version:   1.0.6

See also

ISkin
SkinStates
UISkin



Public Properties

 PropertyDefined By
  bottom : Number
The bottom edge value.
EdgeMetrics
  left : Number
The left edge value.
EdgeMetrics
  right : Number
The right edge value.
EdgeMetrics
  top : Number
The top edge value.
EdgeMetrics

Public Methods

 MethodDefined By
  
EdgeMetrics(left:Number = 0, top:Number = 0, right:Number = 0, bottom:Number = 0)
Creates an EdgeMetrics instance.
EdgeMetrics
  
Creates a clone of this EdgeMetrics instance.
EdgeMetrics
  
toString():String
Returns a String representation of this EdgeMetrics instance.
EdgeMetrics

Property Detail

bottom


public var bottom:Number

The bottom edge value.

left


public var left:Number

The left edge value.

right


public var right:Number

The right edge value.

top


public var top:Number

The top edge value.

Constructor Detail

EdgeMetrics()


public function EdgeMetrics(left:Number = 0, top:Number = 0, right:Number = 0, bottom:Number = 0)

Creates an EdgeMetrics instance.

Parameters

left:Number (default = 0) — The left edge of the skin.
top:Number (default = 0) — The top edge of the skin.
right:Number (default = 0) — The right edge of the skin.
bottom:Number (default = 0) — The bottom edge of the skin.

Method Detail

clone()


public function clone():EdgeMetrics

Creates a clone of this EdgeMetrics instance. The new instance contains the same data.

Returns

EdgeMetrics — The cloned EdgeMetrics instance.

toString()


public function toString():String

Returns a String representation of this EdgeMetrics instance.

Returns

String