ModifierFieldValueList

A list of ModifierFieldValue objects that can be combined to create a composite modifier.

This class allows chaining multiple modifier field values together and applying them as a single modifier to Compose components in the preview.

Parameters

values

The list of modifier field values to combine

Inheritors

Constructors

Link copied to clipboard
constructor(values: List<ModifierFieldValue>)
constructor(vararg values: ModifierFieldValue)

Types

Link copied to clipboard

Properties

Link copied to clipboard
open override val size: Int

Functions

Link copied to clipboard

Adds alpha/transparency to this modifier list.

Link copied to clipboard

Animates content size changes with smooth transitions.

Link copied to clipboard

Sets the aspect ratio constraint for this modifier list.

Link copied to clipboard

Adds a background color to this modifier list.

Link copied to clipboard

Adds a border to this modifier list with specified color and width.

Link copied to clipboard
fun ModifierFieldValueList.captureLayoutRect(captureType: CaptureLayoutRectModifierFieldValue.Type = CaptureLayoutRectModifierFieldValue.Type.PositionInRoot): ModifierFieldValueList

Extension function to add layout rectangle capture functionality to ModifierFieldValueList

Link copied to clipboard

Extension function to add offset capture functionality to ModifierFieldValueList

Link copied to clipboard

Extension function to add size capture functionality to ModifierFieldValueList

Link copied to clipboard
open operator override fun contains(element: ModifierFieldValue): Boolean
Link copied to clipboard
open override fun containsAll(elements: Collection<ModifierFieldValue>): Boolean
Link copied to clipboard

Creates a combined modifier from all values in this list.

Link copied to clipboard

Adds a fillMaxHeight modifier to this modifier list.

Link copied to clipboard

Adds a fillMaxSize modifier to this modifier list.

Link copied to clipboard

Adds a fillMaxWidth modifier to this modifier list.

Link copied to clipboard
open operator override fun get(index: Int): ModifierFieldValue
Link copied to clipboard

Sets the height of this modifier list to the specified value.

Link copied to clipboard
open override fun indexOf(element: ModifierFieldValue): Int
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
open operator override fun iterator(): Iterator<ModifierFieldValue>
Link copied to clipboard
open override fun lastIndexOf(element: ModifierFieldValue): Int
Link copied to clipboard
Link copied to clipboard
fun ModifierFieldValueList.mark(color: Color = Color.Red.copy(alpha = 0.5f), borderWidth: Dp = 2.dp): ModifierFieldValueList

Adds visual marking to a ModifierFieldValueList with border and background.

fun ModifierFieldValueList.mark(borderColor: Color = Color.Red.copy(alpha = 0.75f), backgroundColor: Color = borderColor.copy(alpha = borderColor.alpha * 0.5f), borderWidth: Dp = 2.dp): ModifierFieldValueList

Adds visual marking to a ModifierFieldValueList with customizable border and background colors.

Link copied to clipboard

Offsets this modifier list uniformly in both X and Y directions.

Offsets this modifier list by the specified X and Y coordinates.

Link copied to clipboard

Adds equal padding to all sides of this modifier list.

fun ModifierFieldValueList.padding(horizontal: Dp = 0.dp, vertical: Dp = 0.dp): ModifierFieldValueList

Adds padding to this modifier list with horizontal and vertical values.

fun ModifierFieldValueList.padding(start: Dp = 0.dp, end: Dp = 0.dp, top: Dp = 0.dp, bottom: Dp = 0.dp): ModifierFieldValueList

Adds padding to this modifier list with individual side values.

Link copied to clipboard

Rotates this modifier list by the specified degrees.

Link copied to clipboard

Scales this modifier list uniformly in both X and Y directions.

Scales this modifier list with separate X and Y scale factors.

Link copied to clipboard

Adds equal size to this modifier list for both width and height.

fun ModifierFieldValueList.size(width: Dp = 0.dp, height: Dp = 0.dp): ModifierFieldValueList

Adds size to this modifier list with individual width and height values.

Link copied to clipboard
open override fun subList(fromIndex: Int, toIndex: Int): List<ModifierFieldValue>
Link copied to clipboard

Adds another modifier field value to this list.

Combines this list with another ModifierFieldValueList.

Link copied to clipboard
fun <Value> List<Value>.toField(label: String, choiceLabel: (Value) -> String = { it.toString() }, type: SelectableField.Type = DROPDOWN, initialValue: Value = this[0]): SelectableField<Value>

Extension function to convert a List to a SelectableField.

Link copied to clipboard

Sets the width of this modifier list to the specified value.

Link copied to clipboard

Wraps the content height to match the content bounds.

Link copied to clipboard

Wraps the content size (both width and height) to match the content bounds.

Link copied to clipboard

Wraps the content width to match the content bounds.

Link copied to clipboard

Sets the Z-index (layering order) for this modifier list.