class
ComponentBounds
actualComponentHeight:Float
The component's true height on screen.
May differ from componentHeight if Toolkit.scaleY != 1
May differ from componentHeight if Toolkit.scaleY != 1
actualComponentWidth:Float
The component's true width on screen.
May differ from componentWidth if Toolkit.scaleX != 1
May differ from componentWidth if Toolkit.scaleX != 1
componentClipRect:Rectangle
When set to a non-null value, restricts the component's "rendering zone"
to only render inside the bounds of the given rectangle, effectively "clipping" the component.
to only render inside the bounds of the given rectangle, effectively "clipping" the component.
hasScreen:Bool
Whether this component, or one if it's parents, has a screen.
isComponentClipped:Bool
Whether this component has a non-null clipping rectangle or not.
isComponentOffscreen:Bool
true if this component's area intersects with the screen, false otherwise.
clipRect is not taken into consideration - that means, if a clipRect turns a component from being
visible on screen to being invisible on screen, isComponentOffScreen should still be false.
clipRect is not taken into consideration - that means, if a clipRect turns a component from being
visible on screen to being invisible on screen, isComponentOffScreen should still be false.
left:Null<Float>
The position of this component on the horizontal, x-axis.
This position is relative to this component's parent.
This position is relative to this component's parent.
screenLeft:Float
The **on-screen** position of this component on the horizontal, x-axis.
screenTop:Float
The **on-screen** position of this component on the vertical, y-axis.
top:Null<Float>
The position of this component on the vertical, y-axis.
This position is relative to this component's parent.
This position is relative to this component's parent.
autoHeight:Bool
When enabled, this component will automatically resize itself based on it's children's calculated height.
For example, if this component's padding is 5, and it has one child, 200 pixels tall,
and autoHeight is set to true, this component's height should be 210
For example, if this component's padding is 5, and it has one child, 200 pixels tall,
and autoHeight is set to true, this component's height should be 210
autoWidth:Bool
When enabled, this component will automatically resize itself based on it's children's calculated width.
For example, if this component's padding is 5, and it has one child, 150 pixels wide,
and autoWidth is set to true, this component's width should be 160
For example, if this component's padding is 5, and it has one child, 150 pixels wide,
and autoWidth is set to true, this component's width should be 160
height:Null<Float>
This component's height. similar to componentHeight
percentHeight:Null<Float>
When set, sets this component's height to be percentHeight% percent of it's parent's height.
percentWidth:Null<Float>
When set, sets this component's width to be percentWidth% percent of it's parent's width.
width:Null<Float>
This component's width. similar to componentWidth