Package-level declarations

Types

Link copied to clipboard

The position of content within a container while slots overlap.

Link copied to clipboard

What a layout function can do whether it is answering an intrinsic question or measuring: read its environment. Receiver for a LayoutFunction's intrinsic overrides, which answer a number: they may not measure, declare a size or place. MeasureScope adds measuring and declaring.

Link copied to clipboard

A class for defining layout directions. A layout direction can be left-to-right (LTR) or right-to-left (RTL). It can also be inherited (from a parent) or deduced from the default language script of a locale.

Link copied to clipboard

Positions the children of a container.

Link copied to clipboard

A layout function for a container with exactly one child, which it receives by name.

Link copied to clipboard

A layout function for a container with exactly two children, which it receives by name.

Link copied to clipboard

A layout function for a container with exactly three children, which it receives by name.

Link copied to clipboard

A layout function for a container whose child count is not known until runtime.

Link copied to clipboard

Marks the scopes a layout function runs in: inside a placement block only PlacementScope's members resolve implicitly, so measuring a child or declaring a size there does not compile.

Link copied to clipboard

A child that has been resolved but not yet laid out.

Link copied to clipboard

Receiver for LayoutFunction.measure, and where a pass leaves what it works out: it asks its children as IntrinsicMeasureScope does, measures them, and declares.

Link copied to clipboard

A child that has been laid out and knows its size, but not yet where it sits.

Link copied to clipboard

Receiver for the placement pass.

Link copied to clipboard
class RenderWithConstraints(style: Style = Style, render: RenderWithConstraintsScope.(SizeConstraints) -> Component?) : Component
Link copied to clipboard
Link copied to clipboard

A layout component that stacks its children on top of each other. Each child is positioned absolutely within the container, allowing them to overlap.

Functions

Link copied to clipboard
inline fun ResourcesScope.StackLayout(alignContent: YogaAlign? = null, alignItems: YogaAlign? = null, justifyContent: YogaJustify? = null, wrap: YogaWrap? = null, gap: Dimen? = null, style: Style = Style, noinline children: StackContainerScope.() -> Unit): Component

A layout component that stacks its children on top of each other. Each child is positioned absolutely within the container, allowing them to overlap.