androidx.compose.ui.layout
Interfaces
ContentScale |
Represents a rule to apply to scale a source rectangle to be inscribed into a destination |
GraphicLayerInfo |
The info about the graphics layers used by tooling. |
IntrinsicMeasurable |
A part of the composition that can be measured. |
IntrinsicMeasureScope |
The receiver scope of a layout's intrinsic measurements lambdas. |
LayoutCoordinates |
A holder of the measured bounds for the layout (MeasureBox). |
LayoutIdParentData |
Can be implemented by values used as parent data to make them usable as tags. |
LayoutInfo |
The public information about the layouts used internally as nodes in the Compose UI hierarchy. |
LayoutModifier |
A Modifier.Element that changes how its wrapped content is measured and laid out. |
Measurable |
A part of the composition that can be measured. |
Measured |
A Measured corresponds to a layout that has been measured by its parent layout. |
MeasurePolicy | |
MeasureResult |
Interface holding the size and alignment lines of the measured layout, as well as the children positioning logic. |
MeasureScope |
The receiver scope of a layout's measure lambda. |
OnGloballyPositionedModifier |
A modifier whose onGloballyPositioned is called with the final LayoutCoordinates of the Layout when the global position of the content may have changed. |
OnRemeasuredModifier |
A modifier whose onRemeasured is called when the layout content is remeasured. |
ParentDataModifier | |
Remeasurement |
This object is associated with a layout node and allows to execute some extra measure/layout actions which are needed for some complex layouts. |
RemeasurementModifier |
A Modifier.Element that provides a Remeasurement object associated with the layout node the modifier is applied to. |
SubcomposeMeasureScope |
The receiver scope of a SubcomposeLayout's measure lambda which adds ability to dynamically subcompose a content during the measuring on top of the features provided by MeasureScope. |
Classes
AlignmentLine |
Defines an offset line that can be used by parent layouts to align and position their children. |
FixedScale |
ContentScale implementation that always scales the dimension by the provided fixed floating point value |
HorizontalAlignmentLine |
A horizontal AlignmentLine. |
ModifierInfo |
Used by tooling to examine the modifiers on a LayoutInfo. |
Placeable |
A Placeable corresponds to a child layout that can be positioned by its parent layout. |
ScaleFactor |
Holds 2 dimensional scaling factors for horizontal and vertical axes |
TestModifierUpdater | |
VerticalAlignmentLine |
A vertical AlignmentLine. |
Top-level functions summary
Unit |
Defines the measure and layout behavior of a Layout. |
Unit |
Layout(content: () -> Unit, modifier: Modifier = Modifier, measurePolicy: MeasurePolicy) Layout is the main core component for layout. |
Unit |
MultiMeasureLayout(modifier: Modifier = Modifier, content: () -> Unit, measurePolicy: MeasurePolicy) |
ScaleFactor |
ScaleFactor(scaleX: Float, scaleY: Float) Constructs a ScaleFactor from the given x and y scale values |
Unit |
SubcomposeLayout(modifier: Modifier = Modifier, measurePolicy: SubcomposeMeasureScope.(Constraints) -> MeasureResult) Analogue of Layout which allows to subcompose the actual content during the measuring stage for example to use the values calculated during the measurement as params for the composition of the children. |
Unit |
TestModifierUpdaterLayout(onAttached: (TestModifierUpdater) -> Unit) |
ScaleFactor |
lerp(start: ScaleFactor, stop: ScaleFactor, fraction: Float) Linearly interpolate between two ScaleFactor parameters |
Top-level properties summary
HorizontalAlignmentLine |
AlignmentLine defined by the baseline of a first line of a androidx.foundation.text.CoreText |
HorizontalAlignmentLine |
AlignmentLine defined by the baseline of the last line of a androidx.foundation.text.CoreText |
Extension functions summary
For LayoutCoordinates | |
Rect |
Returns the bounding box of the child in the parent's content area, including any clipping done with respect to the parent. |
Rect |