StickyTextBox

fun StickyTextBox(modifier: Modifier = Modifier, property: TextBoxProperty, textItem: StickyTextItem, onStickyMoved: (Offset) -> Unit, onTextChange: (String) -> Unit, onZoomChanged: (String, Float, Offset) -> Unit, onDeleteSticky: (StickyTextItem) -> Unit, onFocusChange: (String, Boolean) -> Unit)

Composable function that displays a sticky text box with editable text. It allows for dragging, zooming, and text editing with state updates. The sticky text box's properties such as background color, text style, padding, and border styling are customizable.

Parameters

modifier

The modifier to be applied to the sticky text box.

property

The properties of the sticky text box, including its size, background color, text style, etc.

textItem

The sticky text item that contains the text and other properties.

onStickyMoved

Lambda to handle the movement of the sticky text box.

onTextChange

Lambda to handle changes in the text inside the sticky text box.

onZoomChanged

Lambda to handle zoom changes on the sticky text box.

onDeleteSticky

Lambda to handle the deletion of the sticky text box.

onFocusChange

Lambda to handle focus changes on the sticky text box.