Enum HudChainSizingModes
- Namespace
- RichHudFramework.UI
- Assembly
- RichHudClient.dll
Controls the sizing behavior of the HudChain<TElementContainer, TElement> and its members. The "Align Axis" is the direction the elements are stacked (Vertical = Y, Horizontal = X). The "Off Axis" is perpendicular to the stack (Vertical = X, Horizontal = Y).
[Flags]
public enum HudChainSizingModes : ushort
Fields
None = 0Disables chain-self sizing and member size constraints, other than per-member proportional scaling.
ClampChainOffAxis = 4Allows the chain's size on the off axis (width if vertical, height if horizontal) to vary, expanding only enough to contain its widest/tallest member.
ClampChainAlignAxis = 8Allows the chain's size on the align axis (height if vertical, width if horizontal) to vary, expanding only enough to contain all members plus spacing.
ClampChainBoth = ClampChainOffAxis | ClampChainAlignAxisAllows the chain's size to vary in both dimensions based on the size of its contents.
FitChainOffAxis = 16Forces the chain to match the size of its contents on the off axis. Supersedes ClampChainOffAxis.
FitChainAlignAxis = 32Forces the chain to match the size of its contents on the align axis. Supersedes ClampChainAlignAxis.
FitChainBoth = FitChainOffAxis | FitChainAlignAxisForces the chain to match the size of its contents in both dimensions. Supersedes ClampChainBoth.
ClampMembersOffAxis = 64Constrains member size on the off axis between MemberMinSize and MemberMaxSize. If no maximum is set, the chain's size is used as the upper bound.
ClampMembersAlignAxis = 128Constrains member size on the align axis between MemberMinSize and MemberMaxSize. If no maximum is set, the chain's size is used as the upper bound.
ClampMembersBoth = ClampMembersOffAxis | ClampMembersAlignAxisConstrains member size in both dimensions. If no maximum is set, the chain's size is used as the upper bounds.
FitMembersOffAxis = 256Forces member off-axis size to equal the chain's off-axis size (or MemberMaxSize if set). Supersedes ClampMembersOffAxis.
FitMembersAlignAxis = 512Forces member align-axis size to equal the maximum proportional align-axis size (or MemberMaxSize if set). Supersedes ClampMembersAlignAxis and per-member alignAxisScale.
FitMembersBoth = FitMembersOffAxis | FitMembersAlignAxisForces members to fill the available space in the chain (or up to MemberMaxSize). Supersedes ClampMembersBoth.
AlignMembersStart = 1024Aligns the start of the item stack to the Left (Horizontal) or Top (Vertical) of the chain.
AlignMembersEnd = 2048Aligns the start of the item stack to the Right (Horizontal) or Bottom (Vertical) of the chain.
AlignMembersCenter = 4096Centers the item stack within the chain.