Packagecom.pblabs.rendering2D.ui
Interfacepublic interface IUITarget extends flash.events.IEventDispatcher
Implementors FlexSceneView, SceneView

Interface a UI element must implement to work with the DisplayObjectScene or its subclasses. Deals with adding/removing display objects safely. Only one scene can draw to a IUITarget at a time (and a IUITarget can only be used by one scene at a time).



Public Properties
 PropertyDefined By
  height : Number
IUITarget
  width : Number
IUITarget
  x : Number
[read-only]
IUITarget
  y : Number
[read-only]
IUITarget
Public Methods
 MethodDefined By
  
addDisplayObject(dobj:DisplayObject):void
Add a DisplayObject as a child of this control.
IUITarget
  
Remove all the DisplayObjects that were added by AddDisplayObject.
IUITarget
  
removeDisplayObject(dobj:DisplayObject):void
Remove a display object as a child of this control.
IUITarget
  
setDisplayObjectIndex(dobj:DisplayObject, index:int):void
Set the index of a display object which is added to this control.
IUITarget
Property Detail
heightproperty
height:Number


Implementation
    public function get height():Number
    public function set height(value:Number):void
widthproperty 
width:Number


Implementation
    public function get width():Number
    public function set width(value:Number):void
xproperty 
x:Number  [read-only]


Implementation
    public function get x():Number
yproperty 
y:Number  [read-only]


Implementation
    public function get y():Number
Method Detail
addDisplayObject()method
public function addDisplayObject(dobj:DisplayObject):void

Add a DisplayObject as a child of this control.

Parameters

dobj:DisplayObject

clearDisplayObjects()method 
public function clearDisplayObjects():void

Remove all the DisplayObjects that were added by AddDisplayObject.

removeDisplayObject()method 
public function removeDisplayObject(dobj:DisplayObject):void

Remove a display object as a child of this control.

Parameters

dobj:DisplayObject — Display object to remove.

setDisplayObjectIndex()method 
public function setDisplayObjectIndex(dobj:DisplayObject, index:int):void

Set the index of a display object which is added to this control.

Parameters

dobj:DisplayObject — Object to position in order.
 
index:int — Draw order to assign.