GenericShape


Creates Shape defined by applying the provided builder on a Path.

Summary

Public constructors

GenericShape(builder: Path.(size: Size, layoutDirection: LayoutDirection) -> Unit)
Cmn

Public functions

open Outline
createOutline(
    size: Size,
    layoutDirection: LayoutDirection,
    density: Density
)

Creates Outline of this shape for the given size.

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

Public constructors

GenericShape

GenericShape(builder: Path.(size: Size, layoutDirection: LayoutDirection) -> Unit)
Parameters
builder: Path.(size: Size, layoutDirection: LayoutDirection) -> Unit

the builder lambda to apply on a Path

Public functions

createOutline

open fun createOutline(
    size: Size,
    layoutDirection: LayoutDirection,
    density: Density
): Outline

Creates Outline of this shape for the given size.

Parameters
size: Size

the size of the shape boundary.

layoutDirection: LayoutDirection

the current layout direction.

density: Density

the current density of the screen.

Returns
Outline

Outline of this shape for the given size.

equals

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

hashCode

open fun hashCode(): Int