CurvedScope
@CurvedScopeMarker
interface CurvedScope
A scope for elements which can only be contained within a CurvedRow.
Summary
Public functions |
|
|---|---|
Unit |
This function is deprecated. glance-wear-tiles is deprecated and will be removed |
Unit |
This function is deprecated. glance-wear-tiles is deprecated and will be removed |
Unit |
This function is deprecated. glance-wear-tiles is deprecated and will be removed |
Unit |
This function is deprecated. glance-wear-tiles is deprecated and will be removed |
Public functions
curvedComposable
funcurvedComposable(
rotateContent: Boolean = true,
content: @Composable () -> Unit
): Unit
Component that allows normal composable to be part of a CurvedRow
| Parameters | |
|---|---|
rotateContent: Boolean = true |
whether to rotate the composable at a tangent to the circle |
content: @Composable () -> Unit |
The content of this |
curvedLine
funcurvedLine(
color: ColorProvider,
curvedModifier: GlanceCurvedModifier = GlanceCurvedModifier
): Unit
A line that can be used in a CurvedRow and renders as a curved bar.
| Parameters | |
|---|---|
color: ColorProvider |
The color of this line. |
curvedModifier: GlanceCurvedModifier = GlanceCurvedModifier |
|
curvedSpacer
funcurvedSpacer(curvedModifier: GlanceCurvedModifier = GlanceCurvedModifier): Unit
A simple spacer used to provide padding between adjacent elements in a CurvedRow.
| Parameters | |
|---|---|
curvedModifier: GlanceCurvedModifier = GlanceCurvedModifier |
|
curvedText
funcurvedText(
text: String,
curvedModifier: GlanceCurvedModifier = GlanceCurvedModifier,
style: CurvedTextStyle? = null
): Unit
A text element which will draw curved text. This is only valid as a direct descendant of a CurvedRow
Note: The sweepAngle/thickness from curvedModifier is ignored by CurvedText, its size is measured with the set text and text style
| Parameters | |
|---|---|
text: String |
The text to render. |
curvedModifier: GlanceCurvedModifier = GlanceCurvedModifier |
|
style: CurvedTextStyle? = null |
The style to use for the Text. |