Layouter

Constructors

Link copied to clipboard
constructor()

Properties

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

Functions

Link copied to clipboard
fun computeStyles(element: Element)
Link copied to clipboard
fun height(element: Element, width: Double? = null, includeMargins: Boolean = true): Double
Link copied to clipboard
fun layout(element: Element)
Link copied to clipboard
Link copied to clipboard
fun marginBottom(element: Element): Double
Link copied to clipboard
fun marginLeft(element: Element): Double
Link copied to clipboard
fun marginRight(element: Element): Double
Link copied to clipboard
fun marginTop(element: Element): Double
Link copied to clipboard
Link copied to clipboard
fun paddingBottom(element: Element?): Double
Link copied to clipboard
fun paddingLeft(element: Element?): Double
Link copied to clipboard
fun paddingRight(element: Element?): Double
Link copied to clipboard
fun paddingTop(element: Element?): Double
Link copied to clipboard
fun positionChildren(element: Element, knownWidth: Double? = null): Rectangle

Positions the children of the given element based on its computed style and layout properties. This method calculates the layout and screen positions of the element's children, taking into account alignment, spacing, flex, and other layout properties.

Link copied to clipboard
fun width(element: Element, height: Double? = null, includeMargins: Boolean = true): Double