diff --git a/bind-imgui.d.ts b/bind-imgui.d.ts index c286938..a2fbe53 100644 --- a/bind-imgui.d.ts +++ b/bind-imgui.d.ts @@ -4,7 +4,7 @@ // declare const Module: ImGuiModule; export default Module; // emcc -s MODULARIZE=1 -export default function Module(Module?: Module): Module; +export default function Module(Module?: Partial): Module; export interface mallinfo { arena: number; @@ -802,6 +802,11 @@ ImDrawVertUVOffset: number; ImDrawVertColOffset: number; +ImGuiTextEditCallbackData: { new(): ImGuiTextEditCallbackData; }; +ImGuiSizeCallbackData: { new(): ImGuiSizeCallbackData; }; +ImGuiListClipper: { new(items_count: number, items_height: number): ImGuiListClipper; }; +ImGuiStyle: { new(): ImGuiStyle; }; + // Context creation and access, if you want to use multiple context, share context between modules (e.g. DLL). // All contexts share a same ImFontAtlas by default. If you want different font atlas, you can new() them and overwrite the GetIO().Fonts variable of an ImGui context. // All those functions are not reliant on the current context.