| 8672 | } |
| 8673 | |
| 8674 | void ImGui::SetNextWindowSize(const ImVec2& size, ImGuiCond cond) |
| 8675 | { |
| 8676 | ImGuiContext& g = *GImGui; |
| 8677 | IM_ASSERT(cond == 0 || ImIsPowerOfTwo(cond)); // Make sure the user doesn't attempt to combine multiple condition flags. |
| 8678 | g.NextWindowData.HasFlags |= ImGuiNextWindowDataFlags_HasSize; |
| 8679 | g.NextWindowData.SizeVal = size; |
| 8680 | g.NextWindowData.SizeCond = cond ? cond : ImGuiCond_Always; |
| 8681 | } |
| 8682 | |
| 8683 | // For each axis: |
| 8684 | // - 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