PdfSearchHighlightDecoration

data class PdfSearchHighlightDecoration(val fillColor: Color, val strokeColor: Color = Color.Transparent, val strokeWidth: Dp = 0.dp, val cornerRadius: Dp = 1.dp, val padding: Dp = 0.dp)

Fill, outline, and geometry applied to a search-result rectangle.

Constructors

Link copied to clipboard
constructor(fillColor: Color, strokeColor: Color = Color.Transparent, strokeWidth: Dp = 0.dp, cornerRadius: Dp = 1.dp, padding: Dp = 0.dp)

Properties

Link copied to clipboard

Radius applied to all rectangle corners.

Link copied to clipboard

Color painted inside the match rectangle.

Link copied to clipboard
val padding: Dp

Space added outside the PDF-reported match bounds.

Link copied to clipboard

Optional outline color.

Link copied to clipboard

Outline width; 0.dp disables the outline.