Update ImGui.NET to v1.88 and ImPlot to latest.

internals
Eric Mellino 2 years ago
parent 0938c9882a
commit 2a842d868c
  1. BIN
      deps/cimgui/win-x64/cimgui.dll
  2. 5
      src/CodeGenerator/Program.cs
  3. 10
      src/CodeGenerator/TypeInfo.cs
  4. 3388
      src/CodeGenerator/definitions/cimgui/definitions.json
  5. 641
      src/CodeGenerator/definitions/cimgui/structs_and_enums.json
  6. 22004
      src/CodeGenerator/definitions/cimplot/definitions.json
  7. 1561
      src/CodeGenerator/definitions/cimplot/structs_and_enums.json
  8. 68
      src/ImGui.NET/Generated/ImGui.gen.cs
  9. 1
      src/ImGui.NET/Generated/ImGuiHoveredFlags.gen.cs
  10. 17
      src/ImGui.NET/Generated/ImGuiIO.gen.cs
  11. 2
      src/ImGui.NET/Generated/ImGuiModFlags.gen.cs
  12. 22
      src/ImGui.NET/Generated/ImGuiNative.gen.cs
  13. 13
      src/ImPlot.NET/Generated/ImAxis.gen.cs
  14. 26138
      src/ImPlot.NET/Generated/ImPlot.gen.cs
  15. 20
      src/ImPlot.NET/Generated/ImPlotAxisFlags.gen.cs
  16. 10
      src/ImPlot.NET/Generated/ImPlotBarGroupsFlags.gen.cs
  17. 9
      src/ImPlot.NET/Generated/ImPlotBarsFlags.gen.cs
  18. 10
      src/ImPlot.NET/Generated/ImPlotBin.gen.cs
  19. 21
      src/ImPlot.NET/Generated/ImPlotCol.gen.cs
  20. 28
      src/ImPlot.NET/Generated/ImPlotColormap.gen.cs
  21. 11
      src/ImPlot.NET/Generated/ImPlotColormapScaleFlags.gen.cs
  22. 9
      src/ImPlot.NET/Generated/ImPlotCond.gen.cs
  23. 8
      src/ImPlot.NET/Generated/ImPlotDigitalFlags.gen.cs
  24. 12
      src/ImPlot.NET/Generated/ImPlotDragToolFlags.gen.cs
  25. 8
      src/ImPlot.NET/Generated/ImPlotDummyFlags.gen.cs
  26. 9
      src/ImPlot.NET/Generated/ImPlotErrorBarsFlags.gen.cs
  27. 19
      src/ImPlot.NET/Generated/ImPlotFlags.gen.cs
  28. 9
      src/ImPlot.NET/Generated/ImPlotHeatmapFlags.gen.cs
  29. 13
      src/ImPlot.NET/Generated/ImPlotHistogramFlags.gen.cs
  30. 8
      src/ImPlot.NET/Generated/ImPlotImageFlags.gen.cs
  31. 9
      src/ImPlot.NET/Generated/ImPlotInfLinesFlags.gen.cs
  32. 49
      src/ImPlot.NET/Generated/ImPlotInputMap.gen.cs
  33. 10
      src/ImPlot.NET/Generated/ImPlotItemFlags.gen.cs
  34. 15
      src/ImPlot.NET/Generated/ImPlotLegendFlags.gen.cs
  35. 35
      src/ImPlot.NET/Generated/ImPlotLimits.gen.cs
  36. 13
      src/ImPlot.NET/Generated/ImPlotLineFlags.gen.cs
  37. 11
      src/ImPlot.NET/Generated/ImPlotMouseTextFlags.gen.cs
  38. 688
      src/ImPlot.NET/Generated/ImPlotNative.gen.cs
  39. 8
      src/ImPlot.NET/Generated/ImPlotOrientation.gen.cs
  40. 9
      src/ImPlot.NET/Generated/ImPlotPieChartFlags.gen.cs
  41. 5
      src/ImPlot.NET/Generated/ImPlotRange.gen.cs
  42. 69
      src/ImPlot.NET/Generated/ImPlotRect.gen.cs
  43. 10
      src/ImPlot.NET/Generated/ImPlotScale.gen.cs
  44. 9
      src/ImPlot.NET/Generated/ImPlotScatterFlags.gen.cs
  45. 8
      src/ImPlot.NET/Generated/ImPlotShadedFlags.gen.cs
  46. 10
      src/ImPlot.NET/Generated/ImPlotStairsFlags.gen.cs
  47. 9
      src/ImPlot.NET/Generated/ImPlotStemsFlags.gen.cs
  48. 9
      src/ImPlot.NET/Generated/ImPlotStyle.gen.cs
  49. 19
      src/ImPlot.NET/Generated/ImPlotSubplotFlags.gen.cs
  50. 9
      src/ImPlot.NET/Generated/ImPlotTextFlags.gen.cs
  51. 9
      src/ImPlot.NET/Generated/ImPlotYAxis.gen.cs

Binary file not shown.

@ -25,6 +25,11 @@ namespace CodeGenerator
outputPath = AppContext.BaseDirectory;
}
if (!Directory.Exists(outputPath))
{
Directory.CreateDirectory(outputPath);
}
string libraryName;
if (args.Length > 1)
{

@ -52,6 +52,9 @@ namespace CodeGenerator
{ "ImVec2[2]", "Vector2*" },
{ "char* []", "byte**" },
{ "unsigned char[256]", "byte*"},
{ "ImPlotFormatter", "IntPtr" },
{ "ImPlotGetter", "IntPtr" },
{ "ImPlotTransform", "IntPtr" },
};
public static readonly List<string> WellKnownEnums = new List<string>()
@ -110,7 +113,12 @@ namespace CodeGenerator
{ "sizeof(ImU32)", "sizeof(uint)"},
{ "sizeof(ImS32)", "sizeof(int)"},
{ "sizeof(ImU64)", "sizeof(ulong)"},
{ "sizeof(ImS64)", "sizeof(long)"}
{ "sizeof(ImS64)", "sizeof(long)"},
{ "ImPlotBin_Sturges", "(int)ImPlotBin.Sturges" },
{ "ImPlotRect()", "new ImPlotRect()" },
{ "ImPlotCond_Once", "ImPlotCond.Once" },
{ "ImPlotRange()", "new ImPlotRange()" },
};
public static readonly Dictionary<string, string> IdentifierReplacements = new Dictionary<string, string>()

File diff suppressed because it is too large Load Diff

@ -1031,6 +1031,58 @@
"value": "10"
}
],
"ImGuiDebugLogFlags_": [
{
"calc_value": 0,
"name": "ImGuiDebugLogFlags_None",
"value": "0"
},
{
"calc_value": 1,
"name": "ImGuiDebugLogFlags_EventActiveId",
"value": "1 << 0"
},
{
"calc_value": 2,
"name": "ImGuiDebugLogFlags_EventFocus",
"value": "1 << 1"
},
{
"calc_value": 4,
"name": "ImGuiDebugLogFlags_EventPopup",
"value": "1 << 2"
},
{
"calc_value": 8,
"name": "ImGuiDebugLogFlags_EventNav",
"value": "1 << 3"
},
{
"calc_value": 16,
"name": "ImGuiDebugLogFlags_EventIO",
"value": "1 << 4"
},
{
"calc_value": 32,
"name": "ImGuiDebugLogFlags_EventDocking",
"value": "1 << 5"
},
{
"calc_value": 64,
"name": "ImGuiDebugLogFlags_EventViewport",
"value": "1 << 6"
},
{
"calc_value": 127,
"name": "ImGuiDebugLogFlags_EventMask_",
"value": "ImGuiDebugLogFlags_EventActiveId | ImGuiDebugLogFlags_EventFocus | ImGuiDebugLogFlags_EventPopup | ImGuiDebugLogFlags_EventNav | ImGuiDebugLogFlags_EventIO | ImGuiDebugLogFlags_EventDocking | ImGuiDebugLogFlags_EventViewport"
},
{
"calc_value": 1024,
"name": "ImGuiDebugLogFlags_OutputToTTY",
"value": "1 << 10"
}
],
"ImGuiDir_": [
{
"calc_value": -1,
@ -1364,6 +1416,11 @@
"name": "ImGuiHoveredFlags_AllowWhenDisabled",
"value": "1 << 9"
},
{
"calc_value": 1024,
"name": "ImGuiHoveredFlags_NoNavOverride",
"value": "1 << 10"
},
{
"calc_value": 416,
"name": "ImGuiHoveredFlags_RectOnly",
@ -1408,7 +1465,7 @@
},
{
"calc_value": 6,
"name": "ImGuiInputEventType_Char",
"name": "ImGuiInputEventType_Text",
"value": "6"
},
{
@ -1422,38 +1479,6 @@
"value": "8"
}
],
"ImGuiInputReadMode": [
{
"calc_value": 0,
"name": "ImGuiInputReadMode_Down",
"value": "0"
},
{
"calc_value": 1,
"name": "ImGuiInputReadMode_Pressed",
"value": "1"
},
{
"calc_value": 2,
"name": "ImGuiInputReadMode_Released",
"value": "2"
},
{
"calc_value": 3,
"name": "ImGuiInputReadMode_Repeat",
"value": "3"
},
{
"calc_value": 4,
"name": "ImGuiInputReadMode_RepeatSlow",
"value": "4"
},
{
"calc_value": 5,
"name": "ImGuiInputReadMode_RepeatFast",
"value": "5"
}
],
"ImGuiInputSource": [
{
"calc_value": 0,
@ -1719,33 +1744,6 @@
"value": "1 << 8"
}
],
"ImGuiKeyModFlags_": [
{
"calc_value": 0,
"name": "ImGuiKeyModFlags_None",
"value": "0"
},
{
"calc_value": 1,
"name": "ImGuiKeyModFlags_Ctrl",
"value": "1 << 0"
},
{
"calc_value": 2,
"name": "ImGuiKeyModFlags_Shift",
"value": "1 << 1"
},
{
"calc_value": 4,
"name": "ImGuiKeyModFlags_Alt",
"value": "1 << 2"
},
{
"calc_value": 8,
"name": "ImGuiKeyModFlags_Super",
"value": "1 << 3"
}
],
"ImGuiKeyPrivate_": [
{
"calc_value": 0,
@ -2509,6 +2507,33 @@
"value": "4"
}
],
"ImGuiModFlags_": [
{
"calc_value": 0,
"name": "ImGuiModFlags_None",
"value": "0"
},
{
"calc_value": 1,
"name": "ImGuiModFlags_Ctrl",
"value": "1 << 0"
},
{
"calc_value": 2,
"name": "ImGuiModFlags_Shift",
"value": "1 << 1"
},
{
"calc_value": 4,
"name": "ImGuiModFlags_Alt",
"value": "1 << 2"
},
{
"calc_value": 8,
"name": "ImGuiModFlags_Super",
"value": "1 << 3"
}
],
"ImGuiMouseButton_": [
{
"calc_value": 0,
@ -2838,6 +2863,38 @@
"value": "1 << 12"
}
],
"ImGuiNavReadMode": [
{
"calc_value": 0,
"name": "ImGuiNavReadMode_Down",
"value": "0"
},
{
"calc_value": 1,
"name": "ImGuiNavReadMode_Pressed",
"value": "1"
},
{
"calc_value": 2,
"name": "ImGuiNavReadMode_Released",
"value": "2"
},
{
"calc_value": 3,
"name": "ImGuiNavReadMode_Repeat",
"value": "3"
},
{
"calc_value": 4,
"name": "ImGuiNavReadMode_RepeatSlow",
"value": "4"
},
{
"calc_value": 5,
"name": "ImGuiNavReadMode_RepeatFast",
"value": "5"
}
],
"ImGuiNextItemDataFlags_": [
{
"calc_value": 0,
@ -4264,176 +4321,178 @@
},
"enumtypes": [],
"locations": {
"ImBitVector": "imgui_internal:571",
"ImColor": "imgui:2459",
"ImDrawChannel": "imgui:2549",
"ImDrawCmd": "imgui:2508",
"ImDrawCmdHeader": "imgui:2541",
"ImDrawData": "imgui:2739",
"ImDrawDataBuilder": "imgui_internal:744",
"ImDrawFlags_": "imgui:2575",
"ImDrawList": "imgui:2613",
"ImDrawListFlags_": "imgui:2595",
"ImDrawListSharedData": "imgui_internal:724",
"ImDrawListSplitter": "imgui:2558",
"ImDrawVert": "imgui:2526",
"ImFont": "imgui:2957",
"ImFontAtlas": "imgui:2856",
"ImFontAtlasCustomRect": "imgui:2818",
"ImFontAtlasFlags_": "imgui:2831",
"ImFontBuilderIO": "imgui_internal:3172",
"ImFontConfig": "imgui:2762",
"ImFontGlyph": "imgui:2791",
"ImFontGlyphRangesBuilder": "imgui:2803",
"ImGuiActivateFlags_": "imgui_internal:1284",
"ImGuiAxis": "imgui_internal:900",
"ImGuiBackendFlags_": "imgui:1588",
"ImGuiButtonFlagsPrivate_": "imgui_internal:807",
"ImGuiButtonFlags_": "imgui:1702",
"ImGuiCol_": "imgui:1603",
"ImGuiColorEditFlags_": "imgui:1715",
"ImGuiColorMod": "imgui_internal:943",
"ImGuiComboFlagsPrivate_": "imgui_internal:830",
"ImGuiComboFlags_": "imgui:1115",
"ImGuiComboPreviewData": "imgui_internal:960",
"ImGuiCond_": "imgui:1805",
"ImGuiConfigFlags_": "imgui:1563",
"ImGuiContext": "imgui_internal:1727",
"ImGuiContextHook": "imgui_internal:1712",
"ImGuiContextHookType": "imgui_internal:1710",
"ImGuiDataAuthority_": "imgui_internal:1461",
"ImGuiDataTypeInfo": "imgui_internal:926",
"ImGuiDataTypePrivate_": "imgui_internal:935",
"ImGuiDataTypeTempStorage": "imgui_internal:920",
"ImBitVector": "imgui_internal:580",
"ImColor": "imgui:2465",
"ImDrawChannel": "imgui:2555",
"ImDrawCmd": "imgui:2514",
"ImDrawCmdHeader": "imgui:2547",
"ImDrawData": "imgui:2747",
"ImDrawDataBuilder": "imgui_internal:752",
"ImDrawFlags_": "imgui:2581",
"ImDrawList": "imgui:2619",
"ImDrawListFlags_": "imgui:2601",
"ImDrawListSharedData": "imgui_internal:732",
"ImDrawListSplitter": "imgui:2564",
"ImDrawVert": "imgui:2532",
"ImFont": "imgui:2965",
"ImFontAtlas": "imgui:2864",
"ImFontAtlasCustomRect": "imgui:2826",
"ImFontAtlasFlags_": "imgui:2839",
"ImFontBuilderIO": "imgui_internal:3218",
"ImFontConfig": "imgui:2770",
"ImFontGlyph": "imgui:2799",
"ImFontGlyphRangesBuilder": "imgui:2811",
"ImGuiActivateFlags_": "imgui_internal:1294",
"ImGuiAxis": "imgui_internal:908",
"ImGuiBackendFlags_": "imgui:1589",
"ImGuiButtonFlagsPrivate_": "imgui_internal:815",
"ImGuiButtonFlags_": "imgui:1703",
"ImGuiCol_": "imgui:1604",
"ImGuiColorEditFlags_": "imgui:1716",
"ImGuiColorMod": "imgui_internal:951",
"ImGuiComboFlagsPrivate_": "imgui_internal:838",
"ImGuiComboFlags_": "imgui:1114",
"ImGuiComboPreviewData": "imgui_internal:968",
"ImGuiCond_": "imgui:1806",
"ImGuiConfigFlags_": "imgui:1564",
"ImGuiContext": "imgui_internal:1752",
"ImGuiContextHook": "imgui_internal:1737",
"ImGuiContextHookType": "imgui_internal:1735",
"ImGuiDataAuthority_": "imgui_internal:1471",
"ImGuiDataTypeInfo": "imgui_internal:934",
"ImGuiDataTypePrivate_": "imgui_internal:943",
"ImGuiDataTypeTempStorage": "imgui_internal:928",
"ImGuiDataType_": "imgui:1372",
"ImGuiDebugLogFlags_": "imgui_internal:1668",
"ImGuiDir_": "imgui:1388",
"ImGuiDockContext": "imgui_internal:1559",
"ImGuiDockNode": "imgui_internal:1477",
"ImGuiDockNodeFlagsPrivate_": "imgui_internal:1436",
"ImGuiDockContext": "imgui_internal:1569",
"ImGuiDockNode": "imgui_internal:1487",
"ImGuiDockNodeFlagsPrivate_": "imgui_internal:1446",
"ImGuiDockNodeFlags_": "imgui:1337",
"ImGuiDockNodeState": "imgui_internal:1468",
"ImGuiDockNodeState": "imgui_internal:1478",
"ImGuiDragDropFlags_": "imgui:1350",
"ImGuiFocusedFlags_": "imgui:1303",
"ImGuiGroupData": "imgui_internal:973",
"ImGuiHoveredFlags_": "imgui:1317",
"ImGuiIO": "imgui:1981",
"ImGuiInputEvent": "imgui_internal:1221",
"ImGuiInputEventAppFocused": "imgui_internal:1219",
"ImGuiInputEventKey": "imgui_internal:1217",
"ImGuiInputEventMouseButton": "imgui_internal:1215",
"ImGuiInputEventMousePos": "imgui_internal:1213",
"ImGuiInputEventMouseViewport": "imgui_internal:1216",
"ImGuiInputEventMouseWheel": "imgui_internal:1214",
"ImGuiInputEventText": "imgui_internal:1218",
"ImGuiInputEventType": "imgui_internal:1187",
"ImGuiInputReadMode": "imgui_internal:1241",
"ImGuiInputSource": "imgui_internal:1200",
"ImGuiInputTextCallbackData": "imgui:2166",
"ImGuiInputTextFlagsPrivate_": "imgui_internal:798",
"ImGuiInputTextFlags_": "imgui:1028",
"ImGuiInputTextState": "imgui_internal:1008",
"ImGuiItemFlags_": "imgui_internal:760",
"ImGuiItemStatusFlags_": "imgui_internal:775",
"ImGuiKeyData": "imgui:1973",
"ImGuiKeyModFlags_": "imgui:1520",
"ImGuiKeyPrivate_": "imgui_internal:1179",
"ImGuiKey_": "imgui:1406",
"ImGuiLastItemData": "imgui_internal:1121",
"ImGuiLayoutType_": "imgui_internal:884",
"ImGuiListClipper": "imgui:2411",
"ImGuiListClipperData": "imgui_internal:1268",
"ImGuiListClipperRange": "imgui_internal:1255",
"ImGuiLogType": "imgui_internal:890",
"ImGuiMenuColumns": "imgui_internal:989",
"ImGuiMetricsConfig": "imgui_internal:1658",
"ImGuiMouseButton_": "imgui:1777",
"ImGuiMouseCursor_": "imgui:1787",
"ImGuiNavDirSourceFlags_": "imgui_internal:1316",
"ImGuiNavHighlightFlags_": "imgui_internal:1307",
"ImGuiNavInput_": "imgui:1533",
"ImGuiNavItemData": "imgui_internal:1350",
"ImGuiNavLayer": "imgui_internal:1343",
"ImGuiNavMoveFlags_": "imgui_internal:1325",
"ImGuiNextItemData": "imgui_internal:1108",
"ImGuiNextItemDataFlags_": "imgui_internal:1101",
"ImGuiNextWindowData": "imgui_internal:1074",
"ImGuiNextWindowDataFlags_": "imgui_internal:1057",
"ImGuiOldColumnData": "imgui_internal:1390",
"ImGuiOldColumnFlags_": "imgui_internal:1370",
"ImGuiOldColumns": "imgui_internal:1400",
"ImGuiOnceUponAFrame": "imgui:2286",
"ImGuiPayload": "imgui:2227",
"ImGuiPlatformIO": "imgui:3121",
"ImGuiPlatformImeData": "imgui:3193",
"ImGuiPlatformMonitor": "imgui:3184",
"ImGuiPlotType": "imgui_internal:907",
"ImGuiPopupData": "imgui_internal:1044",
"ImGuiPopupFlags_": "imgui:1088",
"ImGuiPopupPositionPolicy": "imgui_internal:913",
"ImGuiPtrOrIndex": "imgui_internal:1164",
"ImGuiScrollFlags_": "imgui_internal:1293",
"ImGuiSelectableFlagsPrivate_": "imgui_internal:843",
"ImGuiSelectableFlags_": "imgui:1104",
"ImGuiSeparatorFlags_": "imgui_internal:862",
"ImGuiSettingsHandler": "imgui_internal:1639",
"ImGuiShrinkWidthItem": "imgui_internal:1158",
"ImGuiSizeCallbackData": "imgui:2197",
"ImGuiSliderFlagsPrivate_": "imgui_internal:836",
"ImGuiSliderFlags_": "imgui:1760",
"ImGuiFocusedFlags_": "imgui:1302",
"ImGuiGroupData": "imgui_internal:981",
"ImGuiHoveredFlags_": "imgui:1316",
"ImGuiIO": "imgui:1983",
"ImGuiInputEvent": "imgui_internal:1231",
"ImGuiInputEventAppFocused": "imgui_internal:1229",
"ImGuiInputEventKey": "imgui_internal:1227",
"ImGuiInputEventMouseButton": "imgui_internal:1225",
"ImGuiInputEventMousePos": "imgui_internal:1223",
"ImGuiInputEventMouseViewport": "imgui_internal:1226",
"ImGuiInputEventMouseWheel": "imgui_internal:1224",
"ImGuiInputEventText": "imgui_internal:1228",
"ImGuiInputEventType": "imgui_internal:1197",
"ImGuiInputSource": "imgui_internal:1210",
"ImGuiInputTextCallbackData": "imgui:2169",
"ImGuiInputTextFlagsPrivate_": "imgui_internal:806",
"ImGuiInputTextFlags_": "imgui:1027",
"ImGuiInputTextState": "imgui_internal:1016",
"ImGuiItemFlags_": "imgui_internal:768",
"ImGuiItemStatusFlags_": "imgui_internal:783",
"ImGuiKeyData": "imgui:1975",
"ImGuiKeyPrivate_": "imgui_internal:1189",
"ImGuiKey_": "imgui:1408",
"ImGuiLastItemData": "imgui_internal:1130",
"ImGuiLayoutType_": "imgui_internal:892",
"ImGuiListClipper": "imgui:2414",
"ImGuiListClipperData": "imgui_internal:1278",
"ImGuiListClipperRange": "imgui_internal:1265",
"ImGuiLogType": "imgui_internal:898",
"ImGuiMenuColumns": "imgui_internal:997",
"ImGuiMetricsConfig": "imgui_internal:1683",
"ImGuiModFlags_": "imgui:1520",
"ImGuiMouseButton_": "imgui:1778",
"ImGuiMouseCursor_": "imgui:1788",
"ImGuiNavDirSourceFlags_": "imgui_internal:1326",
"ImGuiNavHighlightFlags_": "imgui_internal:1317",
"ImGuiNavInput_": "imgui:1534",
"ImGuiNavItemData": "imgui_internal:1360",
"ImGuiNavLayer": "imgui_internal:1353",
"ImGuiNavMoveFlags_": "imgui_internal:1335",
"ImGuiNavReadMode": "imgui_internal:1251",
"ImGuiNextItemData": "imgui_internal:1117",
"ImGuiNextItemDataFlags_": "imgui_internal:1110",
"ImGuiNextWindowData": "imgui_internal:1083",
"ImGuiNextWindowDataFlags_": "imgui_internal:1066",
"ImGuiOldColumnData": "imgui_internal:1400",
"ImGuiOldColumnFlags_": "imgui_internal:1380",
"ImGuiOldColumns": "imgui_internal:1410",
"ImGuiOnceUponAFrame": "imgui:2289",
"ImGuiPayload": "imgui:2230",
"ImGuiPlatformIO": "imgui:3129",
"ImGuiPlatformImeData": "imgui:3201",
"ImGuiPlatformMonitor": "imgui:3192",
"ImGuiPlotType": "imgui_internal:915",
"ImGuiPopupData": "imgui_internal:1052",
"ImGuiPopupFlags_": "imgui:1087",
"ImGuiPopupPositionPolicy": "imgui_internal:921",
"ImGuiPtrOrIndex": "imgui_internal:1174",
"ImGuiScrollFlags_": "imgui_internal:1303",
"ImGuiSelectableFlagsPrivate_": "imgui_internal:851",
"ImGuiSelectableFlags_": "imgui:1103",
"ImGuiSeparatorFlags_": "imgui_internal:870",
"ImGuiSettingsHandler": "imgui_internal:1649",
"ImGuiShrinkWidthItem": "imgui_internal:1167",
"ImGuiSizeCallbackData": "imgui:2200",
"ImGuiSliderFlagsPrivate_": "imgui_internal:844",
"ImGuiSliderFlags_": "imgui:1761",
"ImGuiSortDirection_": "imgui:1399",
"ImGuiStackLevelInfo": "imgui_internal:1684",
"ImGuiStackSizes": "imgui_internal:1133",
"ImGuiStackTool": "imgui_internal:1695",
"ImGuiStorage": "imgui:2348",
"ImGuiStoragePair": "imgui:2351",
"ImGuiStyle": "imgui:1916",
"ImGuiStyleMod": "imgui_internal:950",
"ImGuiStyleVar_": "imgui:1670",
"ImGuiTabBar": "imgui_internal:2395",
"ImGuiTabBarFlagsPrivate_": "imgui_internal:2358",
"ImGuiTabBarFlags_": "imgui:1129",
"ImGuiTabItem": "imgui_internal:2376",
"ImGuiTabItemFlagsPrivate_": "imgui_internal:2366",
"ImGuiTabItemFlags_": "imgui:1145",
"ImGuiTable": "imgui_internal:2522",
"ImGuiTableBgTarget_": "imgui:1294",
"ImGuiTableCellData": "imgui_internal:2515",
"ImGuiTableColumn": "imgui_internal:2456",
"ImGuiTableColumnFlags_": "imgui:1237",
"ImGuiTableColumnSettings": "imgui_internal:2656",
"ImGuiTableColumnSortSpecs": "imgui:2249",
"ImGuiTableFlags_": "imgui:1180",
"ImGuiTableRowFlags_": "imgui:1279",
"ImGuiTableSettings": "imgui_internal:2680",
"ImGuiTableSortSpecs": "imgui:2263",
"ImGuiTableTempData": "imgui_internal:2635",
"ImGuiTextBuffer": "imgui:2321",
"ImGuiTextFilter": "imgui:2294",
"ImGuiTextFlags_": "imgui_internal:870",
"ImGuiTextRange": "imgui:2304",
"ImGuiTooltipFlags_": "imgui_internal:876",
"ImGuiTreeNodeFlagsPrivate_": "imgui_internal:857",
"ImGuiTreeNodeFlags_": "imgui:1059",
"ImGuiViewport": "imgui:3038",
"ImGuiViewportFlags_": "imgui:3013",
"ImGuiViewportP": "imgui_internal:1576",
"ImGuiWindow": "imgui_internal:2213",
"ImGuiWindowClass": "imgui:2212",
"ImGuiWindowDockStyle": "imgui_internal:1554",
"ImGuiWindowDockStyleCol": "imgui_internal:1543",
"ImGuiWindowFlags_": "imgui:985",
"ImGuiWindowSettings": "imgui_internal:1622",
"ImGuiWindowStackData": "imgui_internal:1151",
"ImGuiWindowTempData": "imgui_internal:2166",
"ImRect": "imgui_internal:499",
"ImVec1": "imgui_internal:481",
"ImGuiStackLevelInfo": "imgui_internal:1706",
"ImGuiStackSizes": "imgui_internal:1142",
"ImGuiStackTool": "imgui_internal:1718",
"ImGuiStorage": "imgui:2351",
"ImGuiStoragePair": "imgui:2354",
"ImGuiStyle": "imgui:1918",
"ImGuiStyleMod": "imgui_internal:958",
"ImGuiStyleVar_": "imgui:1671",
"ImGuiTabBar": "imgui_internal:2426",
"ImGuiTabBarFlagsPrivate_": "imgui_internal:2388",
"ImGuiTabBarFlags_": "imgui:1128",
"ImGuiTabItem": "imgui_internal:2406",
"ImGuiTabItemFlagsPrivate_": "imgui_internal:2396",
"ImGuiTabItemFlags_": "imgui:1144",
"ImGuiTable": "imgui_internal:2562",
"ImGuiTableBgTarget_": "imgui:1293",
"ImGuiTableCellData": "imgui_internal:2546",
"ImGuiTableColumn": "imgui_internal:2487",
"ImGuiTableColumnFlags_": "imgui:1236",
"ImGuiTableColumnSettings": "imgui_internal:2697",
"ImGuiTableColumnSortSpecs": "imgui:2252",
"ImGuiTableFlags_": "imgui:1179",
"ImGuiTableInstanceData": "imgui_internal:2553",
"ImGuiTableRowFlags_": "imgui:1278",
"ImGuiTableSettings": "imgui_internal:2721",
"ImGuiTableSortSpecs": "imgui:2266",
"ImGuiTableTempData": "imgui_internal:2676",
"ImGuiTextBuffer": "imgui:2324",
"ImGuiTextFilter": "imgui:2297",
"ImGuiTextFlags_": "imgui_internal:878",
"ImGuiTextRange": "imgui:2307",
"ImGuiTooltipFlags_": "imgui_internal:884",
"ImGuiTreeNodeFlagsPrivate_": "imgui_internal:865",
"ImGuiTreeNodeFlags_": "imgui:1058",
"ImGuiViewport": "imgui:3046",
"ImGuiViewportFlags_": "imgui:3021",
"ImGuiViewportP": "imgui_internal:1586",
"ImGuiWindow": "imgui_internal:2246",
"ImGuiWindowClass": "imgui:2215",
"ImGuiWindowDockStyle": "imgui_internal:1564",
"ImGuiWindowDockStyleCol": "imgui_internal:1553",
"ImGuiWindowFlags_": "imgui:984",
"ImGuiWindowSettings": "imgui_internal:1632",
"ImGuiWindowStackData": "imgui_internal:1160",
"ImGuiWindowTempData": "imgui_internal:2198",
"ImRect": "imgui_internal:508",
"ImVec1": "imgui_internal:490",
"ImVec2": "imgui:255",
"ImVec2ih": "imgui_internal:489",
"ImVec2ih": "imgui_internal:498",
"ImVec4": "imgui:268",
"STB_TexteditState": "imstb_textedit:317",
"StbTexteditRow": "imstb_textedit:364",
"StbUndoRecord": "imstb_textedit:299",
"StbUndoState": "imstb_textedit:308"
"STB_TexteditState": "imstb_textedit:319",
"StbTexteditRow": "imstb_textedit:366",
"StbUndoRecord": "imstb_textedit:301",
"StbUndoState": "imstb_textedit:310"
},
"structs": {
"ImBitVector": [
@ -5314,22 +5373,6 @@
"name": "ActiveIdHasBeenEditedThisFrame",
"type": "bool"
},
{
"name": "ActiveIdUsingMouseWheel",
"type": "bool"
},
{
"name": "ActiveIdUsingNavDirMask",
"type": "ImU32"
},
{
"name": "ActiveIdUsingNavInputMask",
"type": "ImU32"
},
{
"name": "ActiveIdUsingKeyInputMask",
"type": "ImBitArrayForNamedKeys"
},
{
"name": "ActiveIdClickOffset",
"type": "ImVec2"
@ -5370,6 +5413,22 @@
"name": "LastActiveIdTimer",
"type": "float"
},
{
"name": "ActiveIdUsingMouseWheel",
"type": "bool"
},
{
"name": "ActiveIdUsingNavDirMask",
"type": "ImU32"
},
{
"name": "ActiveIdUsingNavInputMask",
"type": "ImU32"
},
{
"name": "ActiveIdUsingKeyInputMask",
"type": "ImBitArrayForNamedKeys"
},
{
"name": "CurrentItemFlags",
"type": "ImGuiItemFlags"
@ -5505,7 +5564,7 @@
},
{
"name": "NavJustMovedToKeyMods",
"type": "ImGuiKeyModFlags"
"type": "ImGuiModFlags"
},
{
"name": "NavNextActivateId",
@ -5581,7 +5640,7 @@
},
{
"name": "NavMoveKeyMods",
"type": "ImGuiKeyModFlags"
"type": "ImGuiModFlags"
},
{
"name": "NavMoveDir",
@ -5829,6 +5888,10 @@
"name": "ComboPreviewData",
"type": "ImGuiComboPreviewData"
},
{
"name": "SliderGrabClickOffset",
"type": "float"
},
{
"name": "SliderCurrentAccum",
"type": "float"
@ -5979,6 +6042,14 @@
"name": "LogDepthToExpandDefault",
"type": "int"
},
{
"name": "DebugLogFlags",
"type": "ImGuiDebugLogFlags"
},
{
"name": "DebugLogBuf",
"type": "ImGuiTextBuffer"
},
{
"name": "DebugItemPickerActive",
"type": "bool"
@ -6025,9 +6096,9 @@
"type": "int"
},
{
"name": "TempBuffer[1024*3+1]",
"size": 3073,
"type": "char"
"name": "TempBuffer",
"template_type": "char",
"type": "ImVector_char"
}
],
"ImGuiContextHook": [
@ -6564,8 +6635,8 @@
"type": "int"
},
{
"name": "KeysDown[512]",
"size": 512,
"name": "KeysDown[ImGuiKey_COUNT]",
"size": 645,
"type": "bool"
},
{
@ -6612,11 +6683,7 @@
},
{
"name": "KeyMods",
"type": "ImGuiKeyModFlags"
},
{
"name": "KeyModsPrev",
"type": "ImGuiKeyModFlags"
"type": "ImGuiModFlags"
},
{
"name": "KeysData[ImGuiKey_KeysData_SIZE]",
@ -6714,6 +6781,10 @@
"name": "AppFocusLost",
"type": "bool"
},
{
"name": "AppAcceptingEvents",
"type": "bool"
},
{
"name": "BackendUsingLegacyKeyArrays",
"type": "ImS8"
@ -7078,6 +7149,10 @@
}
],
"ImGuiMetricsConfig": [
{
"name": "ShowDebugLog",
"type": "bool"
},
{
"name": "ShowStackTool",
"type": "bool"
@ -7536,6 +7611,10 @@
"name": "SourceWindow",
"type": "ImGuiWindow*"
},
{
"name": "ParentNavLayer",
"type": "int"
},
{
"name": "OpenFrameCount",
"type": "int"
@ -7609,6 +7688,10 @@
{
"name": "Width",
"type": "float"
},
{
"name": "InitialWidth",
"type": "float"
}
],
"ImGuiSizeCallbackData": [
@ -7643,8 +7726,13 @@
"type": "bool"
},
{
"name": "Desc[58]",
"size": 58,
"bitfield": "8",
"name": "DataType",
"type": "ImGuiDataType"
},
{
"name": "Desc[57]",
"size": 57,
"type": "char"
}
],
@ -7703,6 +7791,14 @@
"name": "Results",
"template_type": "ImGuiStackLevelInfo",
"type": "ImVector_ImGuiStackLevelInfo"
},
{
"name": "CopyToClipboardOnCtrlC",
"type": "bool"
},
{
"name": "CopyToClipboardLastTime",
"type": "float"
}
],
"ImGuiStorage": [
@ -8059,6 +8155,10 @@
"name": "ContentWidth",
"type": "float"
},
{
"name": "RequestedWidth",
"type": "float"
},
{
"name": "NameOffset",
"type": "ImS32"
@ -8239,14 +8339,6 @@
"name": "CellSpacingX2",
"type": "float"
},
{
"name": "LastOuterHeight",
"type": "float"
},
{
"name": "LastFirstRowHeight",
"type": "float"
},
{
"name": "InnerWidth",
"type": "float"
@ -8259,6 +8351,10 @@
"name": "ColumnsAutoFitWidth",
"type": "float"
},
{
"name": "ColumnsStretchSumWeights",
"type": "float"
},
{
"name": "ResizedColumnNextWidth",
"type": "float"
@ -8323,6 +8419,15 @@
"name": "DrawSplitter",
"type": "ImDrawListSplitter*"
},
{
"name": "InstanceDataFirst",
"type": "ImGuiTableInstanceData"
},
{
"name": "InstanceDataExtra",
"template_type": "ImGuiTableInstanceData",
"type": "ImVector_ImGuiTableInstanceData"
},
{
"name": "SortSpecsSingle",
"type": "ImGuiTableColumnSortSpecs"
@ -8732,6 +8837,16 @@
"type": "ImGuiSortDirection"
}
],
"ImGuiTableInstanceData": [
{
"name": "LastOuterHeight",
"type": "float"
},
{
"name": "LastFirstRowHeight",
"type": "float"
}
],
"ImGuiTableSettings": [
{
"name": "ID",
@ -9597,6 +9712,10 @@
"name": "PrevLineTextBaseOffset",
"type": "float"
},
{
"name": "IsSameLine",
"type": "bool"
},
{
"name": "Indent",
"type": "ImVec1"

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

@ -1272,26 +1272,6 @@ namespace ImGuiNET
float ret = ImGuiNative.igCalcItemWidth();
return ret;
}
public static void CaptureKeyboardFromApp()
{
byte want_capture_keyboard_value = 1;
ImGuiNative.igCaptureKeyboardFromApp(want_capture_keyboard_value);
}
public static void CaptureKeyboardFromApp(bool want_capture_keyboard_value)
{
byte native_want_capture_keyboard_value = want_capture_keyboard_value ? (byte)1 : (byte)0;
ImGuiNative.igCaptureKeyboardFromApp(native_want_capture_keyboard_value);
}
public static void CaptureMouseFromApp()
{
byte want_capture_mouse_value = 1;
ImGuiNative.igCaptureMouseFromApp(want_capture_mouse_value);
}
public static void CaptureMouseFromApp(bool want_capture_mouse_value)
{
byte native_want_capture_mouse_value = want_capture_mouse_value ? (byte)1 : (byte)0;
ImGuiNative.igCaptureMouseFromApp(native_want_capture_mouse_value);
}
public static bool Checkbox(string label, ref bool v)
{
byte* native_label;
@ -2228,6 +2208,32 @@ namespace ImGuiNET
}
return ret != 0;
}
public static void DebugTextEncoding(string text)
{
byte* native_text;
int text_byteCount = 0;
if (text != null)
{
text_byteCount = Encoding.UTF8.GetByteCount(text);
if (text_byteCount > Util.StackAllocationSizeLimit)
{
native_text = Util.Allocate(text_byteCount + 1);
}
else
{
byte* native_text_stackBytes = stackalloc byte[text_byteCount + 1];
native_text = native_text_stackBytes;
}
int native_text_offset = Util.GetUtf8(text, native_text, text_byteCount);
native_text[native_text_offset] = 0;
}
else { native_text = null; }
ImGuiNative.igDebugTextEncoding(native_text);
if (text_byteCount > Util.StackAllocationSizeLimit)
{
Util.Free(native_text);
}
}
public static void DestroyContext()
{
IntPtr ctx = IntPtr.Zero;
@ -10790,6 +10796,16 @@ namespace ImGuiNET
{
ImGuiNative.igSetMouseCursor(cursor_type);
}
public static void SetNextFrameWantCaptureKeyboard(bool want_capture_keyboard)
{
byte native_want_capture_keyboard = want_capture_keyboard ? (byte)1 : (byte)0;
ImGuiNative.igSetNextFrameWantCaptureKeyboard(native_want_capture_keyboard);
}
public static void SetNextFrameWantCaptureMouse(bool want_capture_mouse)
{
byte native_want_capture_mouse = want_capture_mouse ? (byte)1 : (byte)0;
ImGuiNative.igSetNextFrameWantCaptureMouse(native_want_capture_mouse);
}
public static void SetNextItemOpen(bool is_open)
{
byte native_is_open = is_open ? (byte)1 : (byte)0;
@ -11223,6 +11239,18 @@ namespace ImGuiNET
ImGuiNative.igShowAboutWindow(native_p_open);
p_open = native_p_open_val != 0;
}
public static void ShowDebugLogWindow()
{
byte* p_open = null;
ImGuiNative.igShowDebugLogWindow(p_open);
}
public static void ShowDebugLogWindow(ref bool p_open)
{
byte native_p_open_val = p_open ? (byte)1 : (byte)0;
byte* native_p_open = &native_p_open_val;
ImGuiNative.igShowDebugLogWindow(native_p_open);
p_open = native_p_open_val != 0;
}
public static void ShowDemoWindow()
{
byte* p_open = null;

@ -13,6 +13,7 @@ namespace ImGuiNET
AllowWhenBlockedByActiveItem = 128,
AllowWhenOverlapped = 256,
AllowWhenDisabled = 512,
NoNavOverride = 1024,
RectOnly = 416,
RootAndChildWindows = 3,
}

@ -66,7 +66,7 @@ namespace ImGuiNET
public int MetricsActiveAllocations;
public Vector2 MouseDelta;
public fixed int KeyMap[645];
public fixed byte KeysDown[512];
public fixed byte KeysDown[645];
public Vector2 MousePos;
public fixed byte MouseDown[5];
public float MouseWheel;
@ -77,8 +77,7 @@ namespace ImGuiNET
public byte KeyAlt;
public byte KeySuper;
public fixed float NavInputs[20];
public ImGuiKeyModFlags KeyMods;
public ImGuiKeyModFlags KeyModsPrev;
public ImGuiModFlags KeyMods;
public ImGuiKeyData KeysData_0;
public ImGuiKeyData KeysData_1;
public ImGuiKeyData KeysData_2;
@ -751,6 +750,7 @@ namespace ImGuiNET
public fixed float NavInputsDownDurationPrev[20];
public float PenPressure;
public byte AppFocusLost;
public byte AppAcceptingEvents;
public sbyte BackendUsingLegacyKeyArrays;
public byte BackendUsingLegacyNavInputArray;
public ushort InputQueueSurrogate;
@ -823,7 +823,7 @@ namespace ImGuiNET
public ref int MetricsActiveAllocations => ref Unsafe.AsRef<int>(&NativePtr->MetricsActiveAllocations);
public ref Vector2 MouseDelta => ref Unsafe.AsRef<Vector2>(&NativePtr->MouseDelta);
public RangeAccessor<int> KeyMap => new RangeAccessor<int>(NativePtr->KeyMap, 645);
public RangeAccessor<bool> KeysDown => new RangeAccessor<bool>(NativePtr->KeysDown, 512);
public RangeAccessor<bool> KeysDown => new RangeAccessor<bool>(NativePtr->KeysDown, 645);
public ref Vector2 MousePos => ref Unsafe.AsRef<Vector2>(&NativePtr->MousePos);
public RangeAccessor<bool> MouseDown => new RangeAccessor<bool>(NativePtr->MouseDown, 5);
public ref float MouseWheel => ref Unsafe.AsRef<float>(&NativePtr->MouseWheel);
@ -834,8 +834,7 @@ namespace ImGuiNET
public ref bool KeyAlt => ref Unsafe.AsRef<bool>(&NativePtr->KeyAlt);
public ref bool KeySuper => ref Unsafe.AsRef<bool>(&NativePtr->KeySuper);
public RangeAccessor<float> NavInputs => new RangeAccessor<float>(NativePtr->NavInputs, 20);
public ref ImGuiKeyModFlags KeyMods => ref Unsafe.AsRef<ImGuiKeyModFlags>(&NativePtr->KeyMods);
public ref ImGuiKeyModFlags KeyModsPrev => ref Unsafe.AsRef<ImGuiKeyModFlags>(&NativePtr->KeyModsPrev);
public ref ImGuiModFlags KeyMods => ref Unsafe.AsRef<ImGuiModFlags>(&NativePtr->KeyMods);
public RangeAccessor<ImGuiKeyData> KeysData => new RangeAccessor<ImGuiKeyData>(&NativePtr->KeysData_0, 645);
public ref bool WantCaptureMouseUnlessPopupClose => ref Unsafe.AsRef<bool>(&NativePtr->WantCaptureMouseUnlessPopupClose);
public ref Vector2 MousePosPrev => ref Unsafe.AsRef<Vector2>(&NativePtr->MousePosPrev);
@ -856,6 +855,7 @@ namespace ImGuiNET
public RangeAccessor<float> NavInputsDownDurationPrev => new RangeAccessor<float>(NativePtr->NavInputsDownDurationPrev, 20);
public ref float PenPressure => ref Unsafe.AsRef<float>(&NativePtr->PenPressure);
public ref bool AppFocusLost => ref Unsafe.AsRef<bool>(&NativePtr->AppFocusLost);
public ref bool AppAcceptingEvents => ref Unsafe.AsRef<bool>(&NativePtr->AppAcceptingEvents);
public ref sbyte BackendUsingLegacyKeyArrays => ref Unsafe.AsRef<sbyte>(&NativePtr->BackendUsingLegacyKeyArrays);
public ref bool BackendUsingLegacyNavInputArray => ref Unsafe.AsRef<bool>(&NativePtr->BackendUsingLegacyNavInputArray);
public ref ushort InputQueueSurrogate => ref Unsafe.AsRef<ushort>(&NativePtr->InputQueueSurrogate);
@ -938,6 +938,11 @@ namespace ImGuiNET
{
ImGuiNative.ImGuiIO_destroy((ImGuiIO*)(NativePtr));
}
public void SetAppAcceptingEvents(bool accepting_events)
{
byte native_accepting_events = accepting_events ? (byte)1 : (byte)0;
ImGuiNative.ImGuiIO_SetAppAcceptingEvents((ImGuiIO*)(NativePtr), native_accepting_events);
}
public void SetKeyEventNativeData(ImGuiKey key, int native_keycode, int native_scancode)
{
int native_legacy_index = -1;

@ -1,7 +1,7 @@
namespace ImGuiNET
{
[System.Flags]
public enum ImGuiKeyModFlags
public enum ImGuiModFlags
{
None = 0,
Ctrl = 1,

@ -67,10 +67,6 @@ namespace ImGuiNET
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igCalcTextSize(Vector2* pOut, byte* text, byte* text_end, byte hide_text_after_double_hash, float wrap_width);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igCaptureKeyboardFromApp(byte want_capture_keyboard_value);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igCaptureMouseFromApp(byte want_capture_mouse_value);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte igCheckbox(byte* label, byte* v);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte igCheckboxFlags_IntPtr(byte* label, int* flags, int flags_value);
@ -111,6 +107,8 @@ namespace ImGuiNET
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern byte igDebugCheckVersionAndDataLayout(byte* version_str, uint sz_io, uint sz_style, uint sz_vec2, uint sz_vec4, uint sz_drawvert, uint sz_drawidx);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igDebugTextEncoding(byte* text);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igDestroyContext(IntPtr ctx);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igDestroyPlatformWindows();
@ -569,6 +567,10 @@ namespace ImGuiNET
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igSetMouseCursor(ImGuiMouseCursor cursor_type);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igSetNextFrameWantCaptureKeyboard(byte want_capture_keyboard);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igSetNextFrameWantCaptureMouse(byte want_capture_mouse);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igSetNextItemOpen(byte is_open, ImGuiCond cond);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igSetNextItemWidth(float item_width);
@ -631,6 +633,8 @@ namespace ImGuiNET
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igShowAboutWindow(byte* p_open);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igShowDebugLogWindow(byte* p_open);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igShowDemoWindow(byte* p_open);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void igShowFontSelector(byte* label);
@ -761,14 +765,14 @@ namespace ImGuiNET
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern ImColor* ImColor_ImColor_Nil();
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern ImColor* ImColor_ImColor_Int(int r, int g, int b, int a);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern ImColor* ImColor_ImColor_U32(uint rgba);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern ImColor* ImColor_ImColor_Float(float r, float g, float b, float a);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern ImColor* ImColor_ImColor_Vec4(Vector4 col);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern ImColor* ImColor_ImColor_Int(int r, int g, int b, int a);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern ImColor* ImColor_ImColor_U32(uint rgba);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void ImColor_SetHSV(ImColor* self, float h, float s, float v, float a);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void ImDrawCmd_destroy(ImDrawCmd* self);
@ -1099,6 +1103,8 @@ namespace ImGuiNET
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern ImGuiIO* ImGuiIO_ImGuiIO();
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void ImGuiIO_SetAppAcceptingEvents(ImGuiIO* self, byte accepting_events);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void ImGuiIO_SetKeyEventNativeData(ImGuiIO* self, ImGuiKey key, int native_keycode, int native_scancode, int native_legacy_index);
[DllImport("cimgui", CallingConvention = CallingConvention.Cdecl)]
public static extern void ImGuiListClipper_Begin(ImGuiListClipper* self, int items_count, float items_height);

@ -0,0 +1,13 @@
namespace ImPlotNET
{
public enum ImAxis
{
X1 = 0,
X2 = 1,
X3 = 2,
Y1 = 3,
Y2 = 4,
Y3 = 5,
COUNT = 6,
}
}

File diff suppressed because it is too large Load Diff

@ -8,12 +8,20 @@ namespace ImPlotNET
NoGridLines = 2,
NoTickMarks = 4,
NoTickLabels = 8,
LogScale = 16,
Time = 32,
Invert = 64,
LockMin = 128,
LockMax = 256,
Lock = 384,
NoInitialFit = 16,
NoMenus = 32,
NoSideSwitch = 64,
NoHighlight = 128,
Opposite = 256,
Foreground = 512,
Invert = 1024,
AutoFit = 2048,
RangeFit = 4096,
PanStretch = 8192,
LockMin = 16384,
LockMax = 32768,
Lock = 49152,
NoDecorations = 15,
AuxDefault = 258,
}
}

@ -0,0 +1,10 @@
namespace ImPlotNET
{
[System.Flags]
public enum ImPlotBarGroupsFlags
{
None = 0,
Horizontal = 1024,
Stacked = 2048,
}
}

@ -0,0 +1,9 @@
namespace ImPlotNET
{
[System.Flags]
public enum ImPlotBarsFlags
{
None = 0,
Horizontal = 1024,
}
}

@ -0,0 +1,10 @@
namespace ImPlotNET
{
public enum ImPlotBin
{
Sqrt = -1,
Sturges = -2,
Rice = -3,
Scott = -4,
}
}

@ -15,17 +15,14 @@ namespace ImPlotNET
LegendText = 10,
TitleText = 11,
InlayText = 12,
XAxis = 13,
XAxisGrid = 14,
YAxis = 15,
YAxisGrid = 16,
YAxis2 = 17,
YAxisGrid2 = 18,
YAxis3 = 19,
YAxisGrid3 = 20,
Selection = 21,
Query = 22,
Crosshairs = 23,
COUNT = 24,
AxisText = 13,
AxisGrid = 14,
AxisTick = 15,
AxisBg = 16,
AxisBgHovered = 17,
AxisBgActive = 18,
Selection = 19,
Crosshairs = 20,
COUNT = 21,
}
}

