Skip to content

Commit

Permalink
fix emscripten overloading issue
Browse files Browse the repository at this point in the history
  • Loading branch information
xpenatan committed Dec 2, 2024
1 parent 6a10fc1 commit a56c3b9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions extensions/imlayout/imlayout-build/src/main/cpp/imlayout.idl
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ interface ImLayout {
// Tree
static void BeginGlobalTree();
static void EndGlobalTree();
static void BeginTree([Const]DOMString treeIdStr);
static void BeginTree(long id);
static void BeginTree_1([Const]DOMString treeIdStr);
static void BeginTree_2(long id);
static void EndTree();
static void BeginTreeLayout(float height, boolean isLeaf, boolean isSelected);
static void BeginTreeLayout(float height, boolean isLeaf, boolean isSelected, boolean isOpen);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -978,13 +978,13 @@ void ImLayout::EndGlobalTree() {
IS_GLOBAL_TREE = false;
}

void ImLayout::BeginTree(const char* treeIdStr) {
void ImLayout::BeginTree_1(const char* treeIdStr) {
ImGuiWindow* window = ImGui::GetCurrentWindow();
ImGuiID id = window->GetID(treeIdStr);
BeginTree(id);
}

void ImLayout::BeginTree(int id) {
void ImLayout::BeginTree_2(int id) {
ImGuiWindow* window = ImGui::GetCurrentWindow();
ImGuiStorage* storage = ImGui::GetStateStorage();
int treeIdBefore = storage->GetInt(ImGui::GetID(KEY_TREE_ID), -1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ class ImLayout {
// Tree
static void BeginGlobalTree();
static void EndGlobalTree();
static void BeginTree(const char* treeIdStr);
static void BeginTree(int id);
static void BeginTree_1(const char* treeIdStr);
static void BeginTree_2(int id);
static void EndTree();
static void BeginTreeLayout(float height, bool isLeaf, bool isSelected);
static void BeginTreeLayout(float height, bool isLeaf, bool isSelected, bool isOpen);
Expand Down

0 comments on commit a56c3b9

Please sign in to comment.