GenericShape
-
Cmn
class GenericShape : Shape
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( |
Cmn
|
open operator Boolean |
Cmn
|
|
open Int |
hashCode() |
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 |
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. |