TextBoxProperty

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.

Parameters

size

The size of the text box.

backgroundColor

The background color of the text box.

textStyle

The text style (font size, color, etc.) to be applied to the text inside the text box.

selectionBackgroundColor

The background color when the text is selected.

padding

The padding inside the text box, applied around the text.

borderBoxPaint

Paint object used to draw a border around the text box.

borderBoxPadding

Padding for the border box around the text box when focused.

Constructors

Link copied to clipboard
constructor(size: DpSize, backgroundColor: Color, textStyle: TextStyle, selectionBackgroundColor: Color, padding: Dp, borderBoxPaint: Paint, borderBoxPadding: Dp)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val padding: Dp
Link copied to clipboard
Link copied to clipboard