common • net.kernelpanicsoft.archie.gui.modifiers
Package-level declarations
Types
CombinedModifier
class CombinedModifier(outer: Modifier, inner: Modifier) : ModifierA node in a Modifier chain. A CombinedModifier always contains at least two elements; a Modifier outer that wraps around the Modifier inner.
Constraints
@Immutableclass Constraints(val minWidth: Int = 0, val maxWidth: Int = Int.MAX_VALUE, val minHeight: Int = 0, val maxHeight: Int = Int.MAX_VALUE)HorizontalFillModifier
data class HorizontalFillModifier(val percent: Double) : Modifier.Element<HorizontalFillModifier> , LayoutChangingModifierLayoutChangingModifier
interface LayoutChangingModifierModifier
interface ModifierAn 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
data class SizeModifier(val constraints: Constraints) : Modifier.Element<SizeModifier> , LayoutChangingModifierVerticalFillModifier
data class VerticalFillModifier(val percent: Double) : Modifier.Element<VerticalFillModifier> , LayoutChangingModifierFunctions
fillMaxHeight
@Stablefun Modifier.fillMaxHeight(percent: Double = 1.0): ModifierForces element height to a percentage between min and max height constraints
fillMaxSize
@Stablefun Modifier.fillMaxSize(percent: Double = 1.0): ModifierForces element width and height to a percentage between min and max width and height constraints
fillMaxWidth
@Stablefun Modifier.fillMaxWidth(percent: Double = 1.0): ModifierForces element width to a percentage between min and max width constraints
height
Sets identical min/max height constraints for this element.
offset
@Stablefun Constraints.offset(horizontal: Int = 0, vertical: Int = 0): ConstraintsonGloballyPositioned
fun Modifier.onGloballyPositioned(onGloballyPositioned: (IntCoordinates) -> Unit): ModifieronSizeChanged
fun Modifier.onSizeChanged(onSizeChanged: (Size) -> Unit): ModifierNotifies callback of any size changes to element.
size
Sets identical min/max width and height constraints for this element.
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): ModifierSets min and max, width and height constraints for this element.
width
Sets identical min/max width constraints for this element.