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

rotateContentwhether to rotate the composable at a tangent to the circle
contentThe 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

textThe text to render.
curvedModifierGlanceCurvedModifier to apply to this layout element.
styleThe 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

colorThe color of this line.
curvedModifierGlanceCurvedModifier 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

curvedModifierGlanceCurvedModifier to apply to this layout element.