Returns min/max size pair suitable for ImGui::SetNextWindowSizeConstraints. More...
#include <ui_config.h>
Public Attributes | |
| ImVec2 | min_size |
| ImVec2 | max_size |
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.
| ImVec2 yaze::gui::SizeConstraints::min_size |
Definition at line 126 of file ui_config.h.
| ImVec2 yaze::gui::SizeConstraints::max_size |
Definition at line 127 of file ui_config.h.