diff --git a/imgui.js b/imgui.js index 6aad593..7202b6a 100644 --- a/imgui.js +++ b/imgui.js @@ -102,11 +102,11 @@ if (ref === null) { bind.ShowStyleEditor(null); } - else if (ref.internal instanceof Bind.ImGuiStyle) { + else if (ref.internal instanceof bind.ImGuiStyle) { bind.ShowStyleEditor(ref.internal); } else { - const native = new Bind.ImGuiStyle(); + const native = new bind.ImGuiStyle(); const wrap = new ImGuiStyle(native); wrap.Copy(ref); bind.ShowStyleEditor(native); @@ -130,11 +130,11 @@ if (dst === null) { bind.StyleColorsClassic(null); } - else if (dst.internal instanceof Bind.ImGuiStyle) { + else if (dst.internal instanceof bind.ImGuiStyle) { bind.StyleColorsClassic(dst.internal); } else { - const native = new Bind.ImGuiStyle(); + const native = new bind.ImGuiStyle(); const wrap = new ImGuiStyle(native); wrap.Copy(dst); bind.StyleColorsClassic(native); @@ -148,11 +148,11 @@ if (dst === null) { bind.StyleColorsDark(null); } - else if (dst.internal instanceof Bind.ImGuiStyle) { + else if (dst.internal instanceof bind.ImGuiStyle) { bind.StyleColorsDark(dst.internal); } else { - const native = new Bind.ImGuiStyle(); + const native = new bind.ImGuiStyle(); const wrap = new ImGuiStyle(native); wrap.Copy(dst); bind.StyleColorsDark(native); @@ -166,11 +166,11 @@ if (dst === null) { bind.StyleColorsLight(null); } - else if (dst.internal instanceof Bind.ImGuiStyle) { + else if (dst.internal instanceof bind.ImGuiStyle) { bind.StyleColorsLight(dst.internal); } else { - const native = new Bind.ImGuiStyle(); + const native = new bind.ImGuiStyle(); const wrap = new ImGuiStyle(native); wrap.Copy(dst); bind.StyleColorsLight(native); @@ -2218,7 +2218,7 @@ // If you don't specify an items_height, you NEED to call Step(). If you specify items_height you may call the old Begin()/End() api directly, but prefer calling Step(). // ImGuiListClipper(int items_count = -1, float items_height = -1.0f) { Begin(items_count, items_height); } // NB: Begin() initialize every fields (as we allow user to call Begin/End multiple times on a same instance if they want). constructor(items_count = -1, items_height = -1.0) { - this.native = new Bind.ImGuiListClipper(items_count, items_height); + this.native = new bind.ImGuiListClipper(items_count, items_height); } // ~ImGuiListClipper() { IM_ASSERT(ItemsCount == -1); } // Assert if user forgot to call End() or Step() until false. delete() { @@ -2732,7 +2732,7 @@ this.Colors[i] = new ImVec4(); } const _this = new ImGuiStyle(this); - const native = new Bind.ImGuiStyle(); + const native = new bind.ImGuiStyle(); const _that = new ImGuiStyle(native); _that.Copy(_this); bind.StyleColorsClassic(native); @@ -2753,7 +2753,7 @@ setColorsAt(index, color) { this.Colors[index].Copy(color); return true; } ScaleAllSizes(scale_factor) { const _this = new ImGuiStyle(this); - const native = new Bind.ImGuiStyle(); + const native = new bind.ImGuiStyle(); const _that = new ImGuiStyle(native); _that.Copy(_this); native.ScaleAllSizes(scale_factor); diff --git a/imgui.js b/imgui.js index 6aad593..7202b6a 100644 --- a/imgui.js +++ b/imgui.js @@ -102,11 +102,11 @@ if (ref === null) { bind.ShowStyleEditor(null); } - else if (ref.internal instanceof Bind.ImGuiStyle) { + else if (ref.internal instanceof bind.ImGuiStyle) { bind.ShowStyleEditor(ref.internal); } else { - const native = new Bind.ImGuiStyle(); + const native = new bind.ImGuiStyle(); const wrap = new ImGuiStyle(native); wrap.Copy(ref); bind.ShowStyleEditor(native); @@ -130,11 +130,11 @@ if (dst === null) { bind.StyleColorsClassic(null); } - else if (dst.internal instanceof Bind.ImGuiStyle) { + else if (dst.internal instanceof bind.ImGuiStyle) { bind.StyleColorsClassic(dst.internal); } else { - const native = new Bind.ImGuiStyle(); + const native = new bind.ImGuiStyle(); const wrap = new ImGuiStyle(native); wrap.Copy(dst); bind.StyleColorsClassic(native); @@ -148,11 +148,11 @@ if (dst === null) { bind.StyleColorsDark(null); } - else if (dst.internal instanceof Bind.ImGuiStyle) { + else if (dst.internal instanceof bind.ImGuiStyle) { bind.StyleColorsDark(dst.internal); } else { - const native = new Bind.ImGuiStyle(); + const native = new bind.ImGuiStyle(); const wrap = new ImGuiStyle(native); wrap.Copy(dst); bind.StyleColorsDark(native); @@ -166,11 +166,11 @@ if (dst === null) { bind.StyleColorsLight(null); } - else if (dst.internal instanceof Bind.ImGuiStyle) { + else if (dst.internal instanceof bind.ImGuiStyle) { bind.StyleColorsLight(dst.internal); } else { - const native = new Bind.ImGuiStyle(); + const native = new bind.ImGuiStyle(); const wrap = new ImGuiStyle(native); wrap.Copy(dst); bind.StyleColorsLight(native); @@ -2218,7 +2218,7 @@ // If you don't specify an items_height, you NEED to call Step(). If you specify items_height you may call the old Begin()/End() api directly, but prefer calling Step(). // ImGuiListClipper(int items_count = -1, float items_height = -1.0f) { Begin(items_count, items_height); } // NB: Begin() initialize every fields (as we allow user to call Begin/End multiple times on a same instance if they want). constructor(items_count = -1, items_height = -1.0) { - this.native = new Bind.ImGuiListClipper(items_count, items_height); + this.native = new bind.ImGuiListClipper(items_count, items_height); } // ~ImGuiListClipper() { IM_ASSERT(ItemsCount == -1); } // Assert if user forgot to call End() or Step() until false. delete() { @@ -2732,7 +2732,7 @@ this.Colors[i] = new ImVec4(); } const _this = new ImGuiStyle(this); - const native = new Bind.ImGuiStyle(); + const native = new bind.ImGuiStyle(); const _that = new ImGuiStyle(native); _that.Copy(_this); bind.StyleColorsClassic(native); @@ -2753,7 +2753,7 @@ setColorsAt(index, color) { this.Colors[index].Copy(color); return true; } ScaleAllSizes(scale_factor) { const _this = new ImGuiStyle(this); - const native = new Bind.ImGuiStyle(); + const native = new bind.ImGuiStyle(); const _that = new ImGuiStyle(native); _that.Copy(_this); native.ScaleAllSizes(scale_factor); diff --git a/imgui.ts b/imgui.ts index cd6965d..00bc459 100644 --- a/imgui.ts +++ b/imgui.ts @@ -890,7 +890,7 @@ // If you don't specify an items_height, you NEED to call Step(). If you specify items_height you may call the old Begin()/End() api directly, but prefer calling Step(). // ImGuiListClipper(int items_count = -1, float items_height = -1.0f) { Begin(items_count, items_height); } // NB: Begin() initialize every fields (as we allow user to call Begin/End multiple times on a same instance if they want). constructor(items_count: number = -1, items_height: number = -1.0) { - this.native = new Bind.ImGuiListClipper(items_count, items_height); + this.native = new bind.ImGuiListClipper(items_count, items_height); } // ~ImGuiListClipper() { IM_ASSERT(ItemsCount == -1); } // Assert if user forgot to call End() or Step() until false. public delete(): void { @@ -1506,7 +1506,7 @@ this.Colors[i] = new ImVec4(); } const _this = new ImGuiStyle(this); - const native = new Bind.ImGuiStyle(); + const native = new bind.ImGuiStyle(); const _that = new ImGuiStyle(native); _that.Copy(_this); bind.StyleColorsClassic(native); @@ -1516,7 +1516,7 @@ public ScaleAllSizes(scale_factor: number): void { const _this = new ImGuiStyle(this); - const native = new Bind.ImGuiStyle(); + const native = new bind.ImGuiStyle(); const _that = new ImGuiStyle(native); _that.Copy(_this); native.ScaleAllSizes(scale_factor); @@ -1919,10 +1919,10 @@ export function ShowStyleEditor(ref: ImGuiStyle | null = null): void { if (ref === null) { bind.ShowStyleEditor(null); - } else if (ref.internal instanceof Bind.ImGuiStyle) { + } else if (ref.internal instanceof bind.ImGuiStyle) { bind.ShowStyleEditor(ref.internal); } else { - const native = new Bind.ImGuiStyle(); + const native = new bind.ImGuiStyle(); const wrap = new ImGuiStyle(native); wrap.Copy(ref); bind.ShowStyleEditor(native); @@ -1944,10 +1944,10 @@ export function StyleColorsClassic(dst: ImGuiStyle | null = null): void { if (dst === null) { bind.StyleColorsClassic(null); - } else if (dst.internal instanceof Bind.ImGuiStyle) { + } else if (dst.internal instanceof bind.ImGuiStyle) { bind.StyleColorsClassic(dst.internal); } else { - const native = new Bind.ImGuiStyle(); + const native = new bind.ImGuiStyle(); const wrap = new ImGuiStyle(native); wrap.Copy(dst); bind.StyleColorsClassic(native); @@ -1959,10 +1959,10 @@ export function StyleColorsDark(dst: ImGuiStyle | null = null): void { if (dst === null) { bind.StyleColorsDark(null); - } else if (dst.internal instanceof Bind.ImGuiStyle) { + } else if (dst.internal instanceof bind.ImGuiStyle) { bind.StyleColorsDark(dst.internal); } else { - const native = new Bind.ImGuiStyle(); + const native = new bind.ImGuiStyle(); const wrap = new ImGuiStyle(native); wrap.Copy(dst); bind.StyleColorsDark(native); @@ -1974,10 +1974,10 @@ export function StyleColorsLight(dst: ImGuiStyle | null = null): void { if (dst === null) { bind.StyleColorsLight(null); - } else if (dst.internal instanceof Bind.ImGuiStyle) { + } else if (dst.internal instanceof bind.ImGuiStyle) { bind.StyleColorsLight(dst.internal); } else { - const native = new Bind.ImGuiStyle(); + const native = new bind.ImGuiStyle(); const wrap = new ImGuiStyle(native); wrap.Copy(dst); bind.StyleColorsLight(native);