Interactive Component
Class representing an interactive GUI element. Best created in onGloballyPositioned modifier.
Constructors
Properties
ID of the interactive component. The IDs must follow the flow of the text, because they are used to sort the components in line order. This is important for cursor navigation and selection.
True if the text contained in this component has more than one line. False if the component has no text or the contained text is just one line.
If the component is placed inside LazyColumn or LazyRow, this is the item index in that container. It is used if you want to scroll to a particular component. Does not need to be unique, more components can be placed in a single LazyList.item.
Result of laying out the text if this is a component displaying text. Used for cursor movement.
Maps ranges of displayed text to ranges of source text and vice-versa. Useful for writing editors.
Text range of the displayed text if the represented component is a component displaying text.