Skip to content

commonnet.kernelpanicsoft.archie.gui.modifiersOnGloballyPositionedModifier

OnGloballyPositionedModifier


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

Constructors

OnGloballyPositionedModifier

constructor(merged: Boolean = false, onGloballyPositioned: (IntCoordinates) -> Unit)

Properties

merged


val merged: Boolean = false

onGloballyPositioned


Functions

all


open override fun all(predicate: (Modifier.Element<*>) -> Boolean): Boolean

Returns `true` if predicate returns true for all Elements in this Modifier or if this Modifier contains no Elements.

any


open override fun any(predicate: (Modifier.Element<*>) -> Boolean): Boolean

Returns `true` if predicate returns true for any Element in this Modifier.

fillMaxHeight


@Stablefun Modifier.fillMaxHeight(percent: Double = 1.0): Modifier

Forces element height to a percentage between min and max height constraints

fillMaxSize


@Stablefun Modifier.fillMaxSize(percent: Double = 1.0): Modifier

Forces element width and height to a percentage between min and max width and height constraints

fillMaxWidth


@Stablefun Modifier.fillMaxWidth(percent: Double = 1.0): Modifier

Forces element width to a percentage between min and max width constraints

foldIn


open override fun <R> foldIn(initial: R, operation: (R, Modifier.Element<*>) -> R): R

Accumulates a value starting with initial and applying operation to the current value and each element from outside in.

foldOut


open override fun <R> foldOut(initial: R, operation: (Modifier.Element<*>, R) -> R): R

Accumulates a value starting with initial and applying operation to the current value and each element from inside out.

height


@Stablefun Modifier.height(height: Int): Modifier

Sets identical min/max height constraints for this element.

mergeWith


onGloballyPositioned


fun Modifier.onGloballyPositioned(onGloballyPositioned: (IntCoordinates) -> Unit): Modifier

onSizeChanged


fun Modifier.onSizeChanged(onSizeChanged: (Size) -> Unit): Modifier

Notifies callback of any size changes to element.

size


@Stablefun Modifier.size(size: Int): Modifier

Sets identical min/max width and height constraints for this element.


@Stablefun Modifier.size(width: Int, height: Int): Modifier

Sets identical min/max width and height constraints for this element.

sizeIn


@Stablefun Modifier.sizeIn(minWidth: Int = 0, maxWidth: Int = Integer.MAX_VALUE, minHeight: Int = 0, maxHeight: Int = Integer.MAX_VALUE): Modifier

Sets min and max, width and height constraints for this element.

then


open infix fun then(other: Modifier): Modifier

Concatenates this modifier with another.

unsafeMergeWith


width


@Stablefun Modifier.width(width: Int): Modifier

Sets identical min/max width constraints for this element.