mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-15 00:44:20 +00:00
Added BeginChild() variant that takes an ImGuiID
This commit is contained in:
parent
c6d42b1a54
commit
8532da3f52
2 changed files with 8 additions and 0 deletions
|
|
@ -2464,6 +2464,13 @@ void ImGui::EndTooltip()
|
|||
ImGui::End();
|
||||
}
|
||||
|
||||
void ImGui::BeginChild(ImGuiID id, ImVec2 size, bool border, ImGuiWindowFlags extra_flags)
|
||||
{
|
||||
char str_id[32];
|
||||
ImFormatString(str_id, IM_ARRAYSIZE(str_id), "child_%x", id);
|
||||
ImGui::BeginChild(str_id, size, border, extra_flags);
|
||||
}
|
||||
|
||||
void ImGui::BeginChild(const char* str_id, ImVec2 size, bool border, ImGuiWindowFlags extra_flags)
|
||||
{
|
||||
ImGuiState& g = *GImGui;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue