AbsoluteCutCornerShape


A shape describing the rectangle with cut corners. Corner size is representing the cut length - the size of both legs of the cut's right triangle.

This shape will not automatically mirror the corner sizes in LayoutDirection.Rtl, use CutCornerShape for the layout direction aware version of this shape.

Summary

Public constructors

AbsoluteCutCornerShape(
    topLeft: CornerSize,
    topRight: CornerSize,
    bottomRight: CornerSize,
    bottomLeft: CornerSize
)
Cmn

Public functions

open AbsoluteCutCornerShape
copy(
    topStart: CornerSize,
    topEnd: CornerSize,
    bottomEnd: CornerSize,
    bottomStart: CornerSize
)

Creates a copy of this Shape with a new corner sizes.

Cmn
open Outline
createOutline(
    size: Size,
    topStart: Float,
    topEnd: Float,
    bottomEnd: Float,
    bottomStart: Float,
    layoutDirection: LayoutDirection
)

Creates Outline of this shape for the given size.

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

Inherited functions

From androidx.compose.foundation.shape.CornerBasedShape
CornerBasedShape

Creates a copy of this Shape with a new corner size.

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

Creates Outline of this shape for the given size.

Cmn

Inherited properties

From androidx.compose.foundation.shape.CornerBasedShape
CornerSize

a size of the bottom end corner

Cmn
CornerSize

a size of the bottom start corner

Cmn
CornerSize

a size of the top end corner

Cmn
CornerSize

a size of the top start corner

Cmn

Public constructors

AbsoluteCutCornerShape

AbsoluteCutCornerShape(
    topLeft: CornerSize,
    topRight: CornerSize,
    bottomRight: CornerSize,
    bottomLeft: CornerSize
)
Parameters
topLeft: CornerSize

a size of the top left corner

topRight: CornerSize

a size of the top right corner

bottomRight: CornerSize

a size of the bottom right corner

bottomLeft: CornerSize

a size of the bottom left corner

Public functions

copy

open fun copy(
    topStart: CornerSize,
    topEnd: CornerSize,
    bottomEnd: CornerSize,
    bottomStart: CornerSize
): AbsoluteCutCornerShape

Creates a copy of this Shape with a new corner sizes.

Parameters
topStart: CornerSize

a size of the top start corner

topEnd: CornerSize

a size of the top end corner

bottomEnd: CornerSize

a size of the bottom end corner

bottomStart: CornerSize

a size of the bottom start corner

createOutline

open fun createOutline(
    size: Size,
    topStart: Float,
    topEnd: Float,
    bottomEnd: Float,
    bottomStart: Float,
    layoutDirection: LayoutDirection
): Outline

Creates Outline of this shape for the given size.

Parameters
size: Size

the size of the shape boundary.

topStart: Float

the resolved size of the top start corner

topEnd: Float

the resolved size for the top end corner

bottomEnd: Float

the resolved size for the bottom end corner

bottomStart: Float

the resolved size for the bottom start corner

layoutDirection: LayoutDirection

the current layout direction.

equals

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

hashCode

open fun hashCode(): Int

toString

open fun toString(): String