🌈 Create new beautiful Compose Gradients with our new wesite ->
Class

TextDirection

Defines the algorithm used to determine text direction.

Source set: Common
public class TextDirection internal constructor(public val value: Int)

Defines the algorithm used to determine text direction.

Members

Companion

Source set: Common
public companion object

Properties

Ltr

Source set: Common
public val Ltr: TextDirection

Sets the text direction to Left-to-Right.

Rtl

Source set: Common
public val Rtl: TextDirection

Sets the text direction to Right-to-Left.

Content

Source set: Common
public val Content: TextDirection

Resolves direction using the first strong directional character according to the Unicode Bidirectional Algorithm.

If no strong directional characters are present, falls back to androidx.compose.ui.unit.LayoutDirection, or to androidx.compose.ui.text.intl.LocaleList when creating a androidx.compose.ui.text.Paragraph (ignoring androidx.compose.ui.unit.LayoutDirection).

ContentOrLtr

Source set: Common
public val ContentOrLtr: TextDirection

Resolves direction based on the first strong directional character according to the Unicode Bidirectional Algorithm.

Falls back to Left-to-Right if no strong directional characters are found.

ContentOrRtl

Source set: Common
public val ContentOrRtl: TextDirection

Resolves direction based on the first strong directional character according to the Unicode Bidirectional Algorithm.

Falls back to Right-to-Left if no strong directional characters are found.

Unspecified

Source set: Common
public val Unspecified: TextDirection

Represents an unset TextDirection value.

Functions

valueOf

Source set: Common
public fun valueOf(value: Int): TextDirection

Creates TextDirection from value.

Useful for serialization/deserialization.

Parameters

value internal integer representation.

Throws: IllegalArgumentException

if value is invalid.