TextLinkStyles
-
Cmn
class TextLinkStyles
Represents the styles of the links in the AnnotatedString in different states
These style objects will be applied to every LinkAnnotation annotation present in the AnnotatedString, overriding any styling that might be already present in the AnnotatedString at the LinkAnnotation's position.
If null is passed to the style argument, it means that a LinkAnnotation representing a link will not get a specific link styling for this state. Instead it will be styled according to the rest of the AnnotatedString.
The resulting style of the link is always a combination of all styles merged into one in the order style.merge(focusedStyle).merge(hoveredStyle).merge(pressedStyle).
Summary
Public constructors |
|
|---|---|
TextLinkStyles( |
Cmn
|
Public properties |
||
|---|---|---|
SpanStyle? |
style configuration for a link applied on top of the |
Cmn
|
SpanStyle? |
style configuration for a link applied on top of the |
Cmn
|
SpanStyle? |
style configuration for a link applied on top of the |
Cmn
|
SpanStyle? |
style configuration for a link that is always applied |
Cmn
|
Public constructors
TextLinkStyles
TextLinkStyles(
style: SpanStyle? = null,
focusedStyle: SpanStyle? = null,
hoveredStyle: SpanStyle? = null,
pressedStyle: SpanStyle? = null
)
| Parameters | |
|---|---|
style: SpanStyle? = null |
style configuration for a link that is always applied |
focusedStyle: SpanStyle? = null |
style configuration for a link applied on top of the |
hoveredStyle: SpanStyle? = null |
style configuration for a link applied on top of the |
pressedStyle: SpanStyle? = null |
style configuration for a link applied on top of the |
Public properties
focusedStyle
val focusedStyle: SpanStyle?
style configuration for a link applied on top of the style when the link is focused
hoveredStyle
val hoveredStyle: SpanStyle?
style configuration for a link applied on top of the style when the link is hovered
pressedStyle
val pressedStyle: SpanStyle?
style configuration for a link applied on top of the style when the link is pressed