@ -2,17 +2,21 @@ namespace ImPlotNET
{
public enum ImPlotColormap
{
Default = 0,
Deep = 1,
Dark = 2,
Pastel = 3,
Paired = 4,
Viridis = 5,
Plasma = 6,
Hot = 7,
Cool = 8,
Pink = 9,
Jet = 10,
COUNT = 11,
Deep = 0,
Dark = 1,
Pastel = 2,
Paired = 3,
Viridis = 4,
Plasma = 5,
Hot = 6,
Cool = 7,
Pink = 8,
Jet = 9,
Twilight = 10,
RdBu = 11,
BrBG = 12,
PiYG = 13,
Spectral = 14,
Greys = 15,
}
}

@ -0,0 +1,11 @@
namespace ImPlotNET
{
[System.Flags]
public enum ImPlotColormapScaleFlags
{
None = 0,
NoLabel = 1,
Opposite = 2,
Invert = 4,
}
}

@ -0,0 +1,9 @@
namespace ImPlotNET
{
public enum ImPlotCond
{
None = 0,
Always = 1,
Once = 2,
}
}

@ -0,0 +1,8 @@
namespace ImPlotNET
{
[System.Flags]
public enum ImPlotDigitalFlags
{
None = 0,
}
}

@ -0,0 +1,12 @@
namespace ImPlotNET
{
[System.Flags]
public enum ImPlotDragToolFlags
{
None = 0,
NoCursors = 1,
NoFit = 2,
NoInputs = 4,
Delayed = 8,
}
}

