Source set: Android
public sealed class RemoteOutline
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.
Members
Rectangle
Source set: Android
public class Rectangle(public val topLeft: RemoteOffset, public val size: RemoteSize) :
RemoteOutline()
Rectangular area.
Rounded
Source set: Android
public class Rounded(
public val topStart: RemoteFloat,
public val topEnd: RemoteFloat,
public val bottomEnd: RemoteFloat,
public val bottomStart: RemoteFloat,
public val offset: RemoteOffset = RemoteOffset.Zero,
public val size: RemoteSize? = null,
) : RemoteOutline()
Rectangular area with rounded corners.
Parameters
| topStart | the resolved corner radius of the top start corner |
| topEnd | the resolved corner radius of the top end corner |
| bottomEnd | the resolved corner radius of the bottom end corner |
| bottomStart | the resolved corner radius of the bottom start corner |
| offset | the top-left offset of the rounded rectangle bounding box (e.g. (0, 0) for a solid background fill, or (halfStroke, halfStroke) to center a stroked border within the component bounds) |
| size | the dimensions (width and height) of the rounded rectangle (e.g. (width - strokeWidth, height - strokeWidth) for an inset stroked border). If null, defaults to the full canvas width and height. |
Generic
Source set: Android
public class Generic : RemoteOutline
An area defined as a path.
Properties
path
Source set: Android
public val path: RemotePath?