Struct WindowProperties::LayoutConstraints#

Nested Relationships#

This struct is a nested type of Struct WindowAdapter::WindowProperties.

Struct Documentation#

struct LayoutConstraints

This struct describes the layout constraints of a window.

It is the return value of WindowProperties::layout_constraints().

Public Members

std::optional<LogicalSize> min

This represents the minimum size the window can be. If this is set, the window should not be able to be resized smaller than this size. If it is left unset, there is no minimum size.

std::optional<LogicalSize> max

This represents the maximum size the window can be. If this is set, the window should not be able to be resized larger than this size. If it is left unset, there is no maximum size.

LogicalSize preferred

This represents the preferred size of the window. This is the size the window should have by default