OffsetModifierFieldValue

ModifierFieldValue that applies positional offset to a composable.

Parameters

x

The horizontal offset in Dp. Positive values move to the right.

y

The vertical offset in Dp. Positive values move downward.

Constructors

Link copied to clipboard
constructor(x: Dp, y: Dp)

Types

Link copied to clipboard
class Factory(initialX: Dp? = null, initialY: Dp? = null) : ModifierFieldValueFactory<OffsetModifierFieldValue>

Factory for creating OffsetModifierFieldValue instances with configurable initial values.

Properties

Link copied to clipboard
var x: Dp
Link copied to clipboard
var y: Dp

Functions

Link copied to clipboard
open override fun Builder()

Renders the UI builder interface for configuring this modifier. This composable is typically displayed in the Preview Lab control panel.

Link copied to clipboard
open override fun Modifier.createModifier(): Modifier

Creates a modifier from this field value.

Link copied to clipboard

Combines this modifier field value with another to create a list.