class
ComponentBounds

package haxe.ui.core

↪ haxe.ui.core.ComponentBounds


read-only
actualComponentHeight:Float
The component's true height on screen.

May differ from componentHeight if Toolkit.scaleY != 1
read-only
actualComponentWidth:Float
The component's true width on screen.

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.
read-only
hasScreen:Bool
Whether this component, or one if it's parents, has a screen.
read-only
isComponentClipped:Bool
Whether this component has a non-null clipping rectangle or not.
read-only
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.



override
cloneComponent():ComponentBounds


left:Null<Float>
The position of this component on the horizontal, x-axis.

This position is relative to this component's parent.
read-only
screenLeft:Float
The **on-screen** position of this component on the horizontal, x-axis.
read-only
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.

read-only
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
read-only
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
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