Layout

class Layout(source)

The result of the layout of an element. Sizes are border-box sizes: they include the padding and the border.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

the width of the border in pixels, resolved by the layout

Link copied to clipboard
val bounds: Rectangle
Link copied to clipboard
val boundsAtOrigin: Rectangle
Link copied to clipboard
val contentBounds: Rectangle

the area inside the border and the padding

Link copied to clipboard
val contentBoundsAtOrigin: Rectangle
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

the padding in pixels, resolved by the layout

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The height of the content including the padding, for elements that scroll their content

Link copied to clipboard

The width of the content including the padding, for elements that scroll their content

Link copied to clipboard
var zIndex: Int

Functions

Link copied to clipboard
fun boundsAtOriginPadded(computedStyle: StyleSheet): Rectangle
Link copied to clipboard
open override fun toString(): String