Class AbsoluteLayout
Definition
- Assembly:
- Tizen.NUI.dll
This class implements a absolute layout, allowing explicit positioning of children. Positions are from the top left of the layout and can be set using the View.Position and alike.
public class AbsoluteLayout : LayoutGroup, IDisposable, ILayoutParent
- Inheritance
- Implements
-
System.
IDisposable
Constructors
View SourceAbsoluteLayout()
The default constructor of AbsoluteLayout class
Declaration
public AbsoluteLayout()
Methods
View SourceOnLayout(bool, LayoutLength, LayoutLength, LayoutLength, LayoutLength)
Assign a size and position to each of its children.
Declaration
protected override void OnLayout(bool changed, LayoutLength left, LayoutLength top, LayoutLength right, LayoutLength bottom)
Parameters
Type | Name | Description |
---|---|---|
bool | changed | This is a new size or position for this layout. |
Layout |
left | Left position, relative to parent. |
Layout |
top | Top position, relative to parent. |
Layout |
right | Right position, relative to parent. |
Layout |
bottom | Bottom position, relative to parent. |
Overrides
View SourceOnMeasure(MeasureSpecification, MeasureSpecification)
Measure the layout and its content to determine the measured width and the measured height.
Declaration
protected override void OnMeasure(MeasureSpecification widthMeasureSpec, MeasureSpecification heightMeasureSpec)
Parameters
Type | Name | Description |
---|---|---|
Measure |
widthMeasureSpec | horizontal space requirements as imposed by the parent. |
Measure |
heightMeasureSpec | vertical space requirements as imposed by the parent. |
Overrides
Implements
System.IDisposable