🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

ExpandPolicy

Defines how a TrackedRange expands when text is inserted exactly at its boundaries.

Source set: Common
public class ExpandPolicy private constructor(private val flag: Int)

Defines how a TrackedRange expands when text is inserted exactly at its boundaries.

This policy is used in methods like TextFieldBuffer.addStyle to configure whether the range expands to include text inserted at its start, end, or both boundaries.

Members

Companion

Source set: Common
public companion object

Properties

InsideOnly

Source set: Common
public val InsideOnly: ExpandPolicy

The range will not expand when text is inserted at its boundaries. Text inserted exactly at the start or end will be placed outside the range.

AtStart

Source set: Common
public val AtStart: ExpandPolicy

The range will expand when text is inserted at its start boundary. Text inserted exactly at the start will be included in the range.

AtEnd

Source set: Common
public val AtEnd: ExpandPolicy

The range will expand when text is inserted at its end boundary. Text inserted exactly at the end will be included in the range.

AtBoth

Source set: Common
public val AtBoth: ExpandPolicy

The range will expand when text is inserted at either of its boundaries.