WindowSizeConstraints

external interface WindowSizeConstraints(source)

Inner size constraints for a window, see {@link Window.setSizeConstraints}.

Unlike {@link Window.setMinSize} and {@link Window.setMaxSize}, each dimension is independent: you can constrain only the width and leave the height free.

All values are in logical pixels. Leave a field out (or set it to undefined) to remove that constraint.

Since

2.0.0

Properties

Link copied to clipboard
abstract external var maxHeight: Double?

The maximum height, in logical pixels.

Link copied to clipboard
abstract external var maxWidth: Double?

The maximum width, in logical pixels.

Link copied to clipboard
abstract external var minHeight: Double?

The minimum height, in logical pixels.

Link copied to clipboard
abstract external var minWidth: Double?

The minimum width, in logical pixels.