yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
yaze::gui::SizeConstraints Struct Reference

Returns min/max size pair suitable for ImGui::SetNextWindowSizeConstraints. More...

#include <ui_config.h>

Public Attributes

ImVec2 min_size
 
ImVec2 max_size
 

Detailed Description

Returns min/max size pair suitable for ImGui::SetNextWindowSizeConstraints.

The minimum is clamped so the window never shrinks below |min_size| and the maximum is capped at |max_factor| of the viewport in each dimension.

Usage: auto [lo, hi] = ConstrainToViewport(ImVec2(300, 200)); ImGui::SetNextWindowSizeConstraints(lo, hi);

Definition at line 125 of file ui_config.h.

Member Data Documentation

◆ min_size

ImVec2 yaze::gui::SizeConstraints::min_size

Definition at line 126 of file ui_config.h.

◆ max_size

ImVec2 yaze::gui::SizeConstraints::max_size

Definition at line 127 of file ui_config.h.


The documentation for this struct was generated from the following file: