Package-level declarations

Types

Link copied to clipboard
data class TextBoxProperty(val size: DpSize, val backgroundColor: Color, val textStyle: TextStyle, val selectionBackgroundColor: Color, val padding: Dp, val borderBoxPaint: Paint, val borderBoxPadding: Dp) : Property

Represents the properties of a sticky text box, including size, background color, text style, padding, and border properties. Used to customize the appearance and behavior of a sticky text box in the UI.

Functions

Link copied to clipboard
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.