@CurvedScopeMarker
interface CurvedScope


A scope for elements which can only be contained within a CurvedRow.

Summary

Public functions

Unit
curvedComposable(rotateContent: Boolean, content: @Composable () -> Unit)

Component that allows normal composable to be part of a CurvedRow

Unit
curvedLine(color: ColorProvider, curvedModifier: GlanceCurvedModifier)

A line that can be used in a CurvedRow and renders as a curved bar.

Unit

A simple spacer used to provide padding between adjacent elements in a CurvedRow.

Unit
curvedText(
    text: String,
    curvedModifier: GlanceCurvedModifier,
    style: CurvedTextStyle?
)

A text element which will draw curved text.

Public functions

curvedComposable

Added in 1.0.0-alpha06
fun curvedComposable(
    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 curvedComposable.

curvedLine

Added in 1.0.0-alpha06
fun curvedLine(
    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

GlanceCurvedModifier to apply to this layout element.

curvedSpacer

Added in 1.0.0-alpha06
fun curvedSpacer(curvedModifier: GlanceCurvedModifier = GlanceCurvedModifier): Unit

A simple spacer used to provide padding between adjacent elements in a CurvedRow.

Parameters
curvedModifier: GlanceCurvedModifier = GlanceCurvedModifier

GlanceCurvedModifier to apply to this layout element.

curvedText

Added in 1.0.0-alpha06
fun curvedText(
    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

GlanceCurvedModifier to apply to this layout element.

style: CurvedTextStyle? = null

The style to use for the Text.