androidx.compose.ui.text.style

TextDecoration

Class · from org.jetbrains.compose.ui:ui-text:1.12.2

No hand-written docs yet.

Defines a horizontal line to be drawn on the text.

class TextDecoration

How to get one

Ready-made values and functions that return it

Used by

Parameters that take a TextDecoration.

Properties

None

val None: TextDecoration

Underline

val Underline: TextDecoration

Draws a horizontal line below the text.

LineThrough

val LineThrough: TextDecoration

Draws a horizontal line over the text.

mask

val mask: Int

Functions

combine

fun combine(decorations: List<TextDecoration>): TextDecoration

Creates a decoration that includes all the given decorations.

valueOf

fun valueOf(mask: Int): TextDecoration

Construct a TextDecoration instance from the underlying TextDecoration.mask. This method will attempt to avoid allocations in cases of well known decorations, but is not guaranteed to not allocate.

plus

fun plus(decoration: TextDecoration): TextDecoration

Creates a decoration that includes both of the TextDecorations.

contains

fun contains(other: TextDecoration): Boolean

Check whether this TextDecoration contains the given decoration.

Library docs

Defines a horizontal line to be drawn on the text.