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 = 0The element's origin is at the center of its parent.
Left = 1The 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 = 2The 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 = 4The 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 = 8The 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 | TopThe element will start with its parent's top left corner aligned to its bottom right corner.
TopRight = Right | TopThe element will start with its parent's top right corner aligned to its bottom left corner.
BottomLeft = Left | BottomThe element will start with its parent's bottom left corner aligned to its top right corner.
BottomRight = Bottom | RightThe element will start with its parent's bottom right corner aligned to its top left corner.
InnerH = 16Modifier 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 = 32Modifier 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 = 64If set, this flag will cause the element's alignment to be calculated taking the parent's padding into account.
Inner = InnerH | InnerVInnerH + InnerV. If this flag is set then the element will be aligned to the interior of its parent.
InnerLeft = Left | InnerHThe element will start with its left edge aligned to its parent's left edge.
InnerTop = Top | InnerVThe element will start with its top edge aligned to its parent's top edge.
InnerRight = Right | InnerHThe element will start with its right edge aligned to its parent's right edge.
InnerTopLeft = TopLeft | InnerThe element will start with its parent's top left corner aligned to its top left corner.
InnerTopRight = TopRight | InnerThe element will start with its parent's top right corner aligned to its top right corner.
InnerBottomLeft = BottomLeft | InnerThe element will start with its parent's bottom left corner aligned to its bottom left corner.
InnerBottomRight = BottomRight | InnerThe element will start with its parent's bottom right corner aligned to its bottom right corner.
InnerBottom = Bottom | InnerVThe element will start with its bottom edge aligned to its parent's bottom edge.
PaddedInnerLeft = InnerLeft | UsePaddingThe element will start with its left edge aligned to its parent's left edge, while respecting padding.
PaddedInnerTop = InnerTop | UsePaddingThe element will start with its top edge aligned to its parent's top edge, while respecting padding.
PaddedInnerRight = InnerRight | UsePaddingThe element will start with its right edge aligned to its parent's right edge, while respecting padding.
PaddedInnerBottom = InnerBottom | UsePaddingThe element will start with its bottom edge aligned to its parent's bottom edge, while respecting padding.
PaddedInnerTopLeft = InnerLeft | PaddedInnerTopThe element will start with its parent's top left corner aligned to its top left corner, while respecting padding.
PaddedInnerTopRight = InnerRight | PaddedInnerTopThe element will start with its parent's top right corner aligned to its top right corner, while respecting padding.
PaddedInnerBottomLeft = InnerLeft | PaddedInnerBottomThe element will start with its parent's bottom left corner aligned to its bottom left corner, while respecting padding.
PaddedInnerBottomRight = InnerRight | PaddedInnerBottomThe element will start with its parent's bottom right corner aligned to its bottom right corner, while respecting padding.