Interface

CurvedScope

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

Source set: Android

Deprecated

glance-wear-tiles is deprecated and will be removed

Added in 1.0.0-alpha07

Deprecated in 1.0.0-alpha07

@JvmDefaultWithCompatibility

@CurvedScopeMarker
public interface CurvedScope

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

Functions

curvedComposable

Added in 1.0.0-alpha07

Deprecated in 1.0.0-alpha07

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.

curvedText

Added in 1.0.0-alpha07

Deprecated in 1.0.0-alpha07

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.

curvedLine

Added in 1.0.0-alpha07

Deprecated in 1.0.0-alpha07

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.

curvedSpacer

Added in 1.0.0-alpha07

Deprecated in 1.0.0-alpha07

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.