class RemoteOutline.Rounded : RemoteOutline


Rectangular area with rounded corners.

Summary

Public constructors

Rounded(
    topStart: RemoteFloat,
    topEnd: RemoteFloat,
    bottomEnd: RemoteFloat,
    bottomStart: RemoteFloat,
    offset: RemoteOffset,
    size: RemoteSize?
)

Public properties

RemoteFloat

the resolved corner radius of the bottom end corner

RemoteFloat

the resolved corner radius of the bottom start corner

RemoteOffset

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)

RemoteSize?

the dimensions (width and height) of the rounded rectangle (e.g. (width - strokeWidth, height - strokeWidth) for an inset stroked border).

RemoteFloat

the resolved corner radius of the top end corner

RemoteFloat

the resolved corner radius of the top start corner

Public constructors

Rounded

Added in 1.0.0-alpha20
Rounded(
    topStart: RemoteFloat,
    topEnd: RemoteFloat,
    bottomEnd: RemoteFloat,
    bottomStart: RemoteFloat,
    offset: RemoteOffset = RemoteOffset.Zero,
    size: RemoteSize? = null
)
Parameters
topStart: RemoteFloat

the resolved corner radius of the top start corner

topEnd: RemoteFloat

the resolved corner radius of the top end corner

bottomEnd: RemoteFloat

the resolved corner radius of the bottom end corner

bottomStart: RemoteFloat

the resolved corner radius of the bottom start corner

offset: RemoteOffset = RemoteOffset.Zero

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: RemoteSize? = null

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.

Public properties

bottomEnd

Added in 1.0.0-alpha20
val bottomEnd: RemoteFloat

the resolved corner radius of the bottom end corner

bottomStart

Added in 1.0.0-alpha20
val bottomStart: RemoteFloat

the resolved corner radius of the bottom start corner

offset

Added in 1.0.0-alpha20
val offset: RemoteOffset

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

Added in 1.0.0-alpha20
val size: RemoteSize?

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.

topEnd

Added in 1.0.0-alpha20
val topEnd: RemoteFloat

the resolved corner radius of the top end corner

topStart

Added in 1.0.0-alpha20
val topStart: RemoteFloat

the resolved corner radius of the top start corner