Table of Contents

Struct ArrangeConstraints

Namespace
Xui.Core.UI
Assembly
Xui.Core.dll

Immutable input to an arrangement operation.

public readonly struct ArrangeConstraints
Inherited Members

Constructors

ArrangeConstraints(Size, Size, Point, LayoutSizeMode, LayoutSizeMode, LayoutAlign, LayoutAlign)

Initializes arrangement constraints.

public ArrangeConstraints(Size availableSize, Size desiredSize, Point anchor, LayoutSizeMode xSize = LayoutSizeMode.Exact, LayoutSizeMode ySize = LayoutSizeMode.Exact, LayoutAlign xAlign = LayoutAlign.Start, LayoutAlign yAlign = LayoutAlign.Start)

Parameters

availableSize Size
desiredSize Size
anchor Point
xSize LayoutSizeMode
ySize LayoutSizeMode
xAlign LayoutAlign
yAlign LayoutAlign

Properties

Anchor

Reference point for alignment.

public Point Anchor { get; }

Property Value

Point

AvailableSize

Available margin-box size.

public Size AvailableSize { get; }

Property Value

Size

DesiredSize

Desired margin-box size from measurement.

public Size DesiredSize { get; }

Property Value

Size

XAlign

Horizontal anchor alignment.

public LayoutAlign XAlign { get; }

Property Value

LayoutAlign

XSize

Horizontal sizing mode.

public LayoutSizeMode XSize { get; }

Property Value

LayoutSizeMode

YAlign

Vertical anchor alignment.

public LayoutAlign YAlign { get; }

Property Value

LayoutAlign

YSize

Vertical sizing mode.

public LayoutSizeMode YSize { get; }

Property Value

LayoutSizeMode