Factory

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

Factory for creating OffsetModifierFieldValue instances with configurable initial values.

Parameters

initialX

Initial horizontal offset value

initialY

Initial vertical offset value

Constructors

Link copied to clipboard
constructor(initialX: Dp? = null, initialY: Dp? = null)
constructor(initialAll: Dp? = null)

Properties

Link copied to clipboard
open override val canCreate: Boolean

Whether this factory can currently create a new modifier field value. Typically based on the current configuration state.

Link copied to clipboard
open override val title: String

The display title for this modifier type in the UI.

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

Functions

Link copied to clipboard
open override fun Content(createButton: @Composable () -> Unit)

Renders the configuration UI content for this modifier.

Link copied to clipboard
open override fun create(): Result<OffsetModifierFieldValue>

Creates a new modifier field value instance based on current configuration.