OffsetModifier
An element that applies a relative offset to a UI component.
Functions
Sets the horizontal alignment.
Sets the vertical alignment.
Sets both horizontal and vertical alignment.
Sets the background color.
Requests to fill the available height, optionally by a fraction.
Requests to fill all available space, optionally by a fraction.
Requests to fill the available width, optionally by a fraction.
Finds the last element of type T in the modifier chain.
Flattens the recursive Modifier chain into a linear list of elements.
Sets the foreground color.
Adds all characters of margin on all sides.
Adds horizontal and vertical margin.
Adds margin for each side individually.
Adds all characters of padding on all sides.
Adds horizontal and vertical padding.
Adds padding for each side individually.
Applies strikethrough styling.
Accumulates all MarginModifier elements in the chain into a single result.
Accumulates all OffsetModifier elements in the chain into a single result.
Accumulates all PaddingModifier elements in the chain into a single result.
Sets vertical sizing to fit content.
Sets both horizontal and vertical sizing to fit content.
Sets horizontal sizing to fit content.