← Standard library

Size

struct Size
import Size from Wax;

A layout width and height in logical points. Construction stores the supplied values without clamping or validation.

Layout.wax:24

Members

widthfield

public float width

Horizontal extent in logical points.

Layout.wax:28

heightfield

public float height

Vertical extent in logical points.

Layout.wax:32

constructorconstructor

public constructor (float width, float height)

Stores the supplied width and height.

Layout.wax:37

Zerogetter

public static get Zero() : Size

A size with both dimensions zero.

Layout.wax:45

ToStringmethod

public fn ToString() : string

Provided by the compiler.

ToStringBuffermethod

public fn ToStringBuffer(StringBuilder builder) : int32

Provided by the compiler.