CurvedScope

Interface
Android
Deprecated glance-wear-tiles is deprecated and will be removed
@JvmDefaultWithCompatibility

@CurvedScopeMarker
public interface CurvedScope

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

Functions

public fun curvedComposable(rotateContent: Boolean = true, content: @Composable () -> Unit)

Component that allows normal composable to be part of a CurvedRow

Parameters

rotateContent whether to rotate the composable at a tangent to the circle
content The content of this curvedComposable.
public fun curvedText(
        text: String,
        curvedModifier: GlanceCurvedModifier = GlanceCurvedModifier,
        style: CurvedTextStyle? = null,
    )

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 The text to render.
curvedModifier GlanceCurvedModifier to apply to this layout element.
style The style to use for the Text.
public fun curvedLine(
        color: ColorProvider,
        curvedModifier: GlanceCurvedModifier = GlanceCurvedModifier,
    )

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

Parameters

color The color of this line.
curvedModifier GlanceCurvedModifier to apply to this layout element.
public fun curvedSpacer(curvedModifier: GlanceCurvedModifier = GlanceCurvedModifier)

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

Parameters

curvedModifier GlanceCurvedModifier to apply to this layout element.