Table of Contents

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 = 0

Disables chain-self sizing and member size constraints, other than per-member proportional scaling.

ClampChainOffAxis = 4

Allows 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 = 8

Allows 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 | ClampChainAlignAxis

Allows the chain's size to vary in both dimensions based on the size of its contents.

FitChainOffAxis = 16

Forces the chain to match the size of its contents on the off axis. Supersedes ClampChainOffAxis.

FitChainAlignAxis = 32

Forces the chain to match the size of its contents on the align axis. Supersedes ClampChainAlignAxis.

FitChainBoth = FitChainOffAxis | FitChainAlignAxis

Forces the chain to match the size of its contents in both dimensions. Supersedes ClampChainBoth.

ClampMembersOffAxis = 64

Constrains 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 = 128

Constrains 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 | ClampMembersAlignAxis

Constrains member size in both dimensions. If no maximum is set, the chain's size is used as the upper bounds.

FitMembersOffAxis = 256

Forces member off-axis size to equal the chain's off-axis size (or MemberMaxSize if set). Supersedes ClampMembersOffAxis.

FitMembersAlignAxis = 512

Forces member align-axis size to equal the maximum proportional align-axis size (or MemberMaxSize if set). Supersedes ClampMembersAlignAxis and per-member alignAxisScale.

FitMembersBoth = FitMembersOffAxis | FitMembersAlignAxis

Forces members to fill the available space in the chain (or up to MemberMaxSize). Supersedes ClampMembersBoth.

AlignMembersStart = 1024

Aligns the start of the item stack to the Left (Horizontal) or Top (Vertical) of the chain.

AlignMembersEnd = 2048

Aligns the start of the item stack to the Right (Horizontal) or Bottom (Vertical) of the chain.

AlignMembersCenter = 4096

Centers the item stack within the chain.