Helper to create a child window / scrolling region that looks like a normal widget frame.
| 5242 | |
| 5243 | // Helper to create a child window / scrolling region that looks like a normal widget frame. |
| 5244 | bool 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 | |
| 5258 | void ImGui::EndChildFrame() |
| 5259 | { |
nothing calls this directly
no outgoing calls
no test coverage detected