Package-level declarations

Types

Link copied to clipboard
@Stable
fun interface Alignment

An interface to calculate the position of a sized box inside an available space. Alignment is often used to define the alignment of a layout inside a parent layout.

Link copied to clipboard
@Immutable
object Arrangement

Used to specify the arrangement of the layout's children in layouts like Row or Column in the main axis direction (horizontal and vertical, respectively).

Link copied to clipboard
@Immutable
class BiasAlignment(val horizontalBias: Float, val verticalBias: Float) : Alignment

An Alignment specified by bias: for example, a bias of -1 represents alignment to the start/top, a bias of 0 will represent centering, and a bias of 1 will represent end/bottom. Any value can be specified to obtain an alignment. Inside the -1, 1 range, the obtained alignment will position the aligned size fully inside the available space, while outside the range it will the aligned size will be positioned partially or completely outside.

Link copied to clipboard
@Immutable
interface BoxScope

A BoxScope provides a scope for the children of Box.

Link copied to clipboard
@Immutable
class Color
Link copied to clipboard
@Immutable
interface ColumnScope

Scope for the children of Column.

Link copied to clipboard
annotation class LayoutScopeMarker
Link copied to clipboard

An annotation that can be used to mark an composable function as being expected to be use in a composable function that is also marked or inferred to be marked as a MosaicComposable.

Link copied to clipboard
@Immutable
interface RowScope

Scope for the children of Row.

Link copied to clipboard
@Immutable
class TextStyle

Functions

Link copied to clipboard
@Composable
fun Box(modifier: Modifier = Modifier)

A box with no content that can participate in layout, drawing due to the modifier applied to it.

@Composable
fun Box(modifier: Modifier = Modifier, contentAlignment: Alignment = Alignment.TopStart, propagateMinConstraints: Boolean = false, content: @Composable BoxScope.() -> Unit)
Link copied to clipboard
@Composable
fun Column(modifier: Modifier = Modifier, verticalArrangement: Arrangement.Vertical = Arrangement.Top, horizontalAlignment: Alignment.Horizontal = Alignment.Start, content: @Composable ColumnScope.() -> Unit)
Link copied to clipboard
@Composable
fun Filler(char: Char, modifier: Modifier = Modifier, foreground: Color? = null, background: Color? = null, style: TextStyle? = null)

Component that represents an layout of identical characters, whose size can be defined using Modifier.width, Modifier.height and Modifier.size modifiers.

Link copied to clipboard
@Composable
fun Layout(content: @Composable () -> Unit, modifier: Modifier = Modifier, debugInfo: () -> String = { "Layout()" }, measurePolicy: MeasurePolicy)
Link copied to clipboard
@Composable
fun Row(modifier: Modifier = Modifier, horizontalArrangement: Arrangement.Horizontal = Arrangement.Start, verticalAlignment: Alignment.Vertical = Alignment.Top, content: @Composable RowScope.() -> Unit)
Link copied to clipboard
@Composable
fun Spacer(modifier: Modifier = Modifier)

Component that represents an empty space layout, whose size can be defined using Modifier.width, Modifier.height and Modifier.size modifiers.

Link copied to clipboard
@Composable
fun <T> Static(items: SnapshotStateList<T>, content: @Composable (T) -> Unit)

Will render each value emitted by items as permanent output above the regular display.

Link copied to clipboard
@Composable
fun Text(value: AnnotatedString, modifier: Modifier = Modifier, color: Color? = null, background: Color? = null, style: TextStyle? = null)
@Composable
fun Text(value: String, modifier: Modifier = Modifier, color: Color? = null, background: Color? = null, style: TextStyle? = null)