Port debug tools (item picker, flash style color, debug locate, DebugDraw*, keyboard preview, debug break, DrawCmd mesh view), context hooks, SetContextName, AddInputCharactersUTF8, sanity checks, window resize ids, Register/UnregisterUserTexture, SetPixelDensity, TestShortcutRouting, DemoMarker; InputTextState selection API (fixes undo crash, callbacks get 0-based positions), ShortcutsForCancel (Esc/right-click reverts drags/sliders), ImParseFormatSanitizeForPrinting, ImDrawList CloneOutput/PrimQuadUV/AddImageQuad, ImDrawData DeIndexAllBuffers/ScaleClipRects, internal helpers (ImBitVector, ImGuiPackedDate, inline ImGui getters...); t_debugtools, t_helpers
This commit is contained in:
@@ -6,6 +6,7 @@ export type ImVec4 = { x: number, y: number, z: number, w: number, [any]: any }
|
||||
export type ImGuiAPI = {
|
||||
AcceptDragDropPayload: (type: string, flags: number?) -> any,
|
||||
ActivateItemByID: (...any) -> ...any,
|
||||
AddContextHook: (...any) -> ...any,
|
||||
AddDrawListToDrawDataEx: (...any) -> ...any,
|
||||
AddSettingsHandler: (...any) -> ...any,
|
||||
AddUpdateViewport: (...any) -> ...any,
|
||||
@@ -72,6 +73,7 @@ export type ImGuiAPI = {
|
||||
CalcTypematicRepeatAmount: (...any) -> ...any,
|
||||
CalcWindowNextAutoFitSize: (...any) -> ...any,
|
||||
CalcWrapWidthForPos: (...any) -> ...any,
|
||||
CallContextHooks: (...any) -> ...any,
|
||||
Checkbox: (label: string, v: boolean?) -> (boolean, boolean?),
|
||||
CheckboxFlags: (...any) -> ...any,
|
||||
CleanupIniSettings: (...any) -> ...any,
|
||||
@@ -111,15 +113,29 @@ export type ImGuiAPI = {
|
||||
DataTypeGetInfo: (...any) -> ...any,
|
||||
DataTypeIsZero: (...any) -> ...any,
|
||||
DebugAllocHook: (...any) -> ...any,
|
||||
DebugBreakButton: (...any) -> ...any,
|
||||
DebugBreakButtonTooltip: (...any) -> ...any,
|
||||
DebugBreakClearData: (...any) -> ...any,
|
||||
DebugDrawCursorPos: (...any) -> ...any,
|
||||
DebugDrawItemRect: (...any) -> ...any,
|
||||
DebugDrawLineExtents: (...any) -> ...any,
|
||||
DebugFlashStyleColor: (idx: number) -> (),
|
||||
DebugHookIdInfo: (...any) -> ...any,
|
||||
DebugLocateItem: (...any) -> ...any,
|
||||
DebugLocateItemOnHover: (...any) -> ...any,
|
||||
DebugLocateItemResolveWithLastItem: (...any) -> ...any,
|
||||
DebugLog: (fmt: string, ...any) -> (),
|
||||
DebugLogV: (fmt: string, ...any) -> (),
|
||||
DebugNodeColumns: (...any) -> ...any,
|
||||
DebugNodeDockNode: (...any) -> ...any,
|
||||
DebugNodeDrawCmdShowMeshAndBoundingBox: (...any) -> ...any,
|
||||
DebugNodeDrawList: (...any) -> ...any,
|
||||
DebugNodeFont: (...any) -> ...any,
|
||||
DebugNodeFontGlyph: (...any) -> ...any,
|
||||
DebugNodeFontGlyphsForSrcMask: (...any) -> ...any,
|
||||
DebugNodeInputTextState: (...any) -> ...any,
|
||||
DebugNodeMultiSelectState: (...any) -> ...any,
|
||||
DebugNodePlatformMonitor: (...any) -> ...any,
|
||||
DebugNodeStorage: (...any) -> ...any,
|
||||
DebugNodeTabBar: (...any) -> ...any,
|
||||
DebugNodeTable: (...any) -> ...any,
|
||||
@@ -131,8 +147,13 @@ export type ImGuiAPI = {
|
||||
DebugNodeWindowSettings: (...any) -> ...any,
|
||||
DebugNodeWindowsList: (...any) -> ...any,
|
||||
DebugNodeWindowsListByBeginStackParent: (...any) -> ...any,
|
||||
DebugRenderKeyboardPreview: (...any) -> ...any,
|
||||
DebugRenderViewportThumbnail: (...any) -> ...any,
|
||||
DebugStartItemPicker: () -> (),
|
||||
DebugTextEncoding: (str: string) -> (),
|
||||
DebugTextUnformattedWithLocateItem: (...any) -> ...any,
|
||||
DebugTextureIDToU64: (...any) -> ...any,
|
||||
DemoMarker: (...any) -> ...any,
|
||||
DestroyContext: (ctx: any) -> ...any,
|
||||
DestroyPlatformWindow: (...any) -> ...any,
|
||||
DestroyPlatformWindows: () -> (),
|
||||
@@ -247,6 +268,8 @@ export type ImGuiAPI = {
|
||||
EndTable: () -> (),
|
||||
EndTooltip: () -> (),
|
||||
ErrorCheckEndFrameFinalizeErrorTooltip: (...any) -> ...any,
|
||||
ErrorCheckEndFrameSanityChecks: (...any) -> ...any,
|
||||
ErrorCheckNewFrameSanityChecks: (...any) -> ...any,
|
||||
ErrorCheckUsingSetCursorPosToExtendParentBoundaries: (...any) -> ...any,
|
||||
ErrorLog: (...any) -> ...any,
|
||||
ErrorRecoveryStoreState: (...any) -> ...any,
|
||||
@@ -265,6 +288,7 @@ export type ImGuiAPI = {
|
||||
FindRenderedTextEnd: (...any) -> ...any,
|
||||
FindSettingsHandler: (...any) -> ...any,
|
||||
FindViewportByID: (viewport_id: number) -> any,
|
||||
FindViewportByPlatformHandle: (platform_handle: any) -> ...any,
|
||||
FindWindowByID: (...any) -> ...any,
|
||||
FindWindowByName: (...any) -> ...any,
|
||||
FindWindowDisplayIndex: (...any) -> ...any,
|
||||
@@ -279,6 +303,7 @@ export type ImGuiAPI = {
|
||||
GcAwakeTransientWindowBuffers: (...any) -> ...any,
|
||||
GcCompactTransientMiscBuffers: (...any) -> ...any,
|
||||
GcCompactTransientWindowBuffers: (...any) -> ...any,
|
||||
GetActiveID: (...any) -> ...any,
|
||||
GetBackgroundDrawList: (viewport: any) -> ...any,
|
||||
GetBoxSelectState: (...any) -> ...any,
|
||||
GetClipboardText: () -> any,
|
||||
@@ -293,6 +318,9 @@ export type ImGuiAPI = {
|
||||
GetContentRegionAvail: () -> ImVec2,
|
||||
GetContentRegionMax: (...any) -> ...any,
|
||||
GetCurrentContext: () -> any,
|
||||
GetCurrentFocusScope: (...any) -> ...any,
|
||||
GetCurrentTabBar: (...any) -> ...any,
|
||||
GetCurrentTable: (...any) -> ...any,
|
||||
GetCurrentWindow: (...any) -> ...any,
|
||||
GetCurrentWindowRead: (...any) -> ...any,
|
||||
GetCursorPos: () -> ImVec2,
|
||||
@@ -304,7 +332,9 @@ export type ImGuiAPI = {
|
||||
GetDragDropPayload: () -> any,
|
||||
GetDrawData: () -> any,
|
||||
GetDrawListSharedData: () -> any,
|
||||
GetFocusID: (...any) -> ...any,
|
||||
GetFont: () -> any,
|
||||
GetFontBaked: () -> any,
|
||||
GetFontSize: () -> number,
|
||||
GetFontTexUvWhitePixel: () -> ImVec2,
|
||||
GetForegroundDrawList: (viewport: any) -> ...any,
|
||||
@@ -322,6 +352,7 @@ export type ImGuiAPI = {
|
||||
GetItemRectMax: () -> ImVec2,
|
||||
GetItemRectMin: () -> ImVec2,
|
||||
GetItemRectSize: () -> ImVec2,
|
||||
GetItemStatusFlags: (...any) -> ...any,
|
||||
GetKeyChordName: (...any) -> ...any,
|
||||
GetKeyData: (...any) -> ...any,
|
||||
GetKeyMagnitude2d: (...any) -> ...any,
|
||||
@@ -340,6 +371,7 @@ export type ImGuiAPI = {
|
||||
GetMousePosOnOpeningCurrentPopup: () -> ImVec2,
|
||||
GetMultiSelectState: (...any) -> ...any,
|
||||
GetNavTweakPressedAmount: (...any) -> ...any,
|
||||
GetPixelDensity: (...any) -> ...any,
|
||||
GetPlatformIO: () -> any,
|
||||
GetPopupAllowedExtentRect: (...any) -> ...any,
|
||||
GetRoundedFontSize: (...any) -> ...any,
|
||||
@@ -369,10 +401,13 @@ export type ImGuiAPI = {
|
||||
GetWindowContentRegionMax: (...any) -> ...any,
|
||||
GetWindowContentRegionMin: (...any) -> ...any,
|
||||
GetWindowDockID: () -> number,
|
||||
GetWindowDockNode: (...any) -> ...any,
|
||||
GetWindowDpiScale: () -> number,
|
||||
GetWindowDrawList: () -> any,
|
||||
GetWindowHeight: () -> number,
|
||||
GetWindowPos: () -> ImVec2,
|
||||
GetWindowResizeBorderID: (...any) -> ...any,
|
||||
GetWindowResizeCornerID: (...any) -> ...any,
|
||||
GetWindowScrollbarID: (...any) -> ...any,
|
||||
GetWindowScrollbarRect: (...any) -> ...any,
|
||||
GetWindowSize: () -> ImVec2,
|
||||
@@ -414,6 +449,7 @@ export type ImGuiAPI = {
|
||||
IsInNavFocusRoute: (...any) -> ...any,
|
||||
IsItemActivated: () -> boolean,
|
||||
IsItemActive: () -> boolean,
|
||||
IsItemActiveAsInputText: (...any) -> ...any,
|
||||
IsItemClicked: (mouse_button: number?) -> boolean,
|
||||
IsItemDeactivated: () -> boolean,
|
||||
IsItemDeactivatedAfterEdit: () -> boolean,
|
||||
@@ -430,6 +466,7 @@ export type ImGuiAPI = {
|
||||
IsKeyReleased: (...any) -> ...any,
|
||||
IsKeyboardKey: (...any) -> ...any,
|
||||
IsLRModKey: (...any) -> ...any,
|
||||
IsLegacyKey: (...any) -> ...any,
|
||||
IsMouseClicked: (button: number, is_repeat: boolean?) -> boolean,
|
||||
IsMouseClickedEx: (...any) -> ...any,
|
||||
IsMouseDoubleClicked: (...any) -> ...any,
|
||||
@@ -569,6 +606,8 @@ export type ImGuiAPI = {
|
||||
RadioButton: (...any) -> ...any,
|
||||
RadioButtonEx: (...any) -> ...any,
|
||||
RegisterFontAtlas: (...any) -> ...any,
|
||||
RegisterUserTexture: (...any) -> ...any,
|
||||
RemoveContextHook: (...any) -> ...any,
|
||||
RemoveSettingsHandler: (...any) -> ...any,
|
||||
Render: () -> (),
|
||||
RenderArrow: (...any) -> ...any,
|
||||
@@ -604,6 +643,7 @@ export type ImGuiAPI = {
|
||||
ScaleRatioFromValueT: (...any) -> ...any,
|
||||
ScaleValueFromRatioT: (...any) -> ...any,
|
||||
ScaleWindowsInViewport: (...any) -> ...any,
|
||||
ScrollToBringRectIntoView: (...any) -> ...any,
|
||||
ScrollToItem: (...any) -> ...any,
|
||||
ScrollToRect: (...any) -> ...any,
|
||||
ScrollToRectEx: (...any) -> ...any,
|
||||
@@ -621,6 +661,7 @@ export type ImGuiAPI = {
|
||||
SetColorEditOptions: (...any) -> ...any,
|
||||
SetColumnOffset: (column_index: number, offset: number) -> (),
|
||||
SetColumnWidth: (column_index: number, width: number) -> (),
|
||||
SetContextName: (...any) -> ...any,
|
||||
SetCurrentContext: (ctx: any) -> ...any,
|
||||
SetCurrentFont: (...any) -> ...any,
|
||||
SetCurrentViewport: (...any) -> ...any,
|
||||
@@ -634,6 +675,7 @@ export type ImGuiAPI = {
|
||||
SetItemDefaultFocus: () -> (),
|
||||
SetItemKeyOwner: (...any) -> ...any,
|
||||
SetItemTooltip: (fmt: string, ...any) -> (),
|
||||
SetItemTooltipV: (fmt: string, ...any) -> (),
|
||||
SetKeyOwner: (...any) -> ...any,
|
||||
SetKeyOwnersForKeyChord: (...any) -> ...any,
|
||||
SetKeyboardFocusHere: (offset: number?) -> (),
|
||||
@@ -671,6 +713,7 @@ export type ImGuiAPI = {
|
||||
SetNextWindowSize: (size: ImVec2, cond: number?) -> (),
|
||||
SetNextWindowSizeConstraints: (size_min: ImVec2, size_max: ImVec2, custom_callback: any, custom_callback_user_data: any) -> ...any,
|
||||
SetNextWindowViewport: (id: number) -> (),
|
||||
SetPixelDensity: (...any) -> ...any,
|
||||
SetScrollFromPosX: (...any) -> ...any,
|
||||
SetScrollFromPosY: (...any) -> ...any,
|
||||
SetScrollHereX: (center_x_ratio: number?) -> (),
|
||||
@@ -681,6 +724,7 @@ export type ImGuiAPI = {
|
||||
SetStateStorage: (tree: any) -> ...any,
|
||||
SetTabItemClosed: (label: string) -> (),
|
||||
SetTooltip: (fmt: string, ...any) -> (),
|
||||
SetTooltipV: (fmt: string, ...any) -> (),
|
||||
SetWindowClipRectBeforeSetChannel: (...any) -> ...any,
|
||||
SetWindowCollapsed: (...any) -> ...any,
|
||||
SetWindowDock: (...any) -> ...any,
|
||||
@@ -688,6 +732,7 @@ export type ImGuiAPI = {
|
||||
SetWindowFontScale: (...any) -> ...any,
|
||||
SetWindowHiddenAndSkipItemsForCurrentFrame: (...any) -> ...any,
|
||||
SetWindowHitTestHole: (...any) -> ...any,
|
||||
SetWindowParentWindowForFocusRoute: (...any) -> ...any,
|
||||
SetWindowPos: (...any) -> ...any,
|
||||
SetWindowSize: (...any) -> ...any,
|
||||
SetWindowViewport: (...any) -> ...any,
|
||||
@@ -836,6 +881,7 @@ export type ImGuiAPI = {
|
||||
TempInputScalar: (...any) -> ...any,
|
||||
TempInputText: (...any) -> ...any,
|
||||
TestKeyOwner: (...any) -> ...any,
|
||||
TestShortcutRouting: (...any) -> ...any,
|
||||
Text: (fmt: string, ...any) -> (),
|
||||
TextAligned: (...any) -> ...any,
|
||||
TextBufferToString: (buf: {number}) -> string,
|
||||
@@ -867,9 +913,12 @@ export type ImGuiAPI = {
|
||||
TypingSelectFindNextSingleCharMatch: (...any) -> ...any,
|
||||
Unindent: (indent_w: number?) -> (),
|
||||
UnregisterFontAtlas: (...any) -> ...any,
|
||||
UnregisterUserTexture: (...any) -> ...any,
|
||||
UpdateAliasKey: (...any) -> ...any,
|
||||
UpdateCurrentFontSize: (...any) -> ...any,
|
||||
UpdateDebugToolFlashStyleColor: (...any) -> ...any,
|
||||
UpdateDebugToolItemPathQuery: (...any) -> ...any,
|
||||
UpdateDebugToolItemPicker: (...any) -> ...any,
|
||||
UpdateFontsEndFrame: (...any) -> ...any,
|
||||
UpdateFontsNewFrame: (...any) -> ...any,
|
||||
UpdateHoveredWindowAndCaptureFlags: (...any) -> ...any,
|
||||
|
||||
Reference in New Issue
Block a user