| Package | org.openPyro.core |
| Class | public class Application |
| Inheritance | Application UIContainer UIControl MeasurableControl flash.display.Sprite |
| Method | Defined by | ||
|---|---|---|---|
|
Application(applicationWidth:uint = 0, applicationHeight:uint = 0)
| Application | ||
![]() |
addChild(child:DisplayObject):DisplayObject
| UIContainer | |
![]() |
addChildAt(child:DisplayObject, index:int):DisplayObject
| UIContainer | |
![]() |
cancelMouseEvents():void
| MeasurableControl | |
![]() |
checkDisplayListValidation():void
Calls the queueValidateDisplayList if measure causes
_dimensionsChanged to change to true.
| UIControl | |
![]() |
dispose():void
| UIControl | |
![]() |
doLayoutChildren():void
Lays out the layoutChildren based
ILayout
object. | UIContainer | |
![]() |
doOnAdded():void
[Temp] This function is called automatically
by a parent UIControl if this is created as a
child of a UIControl.
| MeasurableControl | |
![]() |
enableMouseEvents():void
| MeasurableControl | |
![]() |
getChildByName(name:String):DisplayObject
| UIContainer | |
![]() |
getExplicitOrMeasuredHeight():Number
Returns the explicitly defined height or the measured
height computed by the
measure function. | MeasurableControl | |
![]() |
getExplicitOrMeasuredWidth():Number
Returns the explicitly defined width or the measured
number computed by the
measure function. | MeasurableControl | |
![]() |
heightForMeasurement():Number
When measure is called, it uses the widthForMeasurement and
heightForMeasurement to calculate the sizes for
percent-dimension based children
| UIContainer | |
![]() |
initialize():void
This happens only once when a child is
first added to any parent.
| UIContainer | |
![]() |
invalidateSize(event:PyroEvent = null):void
Marks itself dirty and waits till either the container
to validateSize or validates itself at the next enterframe
if it has no parent container.
| MeasurableControl | |
![]() |
isMouseOver(event:MouseEvent):Boolean
Utility function to check if a mouseEvent happened
while the mouse was over the displayObject
| MeasurableControl | |
![]() |
measure():void
Measure is called during the validateSize if
the needsmeasurement flag is set.
| UIControl | |
![]() | UIControl | ||
![]() |
queueValidateDisplayList(event:PyroEvent = null):void
This function is called if the framework determines that dimensions of the
control have changed.
| MeasurableControl | |
![]() |
removeAllChildren():void
| UIContainer | |
![]() |
removeBackgroundPainter():void
| UIControl | |
![]() |
removeChild(child:DisplayObject):DisplayObject
| UIContainer | |
![]() |
resizeHandler():void
| MeasurableControl | |
![]() |
Convinience function for setting width and height
in one call.
| UIControl | |
![]() |
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
Unlike UIControls, UIContainers do not apply a skin directly on
themselves but interpret the skin file and apply them to the
different children.
| UIContainer | |
![]() |
validateDisplayList(event:Event = null):void
validateDisplayList is called as a response to invalidateDisplayList.
| MeasurableControl | |
![]() |
validateSize():void
The validateSize function is called in response to
a component declaring its size invalid (usually
by calling invalidateSize()).
| UIContainer | |
![]() |
widthForMeasurement():Number
When measure is called, it uses the widthForMeasurement and
heightForMeasurement to calculate the sizes for
percent-dimension based children
| UIContainer | |
| Method | Defined by | ||
|---|---|---|---|
|
appInit():void
This function is called once the application has ensured it has
a reference to the stage variable that is not 0.
| Application | ||
![]() |
calculateMeasuredHeight():void
Calculates the measuredHeight property.
| MeasurableControl | |
![]() |
calculateMeasuredWidth():void
Calculates the measuredWidth property.
| MeasurableControl | |
![]() |
checkNeedsHScrollBar():void
| UIContainer | |
![]() |
checkNeedsVScrollBar():void
| UIContainer | |
![]() |
checkRevalidation():void
| UIContainer | |
![]() |
createChildren():void
This is where the new children should
be created and then added to the displaylist.
| MeasurableControl | |
![]() |
createHScrollBar():void
| UIContainer | |
![]() |
createVScrollBar():void
| UIContainer | |
![]() |
disableEvent(event:Event):void
| MeasurableControl | |
![]() |
dispatchDragStart(event:MouseEvent):void
| UIControl | |
![]() |
dispatchUpdateComplete():void
Dispatches the UpdateComplete event
| MeasurableControl | |
![]() |
doChildBasedValidation():void
| UIContainer | |
![]() |
doQueuedValidateSize(event:Event):void
doQueueValidateSize is executed by the top level UIControl.
| MeasurableControl | |
![]() |
handleMouseWheel(event:MouseEvent):void
| UIContainer | |
![]() |
handlePreDragMouseDown(event:Event):void
This function is called if the UIControl instance is drag enabled
and the user clicks the mouse down.
| UIControl | |
![]() |
hideHScrollBar():void
| UIContainer | |
![]() |
hideVScrollBar():void
| UIContainer | |
![]() |
invalidateDisplayList():void
| MeasurableControl | |
![]() |
onAddedToParent(event:Event):void
The event listener executed when this component
has been added to the parent.
| MeasurableControl | |
|
onAddedToStage(event:Event = null):void
| Application | ||
![]() |
onHorizontalScroll(event:ScrollEvent):void
Event listener for when the horizontal scrollbar is
used.
| UIContainer | |
![]() |
onHorizontalScrollBarSizeValidated(event:PyroEvent):void
| UIContainer | |
![]() |
onHScrollBarUpdateComplete(event:PyroEvent):void
Event listener for the horizontal scrollbar's
creation and validation event.
| UIContainer | |
![]() |
onSkinnedControlResize(event:Event):void
Event handler for when the UIControl is applied as a Skin
and the control it is skinning is resized.
| UIControl | |
![]() |
onVerticalScroll(event:ScrollEvent):void
Event listener for when the vertical scrollbar is
used.
| UIContainer | |
![]() |
onVerticalScrollBarSizeValidated(event:PyroEvent):void
| UIContainer | |
![]() |
onVScrollBarUpdateComplete(event:PyroEvent):void
Event listener for the vertical scrollbar's
creation and validation event.
| UIContainer | |
![]() |
setContentMask():void
| UIContainer | |
![]() |
setVerticalScrollBar():void
| UIContainer | |
| _applicationHeight | property |
protected var _applicationHeight:uint = 0
| _applicationWidth | property |
protected var _applicationWidth:uint = 0
| Application | () | constructor |
public function Application(applicationWidth:uint = 0, applicationHeight:uint = 0)Parameters
applicationWidth:uint (default = 0) |
|
applicationHeight:uint (default = 0) |
| appInit | () | method |
protected function appInit():voidThis function is called once the application has ensured it has a reference to the stage variable that is not 0. If no applicationWidth, applicationHeight is set for the Application, the application goes to its default behavior of being as big as the stage and resizing when the stage resizes.
| onAddedToStage | () | method |
protected function onAddedToStage(event:Event = null):voidParameters
event:Event (default = null) |