Source set: Common
public sealed class Outline
Defines a simple shape, used for bounding graphical regions.
Can be used for defining a shape of the component background, a shape of shadows cast by the component, or to clip the contents.
Properties
bounds
Source set: Common
public abstract val bounds: Rect
Return the bounds of the outline
Members
Rectangle
Source set: Common
public class Rectangle(public val rect: Rect) : Outline()
Rectangular area.
Properties
bounds
Source set: Common
override val bounds: Rect
Functions
equals
Source set: Common
override fun equals(other: Any?): Boolean
hashCode
Source set: Common
override fun hashCode(): Int
Rounded
Source set: Common
public class Rounded(public val roundRect: RoundRect) : Outline()
Rectangular area with rounded corners.
Properties
bounds
Source set: Common
override val bounds: Rect
Functions
equals
Source set: Common
override fun equals(other: Any?): Boolean
hashCode
Source set: Common
override fun hashCode(): Int
Generic
Source set: Common
public class Generic(public val path: Path) : Outline()
An area defined as a path.
Note that if you use this path for drawing the shadow on Android versions less than 10 the shadow will not be drawn for the concave paths. See Path.isConvex.
Properties
bounds
Source set: Common
override val bounds: Rect