Content size = inner scrollable rectangle, padded with WindowPadding. SetNextWindowContentSize(ImVec2(100,100)) + ImGuiWindowFlags_AlwaysAutoResize will always allow submitting a 100x100 item.
| 8696 | // Content size = inner scrollable rectangle, padded with WindowPadding. |
| 8697 | // SetNextWindowContentSize(ImVec2(100,100)) + ImGuiWindowFlags_AlwaysAutoResize will always allow submitting a 100x100 item. |
| 8698 | void ImGui::SetNextWindowContentSize(const ImVec2& size) |
| 8699 | { |
| 8700 | ImGuiContext& g = *GImGui; |
| 8701 | g.NextWindowData.HasFlags |= ImGuiNextWindowDataFlags_HasContentSize; |
| 8702 | g.NextWindowData.ContentSizeVal = ImTrunc(size); |
| 8703 | } |
| 8704 | |
| 8705 | void ImGui::SetNextWindowScroll(const ImVec2& scroll) |
| 8706 | { |