| 8619 | } |
| 8620 | |
| 8621 | void ImGui::SetNextWindowSize(const ImVec2& size, ImGuiCond cond) |
| 8622 | { |
| 8623 | ImGuiContext& g = *GImGui; |
| 8624 | IM_ASSERT(cond == 0 || ImIsPowerOfTwo(cond)); // Make sure the user doesn't attempt to combine multiple condition flags. |
| 8625 | g.NextWindowData.HasFlags |= ImGuiNextWindowDataFlags_HasSize; |
| 8626 | g.NextWindowData.SizeVal = size; |
| 8627 | g.NextWindowData.SizeCond = cond ? cond : ImGuiCond_Always; |
| 8628 | } |
| 8629 | |
| 8630 | // For each axis: |
| 8631 | // - Use 0.0f as min or FLT_MAX as max if you don't want limits, e.g. size_min = (500.0f, 0.0f), size_max = (FLT_MAX, FLT_MAX) sets a minimum width. |
nothing calls this directly
no test coverage detected