@ -0,0 +1,8 @@
namespace ImPlotNET
{
[System.Flags]
public enum ImPlotDummyFlags
{
None = 0,
}
}

@ -0,0 +1,9 @@
namespace ImPlotNET
{
[System.Flags]
public enum ImPlotErrorBarsFlags
{
None = 0,
Horizontal = 1024,
}
}

@ -6,17 +6,14 @@ namespace ImPlotNET
None = 0,
NoTitle = 1,
NoLegend = 2,
NoMenus = 4,
NoBoxSelect = 8,
NoMousePos = 16,
NoHighlight = 32,
NoMouseText = 4,
NoInputs = 8,
NoMenus = 16,
NoBoxSelect = 32,
NoChild = 64,
Equal = 128,
YAxis2 = 256,
YAxis3 = 512,
Query = 1024,
Crosshairs = 2048,
AntiAliased = 4096,
CanvasOnly = 31,
NoFrame = 128,
Equal = 256,
Crosshairs = 512,
CanvasOnly = 55,
}
}

@ -0,0 +1,9 @@
namespace ImPlotNET
{
[System.Flags]
public enum ImPlotHeatmapFlags
{
None = 0,
ColMajor = 1024,
}
}

@ -0,0 +1,13 @@
namespace ImPlotNET
{
[System.Flags]
public enum ImPlotHistogramFlags
{
None = 0,
Horizontal = 1024,
Cumulative = 2048,
Density = 4096,
NoOutliers = 8192,
ColMajor = 16384,
}
}

