MCPcopy Create free account
hub / github.com/DISTRHO/Cardinal / BeginChildFrame

Method BeginChildFrame

plugins/Cardinal/src/DearImGui/imgui.cpp:5244–5256  ·  view source on GitHub ↗

Helper to create a child window / scrolling region that looks like a normal widget frame.

Source from the content-addressed store, hash-verified

5242
5243// Helper to create a child window / scrolling region that looks like a normal widget frame.
5244bool ImGui::BeginChildFrame(ImGuiID id, const ImVec2& size, ImGuiWindowFlags extra_flags)
5245{
5246 ImGuiContext& g = *GImGui;
5247 const ImGuiStyle& style = g.Style;
5248 PushStyleColor(ImGuiCol_ChildBg, style.Colors[ImGuiCol_FrameBg]);
5249 PushStyleVar(ImGuiStyleVar_ChildRounding, style.FrameRounding);
5250 PushStyleVar(ImGuiStyleVar_ChildBorderSize, style.FrameBorderSize);
5251 PushStyleVar(ImGuiStyleVar_WindowPadding, style.FramePadding);
5252 bool ret = BeginChild(id, size, true, ImGuiWindowFlags_NoMove | ImGuiWindowFlags_AlwaysUseWindowPadding | extra_flags);
5253 PopStyleVar(3);
5254 PopStyleColor();
5255 return ret;
5256}
5257
5258void ImGui::EndChildFrame()
5259{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected