MCPcopy Create free account
hub / github.com/Wemino/MarkerPatch / SetNextWindowContentSize

Method SetNextWindowContentSize

include/imgui/imgui.cpp:8698–8703  ·  view source on GitHub ↗

Content size = inner scrollable rectangle, padded with WindowPadding. SetNextWindowContentSize(ImVec2(100,100)) + ImGuiWindowFlags_AlwaysAutoResize will always allow submitting a 100x100 item.

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

ImTruncFunction · 0.85

Tested by

no test coverage detected