@ -0,0 +1,8 @@
namespace ImPlotNET
{
[System.Flags]
public enum ImPlotImageFlags
{
None = 0,
}
}

@ -0,0 +1,9 @@
namespace ImPlotNET
{
[System.Flags]
public enum ImPlotInfLinesFlags
{
None = 0,
Horizontal = 1024,
}
}

@ -0,0 +1,49 @@
using System;
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Text;
using ImGuiNET;
namespace ImPlotNET
{
public unsafe partial struct ImPlotInputMap
{
public ImGuiMouseButton Pan;
public ImGuiModFlags PanMod;
public ImGuiMouseButton Fit;
public ImGuiMouseButton Select;
public ImGuiMouseButton SelectCancel;
public ImGuiModFlags SelectMod;
public ImGuiModFlags SelectHorzMod;
public ImGuiModFlags SelectVertMod;
public ImGuiMouseButton Menu;
public ImGuiModFlags OverrideMod;
public ImGuiModFlags ZoomMod;
public float ZoomRate;
}
public unsafe partial struct ImPlotInputMapPtr
{
public ImPlotInputMap* NativePtr { get; }
public ImPlotInputMapPtr(ImPlotInputMap* nativePtr) => NativePtr = nativePtr;
public ImPlotInputMapPtr(IntPtr nativePtr) => NativePtr = (ImPlotInputMap*)nativePtr;
public static implicit operator ImPlotInputMapPtr(ImPlotInputMap* nativePtr) => new ImPlotInputMapPtr(nativePtr);
public static implicit operator ImPlotInputMap* (ImPlotInputMapPtr wrappedPtr) => wrappedPtr.NativePtr;
public static implicit operator ImPlotInputMapPtr(IntPtr nativePtr) => new ImPlotInputMapPtr(nativePtr);
public ref ImGuiMouseButton Pan => ref Unsafe.AsRef<ImGuiMouseButton>(&NativePtr->Pan);
public ref ImGuiModFlags PanMod => ref Unsafe.AsRef<ImGuiModFlags>(&NativePtr->PanMod);
public ref ImGuiMouseButton Fit => ref Unsafe.AsRef<ImGuiMouseButton>(&NativePtr->Fit);
public ref ImGuiMouseButton Select => ref Unsafe.AsRef<ImGuiMouseButton>(&NativePtr->Select);
public ref ImGuiMouseButton SelectCancel => ref Unsafe.AsRef<ImGuiMouseButton>(&NativePtr->SelectCancel);
public ref ImGuiModFlags SelectMod => ref Unsafe.AsRef<ImGuiModFlags>(&NativePtr->SelectMod);
public ref ImGuiModFlags SelectHorzMod => ref Unsafe.AsRef<ImGuiModFlags>(&NativePtr->SelectHorzMod);
public ref ImGuiModFlags SelectVertMod => ref Unsafe.AsRef<ImGuiModFlags>(&NativePtr->SelectVertMod);
public ref ImGuiMouseButton Menu => ref Unsafe.AsRef<ImGuiMouseButton>(&NativePtr->Menu);
public ref ImGuiModFlags OverrideMod => ref Unsafe.AsRef<ImGuiModFlags>(&NativePtr->OverrideMod);
public ref ImGuiModFlags ZoomMod => ref Unsafe.AsRef<ImGuiModFlags>(&NativePtr->ZoomMod);
public ref float ZoomRate => ref Unsafe.AsRef<float>(&NativePtr->ZoomRate);
public void Destroy()
{
ImPlotNative.ImPlotInputMap_destroy((ImPlotInputMap*)(NativePtr));
}
}
}

@ -0,0 +1,10 @@
namespace ImPlotNET
{
[System.Flags]
public enum ImPlotItemFlags
{
None = 0,
NoLegend = 1,
NoFit = 2,
}
}

@ -0,0 +1,15 @@
namespace ImPlotNET
{
[System.Flags]
public enum ImPlotLegendFlags
{
None = 0,
NoButtons = 1,
NoHighlightItem = 2,
NoHighlightAxis = 4,
NoMenus = 8,
Outside = 16,
Horizontal = 32,
Sort = 64,
}
}

@ -1,35 +0,0 @@
using System;
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Text;
using ImGuiNET;
namespace ImPlotNET
{
public unsafe partial struct ImPlotLimits
{
public ImPlotRange X;
public ImPlotRange Y;
}
public unsafe partial struct ImPlotLimitsPtr
{
public ImPlotLimits* NativePtr { get; }
public ImPlotLimitsPtr(ImPlotLimits* nativePtr) => NativePtr = nativePtr;
public ImPlotLimitsPtr(IntPtr nativePtr) => NativePtr = (ImPlotLimits*)nativePtr;
public static implicit operator ImPlotLimitsPtr(ImPlotLimits* nativePtr) => new ImPlotLimitsPtr(nativePtr);
public static implicit operator ImPlotLimits* (ImPlotLimitsPtr wrappedPtr) => wrappedPtr.NativePtr;
public static implicit operator ImPlotLimitsPtr(IntPtr nativePtr) => new ImPlotLimitsPtr(nativePtr);
public ref ImPlotRange X => ref Unsafe.AsRef<ImPlotRange>(&NativePtr->X);
public ref ImPlotRange Y => ref Unsafe.AsRef<ImPlotRange>(&NativePtr->Y);
public bool Contains(ImPlotPoint p)
{
byte ret = ImPlotNative.ImPlotLimits_ContainsPlotPoInt((ImPlotLimits*)(NativePtr), p);
return ret != 0;
}
public bool Contains(double x, double y)
{
byte ret = ImPlotNative.ImPlotLimits_Containsdouble((ImPlotLimits*)(NativePtr), x, y);
return ret != 0;
}
}
}

