Modifier

class Modifier

Modifier is used to modify the properties of a UIElement, including padding, gravity, and visibility. This should only be used for a UIElement that resides inside an AutoLayout; otherwise, it will have no effect.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard

Enum class to represent the visibility states of a UIElement

Functions

Link copied to clipboard
fun gravity(horizontalGravity: Align): Modifier

Sets the horizontal gravity for the UIElement

fun gravity(verticalGravity: AlignV): Modifier

Sets the vertical gravity for the UIElement

Link copied to clipboard

Sets uniform padding on all sides of the UIElement

fun padding(left: Float = 0.0f, top: Float = 0.0f, right: Float = 0.0f, bottom: Float = 0.0f): Modifier

Sets individual padding values for each side of the UIElement

Link copied to clipboard

Sets the visibility state for the UIElement