MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / SetNextWindowSizeConstraints

Method SetNextWindowSizeConstraints

KBotExt/imgui/imgui.cpp:7543–7550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7541}
7542
7543void ImGui::SetNextWindowSizeConstraints(const ImVec2& size_min, const ImVec2& size_max, ImGuiSizeCallback custom_callback, void* custom_callback_user_data)
7544{
7545 ImGuiContext& g = *GImGui;
7546 g.NextWindowData.Flags |= ImGuiNextWindowDataFlags_HasSizeConstraint;
7547 g.NextWindowData.SizeConstraintRect = ImRect(size_min, size_max);
7548 g.NextWindowData.SizeCallback = custom_callback;
7549 g.NextWindowData.SizeCallbackUserData = custom_callback_user_data;
7550}
7551
7552// Content size = inner scrollable rectangle, padded with WindowPadding.
7553// SetNextWindowContentSize(ImVec2(100,100) + ImGuiWindowFlags_AlwaysAutoResize will always allow submitting a 100x100 item.

Callers

nothing calls this directly

Calls 1

ImRectFunction · 0.70

Tested by

no test coverage detected