ComponentSize

data class ComponentSize(innerSize: Size, padding: Padding)

Stores the whole sizing information of a visual component.

Constructors

ComponentSize
Link copied to clipboard
common
fun ComponentSize(innerSize: Size = Size(.0, .0), padding: Padding = Padding())

Properties

innerSize
Link copied to clipboard
common
val innerSize: Size
The innerSize represents the "irreducible" size of the element, all drawings in this size must be rendered.
padding
Link copied to clipboard
common
val padding: Padding
The padding represents the "overflow" of the element, the drawings "located in the padding" may be rendered or not, depending on the available size.