androidx.compose.ui.layout

HorizontalAlignmentLine

Class · from org.jetbrains.compose.ui:ui:1.12.2

No hand-written docs yet.

A horizontal AlignmentLine. Defines an horizontal offset line that can be used by parent layouts usually to align or position their children vertically. Text baselines (FirstBaseline and LastBaseline) are representative examples of HorizontalAlignmentLines. For example, they can be used by Row, to align its children by baseline, or by paddingFrom to achieve a layout with a specific from the top to the baseline of the text content. The positions of the alignment lines will be automatically inherited by parent layouts from their content, and the merger will be used to merge multiple line positions when more than one child provides a specific HorizontalAlignmentLine. See AlignmentLine for more details.

class HorizontalAlignmentLine(
    merger: (Int, Int) -> Int,
) : AlignmentLine

Is a

How to get one

Create it

Ready-made values and functions that return it

Used by

Parameters that take a HorizontalAlignmentLine.

Library docs

A horizontal AlignmentLine. Defines an horizontal offset line that can be used by parent layouts usually to align or position their children vertically. Text baselines (FirstBaseline and LastBaseline) are representative examples of HorizontalAlignmentLines. For example, they can be used by Row, to align its children by baseline, or by paddingFrom to achieve a layout with a specific from the top to the baseline of the text content. The positions of the alignment lines will be automatically inherited by parent layouts from their content, and the merger will be used to merge multiple line positions when more than one child provides a specific HorizontalAlignmentLine. See AlignmentLine for more details.