Skip to content

net.kernelpanicsoft.archie.gui.modifiers

Types

CombinedModifier

class CombinedModifier(outer: Modifier, inner: Modifier) : Modifier

A node in a Modifier chain. A CombinedModifier always contains at least two elements; a Modifier outer that wraps around the Modifier inner.

Constraints

@Immutable



class Constraints(
    val minWidth: Int = 0, 
    val maxWidth: Int = Int.MAX_VALUE, 
    val minHeight: Int = 0, 
    val maxHeight: Int = Int.MAX_VALUE
)

Immutable size constraints passed from a parent layout to its children during measurement.

ContentDrawScope

interface ContentDrawScope

Receiver scope provided to DrawModifier.draw containing everything needed to render and position content.

DebugModifier

data class DebugModifier(val strs: List<String> = emptyList(), val comps: List<Component> = emptyList()) : Modifier.Element<DebugModifier> 

A Modifier.Element that attaches arbitrary debug information to a composable node.

DrawModifier

interface DrawModifier

A Modifier element that can participate in the draw chain for a composable node.

HorizontalFillModifier

A LayoutChangingModifier that forces the node to fill a percent fraction of the available horizontal space.

LayoutChangingModifier

A Modifier.Element that can alter a node's position and the Constraints seen by the node and its children.

Modifier

interface Modifier

An ordered, immutable collection of modifier elements that decorate or add behavior to Compose UI elements. For example, backgrounds, padding and click event listeners decorate or add behavior to rows, text or buttons.

OnGloballyPositionedModifier

class OnGloballyPositionedModifier(val merged: Boolean = false, val onGloballyPositioned: (IntCoordinates) -> Unit) : Modifier.Element<OnGloballyPositionedModifier> 

OnSizeChangedModifier

class OnSizeChangedModifier(val merged: Boolean = false, val onSizeChanged: (Size) -> Unit) : Modifier.Element<OnSizeChangedModifier> 

SizeModifier

A Modifier.Element that constrains the intrinsic size of a composable node by clamping the Constraints passed to it during measurement.

VerticalFillModifier

A LayoutChangingModifier that forces the node to fill a percent fraction of the available vertical space.

Functions