Table of Contents

Enum ParentAlignments

Namespace
RichHudFramework.UI
Assembly
RichHudClient.dll

Used to determine the default position of an element relative to its parent via ParentAlignment.

[Flags]
public enum ParentAlignments : byte

Fields

Center = 0

The element's origin is at the center of its parent.

Left = 1

The element will start with its right edge aligned to its parent's left edge. If the flag InnerH is set, then its left edge will be aligned to its parent's left edge.

Bottom = 2

The element will start with its top edge aligned to its parent's bottom edge. If the flag InnerV is set, then its bottom edge will be aligned to its parent's bottom edge.

Right = 4

The element will start with its left edge aligned to its parent's right edge. If the flag InnerH is set, then its right edge will be aligned to its parent's right edge.

Top = 8

The element will start with its bottom edge aligned to its parent's top edge. If the flag InnerV is set, then its top edge will be aligned to its parent's top edge.

TopLeft = Left | Top

The element will start with its parent's top left corner aligned to its bottom right corner.

TopRight = Right | Top

The element will start with its parent's top right corner aligned to its bottom left corner.

BottomLeft = Left | Bottom

The element will start with its parent's bottom left corner aligned to its top right corner.

BottomRight = Bottom | Right

The element will start with its parent's bottom right corner aligned to its top left corner.

InnerH = 16

Modifier flag to be used in conjunction with the Left/Right flags. If this flag is set, then the element will be horizontally aligned to the interior of its parent.

InnerV = 32

Modifier flag to be used in conjunction with the Top/Bottom flags. If this flag is set, then the element will be vertically aligned to the interior of its parent.

UsePadding = 64

If set, this flag will cause the element's alignment to be calculated taking the parent's padding into account.

Inner = InnerH | InnerV

InnerH + InnerV. If this flag is set then the element will be aligned to the interior of its parent.

InnerLeft = Left | InnerH

The element will start with its left edge aligned to its parent's left edge.

InnerTop = Top | InnerV

The element will start with its top edge aligned to its parent's top edge.

InnerRight = Right | InnerH

The element will start with its right edge aligned to its parent's right edge.

InnerTopLeft = TopLeft | Inner

The element will start with its parent's top left corner aligned to its top left corner.

InnerTopRight = TopRight | Inner

The element will start with its parent's top right corner aligned to its top right corner.

InnerBottomLeft = BottomLeft | Inner

The element will start with its parent's bottom left corner aligned to its bottom left corner.

InnerBottomRight = BottomRight | Inner

The element will start with its parent's bottom right corner aligned to its bottom right corner.

InnerBottom = Bottom | InnerV

The element will start with its bottom edge aligned to its parent's bottom edge.

PaddedInnerLeft = InnerLeft | UsePadding

The element will start with its left edge aligned to its parent's left edge, while respecting padding.

PaddedInnerTop = InnerTop | UsePadding

The element will start with its top edge aligned to its parent's top edge, while respecting padding.

PaddedInnerRight = InnerRight | UsePadding

The element will start with its right edge aligned to its parent's right edge, while respecting padding.

PaddedInnerBottom = InnerBottom | UsePadding

The element will start with its bottom edge aligned to its parent's bottom edge, while respecting padding.

PaddedInnerTopLeft = InnerLeft | PaddedInnerTop

The element will start with its parent's top left corner aligned to its top left corner, while respecting padding.

PaddedInnerTopRight = InnerRight | PaddedInnerTop

The element will start with its parent's top right corner aligned to its top right corner, while respecting padding.

PaddedInnerBottomLeft = InnerLeft | PaddedInnerBottom

The element will start with its parent's bottom left corner aligned to its bottom left corner, while respecting padding.

PaddedInnerBottomRight = InnerRight | PaddedInnerBottom

The element will start with its parent's bottom right corner aligned to its bottom right corner, while respecting padding.