Layout.preferredSize

The preferred size for this layout.

interface Layout
const
preferredSize
(,,
const Widget skipped = null
)

Parameters

ctx NanoContext

The NanoVG context being used for drawing.

widget Widget

The Widget this layout's preferred size is considering.

Return Value

Type: Vector2i

The preferred size, accounting for things such as spacing, padding for icons, etc.

Meta