Struct WindowAdapter::WindowProperties

Nested Relationships

This struct is a nested type of Class WindowAdapter.

Nested Types

Struct Documentation

struct WindowProperties

This struct contains getters that provide access to properties of the Window element, and is used with WindowAdapter::update_window_properties().

Public Functions

inline SharedString title() const

Returns the title of the window.

inline Brush background() const

Returns the background brush of the window.

inline bool fullscreen() const

Deprecated:

Use is_fullscreen() instead

inline bool is_fullscreen() const

Returns true if the window should be shown fullscreen; false otherwise.

inline bool is_minimized() const

Returns true if the window should be minimized; false otherwise.

inline bool is_maximized() const

Returns true if the window should be maximized; false otherwise.

inline LayoutConstraints layout_constraints() const

Returns the layout constraints of the window.

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