qnx.fuse.ui.utils.LayoutUtil

LayoutUtil

Methods


Packageqnx.fuse.ui.utils
Classpublic class LayoutUtil
InheritanceLayoutUtil Inheritance Object



Class information:
PlayBook Tablet OS Version:   1.0.6



Public Methods

 MethodDefined By
  
LayoutUtil
  
addHints(hint1:Number, hint2:Number):Number
[static] Adds two layout constraint hints
LayoutUtil
  
computeAlignment(cellStart:Number, cellSize:Number, controlSize:Number, align:String):Number
[static]
LayoutUtil
  
contains(container:IContainer, child:DisplayObject):Boolean
[static] Checks if a display object is the immediate child of a container.
LayoutUtil
  
[static]
LayoutUtil
  
removeFrom(container:IContainer, child:DisplayObject):void
[static] Safely removes a child display object from a parent container.
LayoutUtil
  
restrictPoint(pointToCorrect:Point, widthHint:Number, heightHint:Number):Point
[static]
LayoutUtil

Constructor Detail

LayoutUtil()


public function LayoutUtil()



Method Detail

addHints()


public static function addHints(hint1:Number, hint2:Number):Number

Adds two layout constraint hints

Parameters

hint1:Number
hint2:Number

Returns

Number

computeAlignment()


public static function computeAlignment(cellStart:Number, cellSize:Number, controlSize:Number, align:String):Number

Parameters

cellStart:Number
cellSize:Number
controlSize:Number
align:String

Returns

Number

contains()


public static function contains(container:IContainer, child:DisplayObject):Boolean

Checks if a display object is the immediate child of a container.

Parameters

container:IContainer — The parent container.
child:DisplayObject — The object to check returns true if child is truely an immediate child of container.

Returns

Boolean

getLayoutElements()


public static function getLayoutElements(container:IContainer):Vector.<ILayoutElement>

Parameters

container:IContainer

Returns

Vector.<ILayoutElement>

removeFrom()


public static function removeFrom(container:IContainer, child:DisplayObject):void

Safely removes a child display object from a parent container.

Parameters

container:IContainer — The parent container.
child:DisplayObject — The child to be removed

restrictPoint()


public static function restrictPoint(pointToCorrect:Point, widthHint:Number, heightHint:Number):Point

Parameters

pointToCorrect:Point
widthHint:Number
heightHint:Number

Returns

Point