RippleThemeConfiguration.Focus.InsetRing

class RippleThemeConfiguration.Focus.InsetRing : RippleThemeConfiguration.Focus


An inset ring focus indication. This is drawn using two strokes, an outer stroke and an inner stroke. The inner stroke is drawn first, followed by the outer stroke.

All stroke insets and widths must be non-negative, and the outer and inner strokes must overlap such that the outer stroke is not inset further than the inner stroke (outerStrokeInset <= innerStrokeInset), the inner stroke starts before or at the inner edge of the outer stroke (innerStrokeInset <= outerStrokeInset + outerStrokeWidth), and the inner stroke extends at least as far inward as the outer stroke (outerStrokeInset + outerStrokeWidth <= innerStrokeInset + innerStrokeWidth).

As this describes the overall ripple theme, and the inset ring colors are use-site specific, the colors are configured in RippleConfiguration.Focus.InsetRing instead.

Summary

Public constructors

InsetRing(
    outerStrokeInset: Dp,
    outerStrokeWidth: Dp,
    innerStrokeInset: Dp,
    innerStrokeWidth: Dp
)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

Dp

the amount the inner stroke is inset

Dp

the width of the inner stroke

Dp

the amount the outer stroke is inset

Dp

the width of the outer stroke

Public constructors

InsetRing

Added in 1.8.0-alpha03
InsetRing(
    outerStrokeInset: Dp,
    outerStrokeWidth: Dp,
    innerStrokeInset: Dp,
    innerStrokeWidth: Dp
)
Parameters
outerStrokeInset: Dp

the amount the outer stroke is inset

outerStrokeWidth: Dp

the width of the outer stroke

innerStrokeInset: Dp

the amount the inner stroke is inset

innerStrokeWidth: Dp

the width of the inner stroke

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

innerStrokeInset

val innerStrokeInset: Dp

the amount the inner stroke is inset

innerStrokeWidth

val innerStrokeWidth: Dp

the width of the inner stroke

outerStrokeInset

val outerStrokeInset: Dp

the amount the outer stroke is inset

outerStrokeWidth

val outerStrokeWidth: Dp

the width of the outer stroke