diff --git a/imgui/generator/src/main/cpp/cpp-source/custom/ImGuiCustom.h b/imgui/generator/src/main/cpp/cpp-source/custom/ImGuiCustom.h index b710eb31..489e411f 100644 --- a/imgui/generator/src/main/cpp/cpp-source/custom/ImGuiCustom.h +++ b/imgui/generator/src/main/cpp/cpp-source/custom/ImGuiCustom.h @@ -333,7 +333,7 @@ class ImGui { static bool TreeNodeExV(const char* str_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args) { return im::TreeNodeExV(str_id, flags, fmt, args); } static bool TreeNodeExV_2(const void* ptr_id, ImGuiTreeNodeFlags flags, const char* fmt, va_list args) { return im::TreeNodeExV(ptr_id, flags, fmt, args); } static void TreePush(const char* str_id) { im::TreePush(str_id); } -// static void TreePush_2(const void* ptr_id) { im::TreePush(ptr_id); } + static void TreePush_2(int id) { im::TreePush(&id); } static void TreePop() { im::TreePop(); } static float GetTreeNodeToLabelSpacing() { return im::GetTreeNodeToLabelSpacing(); } static bool CollapsingHeader(const char* label, ImGuiTreeNodeFlags flags = 0) { return im::CollapsingHeader(label, flags); } diff --git a/imgui/generator/src/main/cpp/imgui.idl b/imgui/generator/src/main/cpp/imgui.idl index 20c67758..db86c4cc 100644 --- a/imgui/generator/src/main/cpp/imgui.idl +++ b/imgui/generator/src/main/cpp/imgui.idl @@ -319,7 +319,7 @@ interface ImGui { //// static boolean TreeNodeExV([Const] DOMString str_id, ImGuiTreeNodeFlags flags, [Const] DOMString fmt, DOMString args); //// static boolean TreeNodeExV_2([Const] any ptr_id, ImGuiTreeNodeFlags flags, [Const] DOMString fmt, DOMString args); static void TreePush([Const] DOMString str_id); -// static void TreePush_2([Const] any ptr_id); + static void TreePush_2(long id); static void TreePop(); static float GetTreeNodeToLabelSpacing(); static boolean CollapsingHeader([Const] DOMString label, optional ImGuiTreeNodeFlags flags);