Package-level declarations
Types
Link copied to clipboard
class BoundedBlockTextMapping(val coveredSourceRange: TextRange, visualTextRange: TextRange? = null) : TextMapping
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Used as mutable state. Must stay a value object.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class InteractiveComponent(val id: InteractiveId, val scrollIndex: Int?, layoutCoordinates: LayoutCoordinates?, val visualTextRange: TextRange, val textMapping: TextMapping, val textLayoutResult: TextLayoutResult?, val userData: UserData = UserData.empty)
Class representing an interactive GUI element. Best created in onGloballyPositioned modifier.
Link copied to clipboard
Link copied to clipboard
data class InteractiveScope(val focusRequester: FocusRequester = FocusRequester(), containerLayoutCoordinates: LayoutCoordinates? = null)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface Navigation
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class ReplaceRange(val sourceRange: TextRange, val newSource: String, val sourceCursorOffset: Int = 0) : TextInputCommand
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class SelectionStyle(val fillColor: Color = Color.Cyan.copy(alpha = 0.5f), val stroke: SelectionStyle.Stroke = Stroke())
Link copied to clipboard
Link copied to clipboard
interface TextMapping
Maps ranges of rendered text to ranges of source code and back.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Properties
Functions
Link copied to clipboard
fun Modifier.annotationClickDetector(textLayoutResult: TextLayoutResult?, activeTags: Set<String>, activePointerIcon: PointerIcon = PointerIcon.Hand, onClick: (Int, List<AnnotatedString.Range<String>>) -> Unit): Modifier
Detects annotations tagged by a specific tag in the annotated text, which is shown in the component. If a mouse pointer hovers over such text, its icon is changed and if clicked, the onClick handler will be called.
Link copied to clipboard
Find the visual position of the cursor in the layout.
Link copied to clipboard
Delimits a region where interaction is disabled.
Link copied to clipboard
Link copied to clipboard
@Composable
Delimits region where all the interactive components will be considered parts of the same document.
Link copied to clipboard
@Composable
@Composable
Link copied to clipboard
fun Modifier.interactiveText(interactiveId: InteractiveId, textLayoutResult: TextLayoutResult?, textMapping: TextMapping, textLength: Int, userData: UserData = UserData.empty): Modifier
Link copied to clipboard
fun InteractiveScope.moveCursorByWord(oldPosition: CursorPosition, moveStep: (CursorPosition) -> CursorPosition): CursorPosition
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Composable
Link copied to clipboard
fun Modifier.paintSelection(interactiveScope: InteractiveScope, interactiveId: InteractiveId): Modifier
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard