Class AbsoluteLayout

    Definition

    Namespace:
    Tizen.NUI
    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, ILayoutParent
    Inheritance
    object
    LayoutItem
    LayoutGroup
    AbsoluteLayout
    Implements
    ILayoutParent

    Constructors

    View Source

    AbsoluteLayout()

    The default constructor of AbsoluteLayout class

    Declaration
    public AbsoluteLayout()

    Fields

    View Source

    LayoutBoundsAutoSized

    A flag indicating that the width or height of the child view should be calculated based on the child view's WidthSpecification and HeightSpecification.

    Declaration
    public const float LayoutBoundsAutoSized
    Field Value
    Type Description
    float

    Methods

    View Source

    GetLayoutBounds(View)

    Gets the layout bounds of the child view. The default layout bounds is 0, 0, LayoutBoundsAutoSized, LayoutBoundsAutoSized. LayoutBoundsAutoSized for width and height calculates the child view's width and height based on the child view's WidthSpecification and HeightSpecification.

    Declaration
    public static UIRect GetLayoutBounds(View view)
    Parameters
    Type Name Description
    View view

    The child view.

    Returns
    Type Description
    UIRect

    The layout bounds of view.

    View Source

    GetLayoutFlags(View)

    Gets the absolute layout flags of the child view. The default absolute layout flags is None.

    Declaration
    public static AbsoluteLayoutFlags GetLayoutFlags(View view)
    Parameters
    Type Name Description
    View view

    The child view.

    Returns
    Type Description
    AbsoluteLayoutFlags

    The absolute layout flags of view.

    View Source

    OnLayout(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.

    LayoutLength left

    Left position, relative to parent.

    LayoutLength top

    Top position, relative to parent.

    LayoutLength right

    Right position, relative to parent.

    LayoutLength bottom

    Bottom position, relative to parent.

    Overrides
    LayoutGroup.OnLayout(bool, LayoutLength, LayoutLength, LayoutLength, LayoutLength)
    View Source

    OnMeasure(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
    MeasureSpecification widthMeasureSpec

    horizontal space requirements as imposed by the parent.

    MeasureSpecification heightMeasureSpec

    vertical space requirements as imposed by the parent.

    Overrides
    LayoutGroup.OnMeasure(MeasureSpecification, MeasureSpecification)
    View Source

    SetLayoutBounds(View, UIRect)

    Sets the layout bounds of the child view. The default layout bounds is 0, 0, LayoutBoundsAutoSized, LayoutBoundsAutoSized. LayoutBoundsAutoSized for width and height calculates the child view's width and height based on the child view's WidthSpecification and HeightSpecification.

    Declaration
    public static void SetLayoutBounds(View view, UIRect rect)
    Parameters
    Type Name Description
    View view

    The child view.

    UIRect rect

    The layout bounds.

    View Source

    SetLayoutFlags(View, AbsoluteLayoutFlags)

    Sets the absolute layout flags of the child view. The default absolute layout flags is None.

    Declaration
    public static void SetLayoutFlags(View view, AbsoluteLayoutFlags flags)
    Parameters
    Type Name Description
    View view

    The child view.

    AbsoluteLayoutFlags flags

    The absolute layout flags.

    Implements

    ILayoutParent

    Extension Methods

    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX