common • net.kernelpanicsoft.archie.gui.modifiers • HorizontalFillModifier
HorizontalFillModifier
data class HorizontalFillModifier(val percent: Double) : Modifier.Element<HorizontalFillModifier> , LayoutChangingModifierConstructors
HorizontalFillModifier
constructor(percent: Double)Properties
percent
Functions
all
open override fun all(predicate: (Modifier.Element<*>) -> Boolean): BooleanReturns `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): BooleanReturns `true` if predicate returns true for any Element in this Modifier.
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
foldIn
Accumulates a value starting with initial and applying operation to the current value and each element from outside in.
foldOut
Accumulates a value starting with initial and applying operation to the current value and each element from inside out.
height
Sets identical min/max height constraints for this element.
mergeWith
open override fun mergeWith(other: HorizontalFillModifier): HorizontalFillModifiermodifyInnerConstraints
open override fun modifyInnerConstraints(constraints: Constraints): ConstraintsModify constraints as they appear to this node and its children for layout.
modifyLayoutConstraints
open fun modifyLayoutConstraints(measuredSize: IntSize, constraints: Constraints): ConstraintsModify constraints as they appear to parent nodes laying out this node.
modifyPosition
open fun modifyPosition(offset: IntOffset): IntOffsetonGloballyPositioned
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.
then
Concatenates this modifier with another.
unsafeMergeWith
open fun unsafeMergeWith(other: Modifier.Element<*>): HorizontalFillModifierwidth
Sets identical min/max width constraints for this element.