Package | com.bit101.components |
Class | public class HBox |
Inheritance | HBox ![]() ![]() |
Property | Defined By | ||
---|---|---|---|
![]() |
enabled : Boolean
Sets/gets whether this component is enabled or not.
|
Component | |
![]() |
height : Number [override]
Sets/gets the height of the component.
|
Component | |
spacing : Number
Gets / sets the spacing between each sub component.
|
HBox | ||
![]() |
tag : int
Sets/gets in integer that can identify the component.
|
Component | |
![]() |
width : Number [override]
Sets/gets the width of the component.
|
Component | |
![]() |
x : Number [override] [write-only]
Overrides the setter for x to always place the component on a whole pixel.
|
Component | |
![]() |
y : Number [override] [write-only]
Overrides the setter for y to always place the component on a whole pixel.
|
Component |
Property | Defined By | ||
---|---|---|---|
![]() |
_enabled : Boolean = true | Component | |
![]() |
_height : Number = 0 | Component | |
![]() |
Ronda : Class | Component | |
_spacing : Number = 5 | HBox | ||
![]() |
_tag : int = -1 | Component | |
![]() |
_width : Number = 0 | Component |
Method | Defined By | ||
---|---|---|---|
HBox(parent:DisplayObjectContainer = null, xpos:Number = 0, ypos:Number = 0)
Constructor
|
HBox | ||
addChildAt(child:DisplayObject, index:int):DisplayObject
[override]
Override of addChild to force layout;
|
HBox | ||
draw():void
[override]
Draws the visual ui of the component, in this case, laying out the sub components.
|
HBox | ||
![]() |
initStage(stage:Stage):void
[static]
Utility method to set up usual stage align and scaling.
|
Component | |
![]() |
move(xpos:Number, ypos:Number):void
Moves the component to the specified position.
|
Component | |
removeChild(child:DisplayObject):DisplayObject
[override]
Override of removeChild to force layout;
|
HBox | ||
removeChildAt(index:int):DisplayObject
[override]
Override of removeChild to force layout;
|
HBox | ||
![]() |
setSize(w:Number, h:Number):void
Sets the size of the component.
|
Component |
Method | Defined By | ||
---|---|---|---|
![]() |
addChildren():void
Overriden in subclasses to create child display objects.
|
Component | |
![]() |
getShadow(dist:Number, knockout:Boolean = false):DropShadowFilter
DropShadowFilter factory method, used in many of the components.
|
Component | |
![]() |
init():void
Initilizes the component.
|
Component | |
![]() |
invalidate():void
Marks the component to be redrawn on the next frame.
|
Component | |
![]() |
onInvalidate(event:Event):void
Called one frame after invalidate is called.
|
Component | |
onResize(event:Event):void
|
HBox |
_spacing | property |
protected var _spacing:Number = 5
spacing | property |
spacing:Number
Gets / sets the spacing between each sub component.
public function get spacing():Number
public function set spacing(value:Number):void
HBox | () | Constructor |
public function HBox(parent:DisplayObjectContainer = null, xpos:Number = 0, ypos:Number = 0)
Constructor
Parameters
parent:DisplayObjectContainer (default = null ) — The parent DisplayObjectContainer on which to add this PushButton.
|
|
xpos:Number (default = 0 ) — The x position to place this component.
|
|
ypos:Number (default = 0 ) — The y position to place this component.
|
addChildAt | () | method |
override public function addChildAt(child:DisplayObject, index:int):DisplayObject
Override of addChild to force layout;
Parameters
child:DisplayObject |
|
index:int |
DisplayObject |
draw | () | method |
override public function draw():void
Draws the visual ui of the component, in this case, laying out the sub components.
onResize | () | method |
protected function onResize(event:Event):void
Parameters
event:Event |
removeChild | () | method |
override public function removeChild(child:DisplayObject):DisplayObject
Override of removeChild to force layout;
Parameters
child:DisplayObject |
DisplayObject |
removeChildAt | () | method |
override public function removeChildAt(index:int):DisplayObject
Override of removeChild to force layout;
Parameters
index:int |
DisplayObject |