@ -0,0 +1,13 @@
namespace ImPlotNET
{
[System.Flags]
public enum ImPlotLineFlags
{
None = 0,
Segments = 1024,
Loop = 2048,
SkipNaN = 4096,
NoClip = 8192,
Shaded = 16384,
}
}

@ -0,0 +1,11 @@
namespace ImPlotNET
{
[System.Flags]
public enum ImPlotMouseTextFlags
{
None = 0,
NoAuxAxes = 1,
NoFormat = 2,
ShowAlways = 4,
}
}

File diff suppressed because it is too large Load Diff

@ -1,8 +0,0 @@
namespace ImPlotNET
{
public enum ImPlotOrientation
{
Horizontal = 0,
Vertical = 1,
}
}

@ -0,0 +1,9 @@
namespace ImPlotNET
{
[System.Flags]
public enum ImPlotPieChartFlags
{
None = 0,
Normalize = 1024,
}
}

@ -21,6 +21,11 @@ namespace ImPlotNET
public static implicit operator ImPlotRangePtr(IntPtr nativePtr) => new ImPlotRangePtr(nativePtr);
public ref double Min => ref Unsafe.AsRef<double>(&NativePtr->Min);
public ref double Max => ref Unsafe.AsRef<double>(&NativePtr->Max);
public double Clamp(double value)
{
double ret = ImPlotNative.ImPlotRange_Clamp((ImPlotRange*)(NativePtr), value);
return ret;
}
public bool Contains(double value)
{
byte ret = ImPlotNative.ImPlotRange_Contains((ImPlotRange*)(NativePtr), value);

@ -0,0 +1,69 @@
using System;
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Text;
using ImGuiNET;
namespace ImPlotNET
{
public unsafe partial struct ImPlotRect
{
public ImPlotRange X;
public ImPlotRange Y;
}
public unsafe partial struct ImPlotRectPtr
{
public ImPlotRect* NativePtr { get; }
public ImPlotRectPtr(ImPlotRect* nativePtr) => NativePtr = nativePtr;
public ImPlotRectPtr(IntPtr nativePtr) => NativePtr = (ImPlotRect*)nativePtr;
public static implicit operator ImPlotRectPtr(ImPlotRect* nativePtr) => new ImPlotRectPtr(nativePtr);
public static implicit operator ImPlotRect* (ImPlotRectPtr wrappedPtr) => wrappedPtr.NativePtr;
public static implicit operator ImPlotRectPtr(IntPtr nativePtr) => new ImPlotRectPtr(nativePtr);
public ref ImPlotRange X => ref Unsafe.AsRef<ImPlotRange>(&NativePtr->X);
public ref ImPlotRange Y => ref Unsafe.AsRef<ImPlotRange>(&NativePtr->Y);
public ImPlotPoint Clamp(ImPlotPoint p)
{
ImPlotPoint __retval;
ImPlotNative.ImPlotRect_Clamp_PlotPoInt(&__retval, (ImPlotRect*)(NativePtr), p);
return __retval;
}
public ImPlotPoint Clamp(double x, double y)
{
ImPlotPoint __retval;
ImPlotNative.ImPlotRect_Clamp_double(&__retval, (ImPlotRect*)(NativePtr), x, y);
return __retval;
}
public bool Contains(ImPlotPoint p)
{
byte ret = ImPlotNative.ImPlotRect_Contains_PlotPoInt((ImPlotRect*)(NativePtr), p);
return ret != 0;
}
public bool Contains(double x, double y)
{
byte ret = ImPlotNative.ImPlotRect_Contains_double((ImPlotRect*)(NativePtr), x, y);
return ret != 0;
}
public void Destroy()
{
ImPlotNative.ImPlotRect_destroy((ImPlotRect*)(NativePtr));
}
public ImPlotPoint Max()
{
ImPlotPoint __retval;
ImPlotNative.ImPlotRect_Max(&__retval, (ImPlotRect*)(NativePtr));
return __retval;
}
public ImPlotPoint Min()
{
ImPlotPoint __retval;
ImPlotNative.ImPlotRect_Min(&__retval, (ImPlotRect*)(NativePtr));
return __retval;
}
public ImPlotPoint Size()
{
ImPlotPoint __retval;
ImPlotNative.ImPlotRect_Size(&__retval, (ImPlotRect*)(NativePtr));
return __retval;
}
}
}

@ -0,0 +1,10 @@
namespace ImPlotNET
{
public enum ImPlotScale
{
Linear = 0,
Time = 1,
Log10 = 2,
SymLog = 3,
}
}

@ -0,0 +1,9 @@
namespace ImPlotNET
{
[System.Flags]
public enum ImPlotScatterFlags
{
None = 0,
NoClip = 1024,
}
}

@ -0,0 +1,8 @@
namespace ImPlotNET
{
[System.Flags]
public enum ImPlotShadedFlags
{
None = 0,
}
}

@ -0,0 +1,10 @@
namespace ImPlotNET
{
[System.Flags]
public enum ImPlotStairsFlags
{
None = 0,
PreStep = 1024,
Shaded = 2048,
}
}

@ -0,0 +1,9 @@
namespace ImPlotNET
{
[System.Flags]
public enum ImPlotStemsFlags
{
None = 0,
Horizontal = 1024,
}
}

@ -56,10 +56,7 @@ namespace ImPlotNET
public Vector4 Colors_18;
public Vector4 Colors_19;
public Vector4 Colors_20;
public Vector4 Colors_21;
public Vector4 Colors_22;
public Vector4 Colors_23;
public byte AntiAliasedLines;
public ImPlotColormap Colormap;
public byte UseLocalTime;
public byte UseISO8601;
public byte Use24HourClock;
@ -99,8 +96,8 @@ namespace ImPlotNET
public ref Vector2 FitPadding => ref Unsafe.AsRef<Vector2>(&NativePtr->FitPadding);
public ref Vector2 PlotDefaultSize => ref Unsafe.AsRef<Vector2>(&NativePtr->PlotDefaultSize);
public ref Vector2 PlotMinSize => ref Unsafe.AsRef<Vector2>(&NativePtr->PlotMinSize);
public RangeAccessor<Vector4> Colors => new RangeAccessor<Vector4>(&NativePtr->Colors_0, 24);
public ref bool AntiAliasedLines => ref Unsafe.AsRef<bool>(&NativePtr->AntiAliasedLines);
public RangeAccessor<Vector4> Colors => new RangeAccessor<Vector4>(&NativePtr->Colors_0, 21);
public ref ImPlotColormap Colormap => ref Unsafe.AsRef<ImPlotColormap>(&NativePtr->Colormap);
public ref bool UseLocalTime => ref Unsafe.AsRef<bool>(&NativePtr->UseLocalTime);
public ref bool UseISO8601 => ref Unsafe.AsRef<bool>(&NativePtr->UseISO8601);
public ref bool Use24HourClock => ref Unsafe.AsRef<bool>(&NativePtr->Use24HourClock);

@ -0,0 +1,19 @@
namespace ImPlotNET
{
[System.Flags]
public enum ImPlotSubplotFlags
{
None = 0,
NoTitle = 1,
NoLegend = 2,
NoMenus = 4,
NoResize = 8,
NoAlign = 16,
ShareItems = 32,
LinkRows = 64,
LinkCols = 128,
LinkAllX = 256,
LinkAllY = 512,
ColMajor = 1024,
}
}

@ -0,0 +1,9 @@
namespace ImPlotNET
{
[System.Flags]
public enum ImPlotTextFlags
{
None = 0,
Vertical = 1024,
}
}

@ -1,9 +0,0 @@
namespace ImPlotNET
{
public enum ImPlotYAxis
{
_1 = 0,
_2 = 1,
_3 = 2,
}
}
Loading…
Cancel
Save