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
public companion object
Properties
InsideOnly
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
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
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
public val AtBoth: ExpandPolicy
The range will expand when text is inserted at either of its boundaries.