| 7541 | } |
| 7542 | |
| 7543 | void 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. |