Corner

sealed class Corner

A class used to specify the size and look of a given shape corner.

Parameters

cornerTreatment

affects the final appearance of the corner.

Inheritors

Types

Link copied to clipboard
class Absolute(val sizeDp: Float, cornerTreatment: CornerTreatment) : Corner

Defines an absolute size for a corner (in dp).

Link copied to clipboard
object Companion
Link copied to clipboard
class Relative(val percentage: Int, cornerTreatment: CornerTreatment) : Corner

Defines a relative size for a corner (in percent).

Properties

Link copied to clipboard

Functions

Link copied to clipboard
abstract fun getCornerSize(availableCornerSize: Float, density: Float): Float

Calculates the size of the corner.