feat(api): update imnodes bindings to latest version (#282)

resolve #193
fixes #290

* fix(api): fix imnodes getNode___Pos & generate latest bindings
* fix(api): add optional arguments for ImNodes style methods
This commit is contained in:
Sebastian Erives authored and GitHub committed 2024-10-21 09:53:00 +03:00
1 parent c776b1b384
commit 7be2a2942f
13 files changed
+1021 -1990

No files matched your search

File diff suppressed because it is too large. Load diff
@@ -17,7 +17,7 @@
"name" : "drawlist", "name" : "drawlist",
"qualType" : "int *", "qualType" : "int *",
"desugaredQualType" : "int *", "desugaredQualType" : "int *",
"defaultValue" : "=" "defaultValue" : "nullptr"
}, { }, {
"@type" : "AstFullComment", "@type" : "AstFullComment",
"decls" : [ { "decls" : [ {
@@ -471,12 +471,12 @@
}, { }, {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "operation", "name" : "operation",
"qualType" : "OPERATION", "qualType" : "ImGuizmo::OPERATION",
"desugaredQualType" : "ImGuizmo::OPERATION" "desugaredQualType" : "ImGuizmo::OPERATION"
}, { }, {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "mode", "name" : "mode",
"qualType" : "MODE", "qualType" : "ImGuizmo::MODE",
"desugaredQualType" : "ImGuizmo::MODE" "desugaredQualType" : "ImGuizmo::MODE"
}, { }, {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
@@ -570,7 +570,7 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "op", "name" : "op",
"qualType" : "OPERATION", "qualType" : "ImGuizmo::OPERATION",
"desugaredQualType" : "ImGuizmo::OPERATION" "desugaredQualType" : "ImGuizmo::OPERATION"
}, { }, {
"@type" : "AstFullComment", "@type" : "AstFullComment",
File diff suppressed because it is too large. Load diff
@@ -13359,8 +13359,8 @@
}, { }, {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "out", "name" : "out",
"qualType" : "ImVector<ImGuiTextRange> *", "qualType" : "ImVector<ImGuiTextFilter::ImGuiTextRange> *",
"desugaredQualType" : "ImVector<ImGuiTextRange> *" "desugaredQualType" : "ImVector<ImGuiTextFilter::ImGuiTextRange> *"
} ] } ]
} ] } ]
}, { }, {
@@ -13371,7 +13371,7 @@
}, { }, {
"@type" : "AstFieldDecl", "@type" : "AstFieldDecl",
"name" : "Filters", "name" : "Filters",
"qualType" : "ImVector<ImGuiTextRange>", "qualType" : "ImVector<ImGuiTextFilter::ImGuiTextRange>",
"desugaredQualType" : "ImVector<ImGuiTextFilter::ImGuiTextRange>" "desugaredQualType" : "ImVector<ImGuiTextFilter::ImGuiTextRange>"
}, { }, {
"@type" : "AstFieldDecl", "@type" : "AstFieldDecl",
@@ -13539,7 +13539,7 @@
}, { }, {
"@type" : "AstFieldDecl", "@type" : "AstFieldDecl",
"name" : "Data", "name" : "Data",
"qualType" : "ImVector<ImGuiStoragePair>", "qualType" : "ImVector<ImGuiStorage::ImGuiStoragePair>",
"desugaredQualType" : "ImVector<ImGuiStorage::ImGuiStoragePair>" "desugaredQualType" : "ImVector<ImGuiStorage::ImGuiStoragePair>"
}, { }, {
"@type" : "AstFunctionDecl", "@type" : "AstFunctionDecl",
@@ -28526,8 +28526,8 @@
}, { }, {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "out", "name" : "out",
"qualType" : "ImVector<ImGuiTextRange> *", "qualType" : "ImVector<ImGuiTextFilter::ImGuiTextRange> *",
"desugaredQualType" : "ImVector<ImGuiTextRange> *" "desugaredQualType" : "ImVector<ImGuiTextFilter::ImGuiTextRange> *"
} ] } ]
} ] } ]
}, { }, {
@@ -28538,7 +28538,7 @@
}, { }, {
"@type" : "AstFieldDecl", "@type" : "AstFieldDecl",
"name" : "Filters", "name" : "Filters",
"qualType" : "ImVector<ImGuiTextRange>", "qualType" : "ImVector<ImGuiTextFilter::ImGuiTextRange>",
"desugaredQualType" : "ImVector<ImGuiTextFilter::ImGuiTextRange>" "desugaredQualType" : "ImVector<ImGuiTextFilter::ImGuiTextRange>"
}, { }, {
"@type" : "AstFieldDecl", "@type" : "AstFieldDecl",
@@ -28705,7 +28705,7 @@
}, { }, {
"@type" : "AstFieldDecl", "@type" : "AstFieldDecl",
"name" : "Data", "name" : "Data",
"qualType" : "ImVector<ImGuiStoragePair>", "qualType" : "ImVector<ImGuiStorage::ImGuiStoragePair>",
"desugaredQualType" : "ImVector<ImGuiStorage::ImGuiStoragePair>" "desugaredQualType" : "ImVector<ImGuiStorage::ImGuiStoragePair>"
}, { }, {
"@type" : "AstFunctionDecl", "@type" : "AstFunctionDecl",
@@ -99,33 +99,33 @@
}, { }, {
"@type" : "AstFieldDecl", "@type" : "AstFieldDecl",
"name" : "BeginSaveSession", "name" : "BeginSaveSession",
"qualType" : "ConfigSession", "qualType" : "ax::NodeEditor::ConfigSession",
"desugaredQualType" : "void (*)(void *)" "desugaredQualType" : "void (*)(void *)"
}, { }, {
"@type" : "AstFieldDecl", "@type" : "AstFieldDecl",
"name" : "EndSaveSession", "name" : "EndSaveSession",
"qualType" : "ConfigSession", "qualType" : "ax::NodeEditor::ConfigSession",
"desugaredQualType" : "void (*)(void *)" "desugaredQualType" : "void (*)(void *)"
}, { }, {
"@type" : "AstFieldDecl", "@type" : "AstFieldDecl",
"name" : "SaveSettings", "name" : "SaveSettings",
"qualType" : "ConfigSaveSettings", "qualType" : "ax::NodeEditor::ConfigSaveSettings",
"desugaredQualType" : "bool (*)(const char *, size_t, SaveReasonFlags, void *)" "desugaredQualType" : "bool (*)(const char *, int, ax::NodeEditor::SaveReasonFlags, void *)"
}, { }, {
"@type" : "AstFieldDecl", "@type" : "AstFieldDecl",
"name" : "LoadSettings", "name" : "LoadSettings",
"qualType" : "ConfigLoadSettings", "qualType" : "int",
"desugaredQualType" : "size_t (*)(char *, void *)" "desugaredQualType" : "int"
}, { }, {
"@type" : "AstFieldDecl", "@type" : "AstFieldDecl",
"name" : "SaveNodeSettings", "name" : "SaveNodeSettings",
"qualType" : "ConfigSaveNodeSettings", "qualType" : "ax::NodeEditor::ConfigSaveNodeSettings",
"desugaredQualType" : "bool (*)(NodeId, const char *, size_t, SaveReasonFlags, void *)" "desugaredQualType" : "bool (*)(ax::NodeEditor::NodeId, const char *, int, ax::NodeEditor::SaveReasonFlags, void *)"
}, { }, {
"@type" : "AstFieldDecl", "@type" : "AstFieldDecl",
"name" : "LoadNodeSettings", "name" : "LoadNodeSettings",
"qualType" : "ConfigLoadNodeSettings", "qualType" : "int",
"desugaredQualType" : "size_t (*)(NodeId, char *, void *)" "desugaredQualType" : "int"
}, { }, {
"@type" : "AstFieldDecl", "@type" : "AstFieldDecl",
"name" : "UserPointer", "name" : "UserPointer",
@@ -612,8 +612,8 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "ctx", "name" : "ctx",
"qualType" : "EditorContext *", "qualType" : "ax::NodeEditor::EditorContext *",
"desugaredQualType" : "EditorContext *" "desugaredQualType" : "ax::NodeEditor::EditorContext *"
}, { }, {
"@type" : "AstFullComment", "@type" : "AstFullComment",
"decls" : [ { "decls" : [ {
@@ -627,16 +627,16 @@
}, { }, {
"@type" : "AstFunctionDecl", "@type" : "AstFunctionDecl",
"name" : "GetCurrentEditor", "name" : "GetCurrentEditor",
"resultType" : "EditorContext *" "resultType" : "ax::NodeEditor::EditorContext *"
}, { }, {
"@type" : "AstFunctionDecl", "@type" : "AstFunctionDecl",
"name" : "CreateEditor", "name" : "CreateEditor",
"resultType" : "EditorContext *", "resultType" : "ax::NodeEditor::EditorContext *",
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "config", "name" : "config",
"qualType" : "const Config *", "qualType" : "const ax::NodeEditor::Config *",
"desugaredQualType" : "const Config *", "desugaredQualType" : "const ax::NodeEditor::Config *",
"defaultValue" : "nullptr" "defaultValue" : "nullptr"
} ] } ]
}, { }, {
@@ -646,13 +646,13 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "ctx", "name" : "ctx",
"qualType" : "EditorContext *", "qualType" : "ax::NodeEditor::EditorContext *",
"desugaredQualType" : "EditorContext *" "desugaredQualType" : "ax::NodeEditor::EditorContext *"
} ] } ]
}, { }, {
"@type" : "AstFunctionDecl", "@type" : "AstFunctionDecl",
"name" : "GetStyle", "name" : "GetStyle",
"resultType" : "Style &" "resultType" : "ax::NodeEditor::Style &"
}, { }, {
"@type" : "AstFunctionDecl", "@type" : "AstFunctionDecl",
"name" : "GetStyleColorName", "name" : "GetStyleColorName",
@@ -660,7 +660,7 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "colorIndex", "name" : "colorIndex",
"qualType" : "StyleColor", "qualType" : "ax::NodeEditor::StyleColor",
"desugaredQualType" : "ax::NodeEditor::StyleColor" "desugaredQualType" : "ax::NodeEditor::StyleColor"
} ] } ]
}, { }, {
@@ -670,7 +670,7 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "colorIndex", "name" : "colorIndex",
"qualType" : "StyleColor", "qualType" : "ax::NodeEditor::StyleColor",
"desugaredQualType" : "ax::NodeEditor::StyleColor" "desugaredQualType" : "ax::NodeEditor::StyleColor"
}, { }, {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
@@ -696,7 +696,7 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "varIndex", "name" : "varIndex",
"qualType" : "StyleVar", "qualType" : "ax::NodeEditor::StyleVar",
"desugaredQualType" : "ax::NodeEditor::StyleVar" "desugaredQualType" : "ax::NodeEditor::StyleVar"
}, { }, {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
@@ -711,7 +711,7 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "varIndex", "name" : "varIndex",
"qualType" : "StyleVar", "qualType" : "ax::NodeEditor::StyleVar",
"desugaredQualType" : "ax::NodeEditor::StyleVar" "desugaredQualType" : "ax::NodeEditor::StyleVar"
}, { }, {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
@@ -726,7 +726,7 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "varIndex", "name" : "varIndex",
"qualType" : "StyleVar", "qualType" : "ax::NodeEditor::StyleVar",
"desugaredQualType" : "ax::NodeEditor::StyleVar" "desugaredQualType" : "ax::NodeEditor::StyleVar"
}, { }, {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
@@ -772,7 +772,7 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "id", "name" : "id",
"qualType" : "NodeId", "qualType" : "ax::NodeEditor::NodeId",
"desugaredQualType" : "ax::NodeEditor::NodeId" "desugaredQualType" : "ax::NodeEditor::NodeId"
} ] } ]
}, { }, {
@@ -782,12 +782,12 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "id", "name" : "id",
"qualType" : "PinId", "qualType" : "ax::NodeEditor::PinId",
"desugaredQualType" : "ax::NodeEditor::PinId" "desugaredQualType" : "ax::NodeEditor::PinId"
}, { }, {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "kind", "name" : "kind",
"qualType" : "PinKind", "qualType" : "ax::NodeEditor::PinKind",
"desugaredQualType" : "ax::NodeEditor::PinKind" "desugaredQualType" : "ax::NodeEditor::PinKind"
} ] } ]
}, { }, {
@@ -875,7 +875,7 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "nodeId", "name" : "nodeId",
"qualType" : "NodeId", "qualType" : "ax::NodeEditor::NodeId",
"desugaredQualType" : "ax::NodeEditor::NodeId" "desugaredQualType" : "ax::NodeEditor::NodeId"
} ] } ]
}, { }, {
@@ -905,7 +905,7 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "nodeId", "name" : "nodeId",
"qualType" : "NodeId", "qualType" : "ax::NodeEditor::NodeId",
"desugaredQualType" : "ax::NodeEditor::NodeId" "desugaredQualType" : "ax::NodeEditor::NodeId"
}, { }, {
"@type" : "AstFullComment", "@type" : "AstFullComment",
@@ -924,17 +924,17 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "id", "name" : "id",
"qualType" : "LinkId", "qualType" : "ax::NodeEditor::LinkId",
"desugaredQualType" : "ax::NodeEditor::LinkId" "desugaredQualType" : "ax::NodeEditor::LinkId"
}, { }, {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "startPinId", "name" : "startPinId",
"qualType" : "PinId", "qualType" : "ax::NodeEditor::PinId",
"desugaredQualType" : "ax::NodeEditor::PinId" "desugaredQualType" : "ax::NodeEditor::PinId"
}, { }, {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "endPinId", "name" : "endPinId",
"qualType" : "PinId", "qualType" : "ax::NodeEditor::PinId",
"desugaredQualType" : "ax::NodeEditor::PinId" "desugaredQualType" : "ax::NodeEditor::PinId"
}, { }, {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
@@ -956,12 +956,12 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "linkId", "name" : "linkId",
"qualType" : "LinkId", "qualType" : "ax::NodeEditor::LinkId",
"desugaredQualType" : "ax::NodeEditor::LinkId" "desugaredQualType" : "ax::NodeEditor::LinkId"
}, { }, {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "direction", "name" : "direction",
"qualType" : "FlowDirection", "qualType" : "ax::NodeEditor::FlowDirection",
"desugaredQualType" : "ax::NodeEditor::FlowDirection", "desugaredQualType" : "ax::NodeEditor::FlowDirection",
"defaultValue" : "FlowDirection::Forward" "defaultValue" : "FlowDirection::Forward"
} ] } ]
@@ -989,13 +989,13 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "startId", "name" : "startId",
"qualType" : "PinId *", "qualType" : "ax::NodeEditor::PinId *",
"desugaredQualType" : "PinId *" "desugaredQualType" : "ax::NodeEditor::PinId *"
}, { }, {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "endId", "name" : "endId",
"qualType" : "PinId *", "qualType" : "ax::NodeEditor::PinId *",
"desugaredQualType" : "PinId *" "desugaredQualType" : "ax::NodeEditor::PinId *"
} ] } ]
}, { }, {
"@type" : "AstFunctionDecl", "@type" : "AstFunctionDecl",
@@ -1004,13 +1004,13 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "startId", "name" : "startId",
"qualType" : "PinId *", "qualType" : "ax::NodeEditor::PinId *",
"desugaredQualType" : "PinId *" "desugaredQualType" : "ax::NodeEditor::PinId *"
}, { }, {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "endId", "name" : "endId",
"qualType" : "PinId *", "qualType" : "ax::NodeEditor::PinId *",
"desugaredQualType" : "PinId *" "desugaredQualType" : "ax::NodeEditor::PinId *"
}, { }, {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "color", "name" : "color",
@@ -1030,8 +1030,8 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "pinId", "name" : "pinId",
"qualType" : "PinId *", "qualType" : "ax::NodeEditor::PinId *",
"desugaredQualType" : "PinId *" "desugaredQualType" : "ax::NodeEditor::PinId *"
} ] } ]
}, { }, {
"@type" : "AstFunctionDecl", "@type" : "AstFunctionDecl",
@@ -1040,8 +1040,8 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "pinId", "name" : "pinId",
"qualType" : "PinId *", "qualType" : "ax::NodeEditor::PinId *",
"desugaredQualType" : "PinId *" "desugaredQualType" : "ax::NodeEditor::PinId *"
}, { }, {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "color", "name" : "color",
@@ -1109,19 +1109,19 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "linkId", "name" : "linkId",
"qualType" : "LinkId *", "qualType" : "ax::NodeEditor::LinkId *",
"desugaredQualType" : "LinkId *" "desugaredQualType" : "ax::NodeEditor::LinkId *"
}, { }, {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "startId", "name" : "startId",
"qualType" : "PinId *", "qualType" : "ax::NodeEditor::PinId *",
"desugaredQualType" : "PinId *", "desugaredQualType" : "ax::NodeEditor::PinId *",
"defaultValue" : "nullptr" "defaultValue" : "nullptr"
}, { }, {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "endId", "name" : "endId",
"qualType" : "PinId *", "qualType" : "ax::NodeEditor::PinId *",
"desugaredQualType" : "PinId *", "desugaredQualType" : "ax::NodeEditor::PinId *",
"defaultValue" : "nullptr" "defaultValue" : "nullptr"
} ] } ]
}, { }, {
@@ -1131,8 +1131,8 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "nodeId", "name" : "nodeId",
"qualType" : "NodeId *", "qualType" : "ax::NodeEditor::NodeId *",
"desugaredQualType" : "NodeId *" "desugaredQualType" : "ax::NodeEditor::NodeId *"
} ] } ]
}, { }, {
"@type" : "AstFunctionDecl", "@type" : "AstFunctionDecl",
@@ -1160,7 +1160,7 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "nodeId", "name" : "nodeId",
"qualType" : "NodeId", "qualType" : "ax::NodeEditor::NodeId",
"desugaredQualType" : "ax::NodeEditor::NodeId" "desugaredQualType" : "ax::NodeEditor::NodeId"
}, { }, {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
@@ -1175,7 +1175,7 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "nodeId", "name" : "nodeId",
"qualType" : "NodeId", "qualType" : "ax::NodeEditor::NodeId",
"desugaredQualType" : "ax::NodeEditor::NodeId" "desugaredQualType" : "ax::NodeEditor::NodeId"
}, { }, {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
@@ -1190,7 +1190,7 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "nodeId", "name" : "nodeId",
"qualType" : "NodeId", "qualType" : "ax::NodeEditor::NodeId",
"desugaredQualType" : "ax::NodeEditor::NodeId" "desugaredQualType" : "ax::NodeEditor::NodeId"
} ] } ]
}, { }, {
@@ -1200,7 +1200,7 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "nodeId", "name" : "nodeId",
"qualType" : "NodeId", "qualType" : "ax::NodeEditor::NodeId",
"desugaredQualType" : "ax::NodeEditor::NodeId" "desugaredQualType" : "ax::NodeEditor::NodeId"
} ] } ]
}, { }, {
@@ -1210,7 +1210,7 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "nodeId", "name" : "nodeId",
"qualType" : "NodeId", "qualType" : "ax::NodeEditor::NodeId",
"desugaredQualType" : "ax::NodeEditor::NodeId" "desugaredQualType" : "ax::NodeEditor::NodeId"
} ] } ]
}, { }, {
@@ -1220,7 +1220,7 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "nodeId", "name" : "nodeId",
"qualType" : "NodeId", "qualType" : "ax::NodeEditor::NodeId",
"desugaredQualType" : "ax::NodeEditor::NodeId" "desugaredQualType" : "ax::NodeEditor::NodeId"
}, { }, {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
@@ -1235,7 +1235,7 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "nodeId", "name" : "nodeId",
"qualType" : "NodeId", "qualType" : "ax::NodeEditor::NodeId",
"desugaredQualType" : "ax::NodeEditor::NodeId" "desugaredQualType" : "ax::NodeEditor::NodeId"
} ] } ]
}, { }, {
@@ -1245,7 +1245,7 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "nodeId", "name" : "nodeId",
"qualType" : "NodeId", "qualType" : "ax::NodeEditor::NodeId",
"desugaredQualType" : "ax::NodeEditor::NodeId" "desugaredQualType" : "ax::NodeEditor::NodeId"
} ] } ]
}, { }, {
@@ -1279,8 +1279,8 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "nodes", "name" : "nodes",
"qualType" : "NodeId *", "qualType" : "ax::NodeEditor::NodeId *",
"desugaredQualType" : "NodeId *" "desugaredQualType" : "ax::NodeEditor::NodeId *"
}, { }, {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "size", "name" : "size",
@@ -1294,8 +1294,8 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "links", "name" : "links",
"qualType" : "LinkId *", "qualType" : "ax::NodeEditor::LinkId *",
"desugaredQualType" : "LinkId *" "desugaredQualType" : "ax::NodeEditor::LinkId *"
}, { }, {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "size", "name" : "size",
@@ -1309,7 +1309,7 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "nodeId", "name" : "nodeId",
"qualType" : "NodeId", "qualType" : "ax::NodeEditor::NodeId",
"desugaredQualType" : "ax::NodeEditor::NodeId" "desugaredQualType" : "ax::NodeEditor::NodeId"
} ] } ]
}, { }, {
@@ -1319,7 +1319,7 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "linkId", "name" : "linkId",
"qualType" : "LinkId", "qualType" : "ax::NodeEditor::LinkId",
"desugaredQualType" : "ax::NodeEditor::LinkId" "desugaredQualType" : "ax::NodeEditor::LinkId"
} ] } ]
}, { }, {
@@ -1333,7 +1333,7 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "nodeId", "name" : "nodeId",
"qualType" : "NodeId", "qualType" : "ax::NodeEditor::NodeId",
"desugaredQualType" : "ax::NodeEditor::NodeId" "desugaredQualType" : "ax::NodeEditor::NodeId"
}, { }, {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
@@ -1349,7 +1349,7 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "linkId", "name" : "linkId",
"qualType" : "LinkId", "qualType" : "ax::NodeEditor::LinkId",
"desugaredQualType" : "ax::NodeEditor::LinkId" "desugaredQualType" : "ax::NodeEditor::LinkId"
}, { }, {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
@@ -1365,7 +1365,7 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "nodeId", "name" : "nodeId",
"qualType" : "NodeId", "qualType" : "ax::NodeEditor::NodeId",
"desugaredQualType" : "ax::NodeEditor::NodeId" "desugaredQualType" : "ax::NodeEditor::NodeId"
} ] } ]
}, { }, {
@@ -1375,7 +1375,7 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "linkId", "name" : "linkId",
"qualType" : "LinkId", "qualType" : "ax::NodeEditor::LinkId",
"desugaredQualType" : "ax::NodeEditor::LinkId" "desugaredQualType" : "ax::NodeEditor::LinkId"
} ] } ]
}, { }, {
@@ -1385,7 +1385,7 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "nodeId", "name" : "nodeId",
"qualType" : "NodeId", "qualType" : "ax::NodeEditor::NodeId",
"desugaredQualType" : "ax::NodeEditor::NodeId" "desugaredQualType" : "ax::NodeEditor::NodeId"
} ] } ]
}, { }, {
@@ -1395,7 +1395,7 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "linkId", "name" : "linkId",
"qualType" : "LinkId", "qualType" : "ax::NodeEditor::LinkId",
"desugaredQualType" : "ax::NodeEditor::LinkId" "desugaredQualType" : "ax::NodeEditor::LinkId"
} ] } ]
}, { }, {
@@ -1405,7 +1405,7 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "nodeId", "name" : "nodeId",
"qualType" : "NodeId", "qualType" : "ax::NodeEditor::NodeId",
"desugaredQualType" : "ax::NodeEditor::NodeId" "desugaredQualType" : "ax::NodeEditor::NodeId"
} ] } ]
}, { }, {
@@ -1415,7 +1415,7 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "pinId", "name" : "pinId",
"qualType" : "PinId", "qualType" : "ax::NodeEditor::PinId",
"desugaredQualType" : "ax::NodeEditor::PinId" "desugaredQualType" : "ax::NodeEditor::PinId"
} ] } ]
}, { }, {
@@ -1425,7 +1425,7 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "nodeId", "name" : "nodeId",
"qualType" : "NodeId", "qualType" : "ax::NodeEditor::NodeId",
"desugaredQualType" : "ax::NodeEditor::NodeId" "desugaredQualType" : "ax::NodeEditor::NodeId"
} ] } ]
}, { }, {
@@ -1435,7 +1435,7 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "pinId", "name" : "pinId",
"qualType" : "PinId", "qualType" : "ax::NodeEditor::PinId",
"desugaredQualType" : "ax::NodeEditor::PinId" "desugaredQualType" : "ax::NodeEditor::PinId"
} ] } ]
}, { }, {
@@ -1473,8 +1473,8 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "nodeId", "name" : "nodeId",
"qualType" : "NodeId *", "qualType" : "ax::NodeEditor::NodeId *",
"desugaredQualType" : "NodeId *" "desugaredQualType" : "ax::NodeEditor::NodeId *"
} ] } ]
}, { }, {
"@type" : "AstFunctionDecl", "@type" : "AstFunctionDecl",
@@ -1483,8 +1483,8 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "pinId", "name" : "pinId",
"qualType" : "PinId *", "qualType" : "ax::NodeEditor::PinId *",
"desugaredQualType" : "PinId *" "desugaredQualType" : "ax::NodeEditor::PinId *"
} ] } ]
}, { }, {
"@type" : "AstFunctionDecl", "@type" : "AstFunctionDecl",
@@ -1493,8 +1493,8 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "linkId", "name" : "linkId",
"qualType" : "LinkId *", "qualType" : "ax::NodeEditor::LinkId *",
"desugaredQualType" : "LinkId *" "desugaredQualType" : "ax::NodeEditor::LinkId *"
} ] } ]
}, { }, {
"@type" : "AstFunctionDecl", "@type" : "AstFunctionDecl",
@@ -1549,8 +1549,8 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "nodes", "name" : "nodes",
"qualType" : "NodeId *", "qualType" : "ax::NodeEditor::NodeId *",
"desugaredQualType" : "NodeId *" "desugaredQualType" : "ax::NodeEditor::NodeId *"
}, { }, {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "size", "name" : "size",
@@ -1564,8 +1564,8 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "links", "name" : "links",
"qualType" : "LinkId *", "qualType" : "ax::NodeEditor::LinkId *",
"desugaredQualType" : "LinkId *" "desugaredQualType" : "ax::NodeEditor::LinkId *"
}, { }, {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "size", "name" : "size",
@@ -1583,27 +1583,27 @@
}, { }, {
"@type" : "AstFunctionDecl", "@type" : "AstFunctionDecl",
"name" : "GetHoveredNode", "name" : "GetHoveredNode",
"resultType" : "NodeId" "resultType" : "ax::NodeEditor::NodeId"
}, { }, {
"@type" : "AstFunctionDecl", "@type" : "AstFunctionDecl",
"name" : "GetHoveredPin", "name" : "GetHoveredPin",
"resultType" : "PinId" "resultType" : "ax::NodeEditor::PinId"
}, { }, {
"@type" : "AstFunctionDecl", "@type" : "AstFunctionDecl",
"name" : "GetHoveredLink", "name" : "GetHoveredLink",
"resultType" : "LinkId" "resultType" : "ax::NodeEditor::LinkId"
}, { }, {
"@type" : "AstFunctionDecl", "@type" : "AstFunctionDecl",
"name" : "GetDoubleClickedNode", "name" : "GetDoubleClickedNode",
"resultType" : "NodeId" "resultType" : "ax::NodeEditor::NodeId"
}, { }, {
"@type" : "AstFunctionDecl", "@type" : "AstFunctionDecl",
"name" : "GetDoubleClickedPin", "name" : "GetDoubleClickedPin",
"resultType" : "PinId" "resultType" : "ax::NodeEditor::PinId"
}, { }, {
"@type" : "AstFunctionDecl", "@type" : "AstFunctionDecl",
"name" : "GetDoubleClickedLink", "name" : "GetDoubleClickedLink",
"resultType" : "LinkId" "resultType" : "ax::NodeEditor::LinkId"
}, { }, {
"@type" : "AstFunctionDecl", "@type" : "AstFunctionDecl",
"name" : "IsBackgroundClicked", "name" : "IsBackgroundClicked",
@@ -1619,18 +1619,18 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "linkId", "name" : "linkId",
"qualType" : "LinkId", "qualType" : "ax::NodeEditor::LinkId",
"desugaredQualType" : "ax::NodeEditor::LinkId" "desugaredQualType" : "ax::NodeEditor::LinkId"
}, { }, {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "startPinId", "name" : "startPinId",
"qualType" : "PinId *", "qualType" : "ax::NodeEditor::PinId *",
"desugaredQualType" : "PinId *" "desugaredQualType" : "ax::NodeEditor::PinId *"
}, { }, {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "endPinId", "name" : "endPinId",
"qualType" : "PinId *", "qualType" : "ax::NodeEditor::PinId *",
"desugaredQualType" : "PinId *" "desugaredQualType" : "ax::NodeEditor::PinId *"
} ] } ]
}, { }, {
"@type" : "AstFunctionDecl", "@type" : "AstFunctionDecl",
@@ -1639,7 +1639,7 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "pinId", "name" : "pinId",
"qualType" : "PinId", "qualType" : "ax::NodeEditor::PinId",
"desugaredQualType" : "ax::NodeEditor::PinId" "desugaredQualType" : "ax::NodeEditor::PinId"
} ] } ]
}, { }, {
@@ -1677,8 +1677,8 @@
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "nodes", "name" : "nodes",
"qualType" : "NodeId *", "qualType" : "ax::NodeEditor::NodeId *",
"desugaredQualType" : "NodeId *" "desugaredQualType" : "ax::NodeEditor::NodeId *"
}, { }, {
"@type" : "AstParmVarDecl", "@type" : "AstParmVarDecl",
"name" : "size", "name" : "size",
@@ -1,9 +1,9 @@
{ {
"info" : { "info" : {
"source" : "include/imnodes/imnodes.h", "source" : "include/imnodes/imnodes.h",
"hash" : "652280ae054728987fb8b2201f9a88fa", "hash" : "4ea12e1472e9f121b5084ac0b72237de",
"url" : "https://github.com/Nelarius/imnodes", "url" : "https://github.com/Nelarius/imnodes",
"revision" : "e563371cee49eb42da08cca1e0209d30d452c665" "revision" : "8563e1655bd9bb1f249e6552cc6274d506ee788b"
}, },
"decls" : [ { "decls" : [ {
"@type" : "AstEnumDecl", "@type" : "AstEnumDecl",
@@ -107,82 +107,88 @@
"evaluatedValue" : 15 "evaluatedValue" : 15
}, { }, {
"@type" : "AstEnumConstantDecl", "@type" : "AstEnumConstantDecl",
"name" : "ImNodesCol_MiniMapBackground", "name" : "ImNodesCol_GridLinePrimary",
"qualType" : "ImNodesCol_", "qualType" : "ImNodesCol_",
"order" : 16, "order" : 16,
"evaluatedValue" : 16 "evaluatedValue" : 16
}, { }, {
"@type" : "AstEnumConstantDecl", "@type" : "AstEnumConstantDecl",
"name" : "ImNodesCol_MiniMapBackgroundHovered", "name" : "ImNodesCol_MiniMapBackground",
"qualType" : "ImNodesCol_", "qualType" : "ImNodesCol_",
"order" : 17, "order" : 17,
"evaluatedValue" : 17 "evaluatedValue" : 17
}, { }, {
"@type" : "AstEnumConstantDecl", "@type" : "AstEnumConstantDecl",
"name" : "ImNodesCol_MiniMapOutline", "name" : "ImNodesCol_MiniMapBackgroundHovered",
"qualType" : "ImNodesCol_", "qualType" : "ImNodesCol_",
"order" : 18, "order" : 18,
"evaluatedValue" : 18 "evaluatedValue" : 18
}, { }, {
"@type" : "AstEnumConstantDecl", "@type" : "AstEnumConstantDecl",
"name" : "ImNodesCol_MiniMapOutlineHovered", "name" : "ImNodesCol_MiniMapOutline",
"qualType" : "ImNodesCol_", "qualType" : "ImNodesCol_",
"order" : 19, "order" : 19,
"evaluatedValue" : 19 "evaluatedValue" : 19
}, { }, {
"@type" : "AstEnumConstantDecl", "@type" : "AstEnumConstantDecl",
"name" : "ImNodesCol_MiniMapNodeBackground", "name" : "ImNodesCol_MiniMapOutlineHovered",
"qualType" : "ImNodesCol_", "qualType" : "ImNodesCol_",
"order" : 20, "order" : 20,
"evaluatedValue" : 20 "evaluatedValue" : 20
}, { }, {
"@type" : "AstEnumConstantDecl", "@type" : "AstEnumConstantDecl",
"name" : "ImNodesCol_MiniMapNodeBackgroundHovered", "name" : "ImNodesCol_MiniMapNodeBackground",
"qualType" : "ImNodesCol_", "qualType" : "ImNodesCol_",
"order" : 21, "order" : 21,
"evaluatedValue" : 21 "evaluatedValue" : 21
}, { }, {
"@type" : "AstEnumConstantDecl", "@type" : "AstEnumConstantDecl",
"name" : "ImNodesCol_MiniMapNodeBackgroundSelected", "name" : "ImNodesCol_MiniMapNodeBackgroundHovered",
"qualType" : "ImNodesCol_", "qualType" : "ImNodesCol_",
"order" : 22, "order" : 22,
"evaluatedValue" : 22 "evaluatedValue" : 22
}, { }, {
"@type" : "AstEnumConstantDecl", "@type" : "AstEnumConstantDecl",
"name" : "ImNodesCol_MiniMapNodeOutline", "name" : "ImNodesCol_MiniMapNodeBackgroundSelected",
"qualType" : "ImNodesCol_", "qualType" : "ImNodesCol_",
"order" : 23, "order" : 23,
"evaluatedValue" : 23 "evaluatedValue" : 23
}, { }, {
"@type" : "AstEnumConstantDecl", "@type" : "AstEnumConstantDecl",
"name" : "ImNodesCol_MiniMapLink", "name" : "ImNodesCol_MiniMapNodeOutline",
"qualType" : "ImNodesCol_", "qualType" : "ImNodesCol_",
"order" : 24, "order" : 24,
"evaluatedValue" : 24 "evaluatedValue" : 24
}, { }, {
"@type" : "AstEnumConstantDecl", "@type" : "AstEnumConstantDecl",
"name" : "ImNodesCol_MiniMapLinkSelected", "name" : "ImNodesCol_MiniMapLink",
"qualType" : "ImNodesCol_", "qualType" : "ImNodesCol_",
"order" : 25, "order" : 25,
"evaluatedValue" : 25 "evaluatedValue" : 25
}, { }, {
"@type" : "AstEnumConstantDecl", "@type" : "AstEnumConstantDecl",
"name" : "ImNodesCol_MiniMapCanvas", "name" : "ImNodesCol_MiniMapLinkSelected",
"qualType" : "ImNodesCol_", "qualType" : "ImNodesCol_",
"order" : 26, "order" : 26,
"evaluatedValue" : 26 "evaluatedValue" : 26
}, { }, {
"@type" : "AstEnumConstantDecl", "@type" : "AstEnumConstantDecl",
"name" : "ImNodesCol_MiniMapCanvasOutline", "name" : "ImNodesCol_MiniMapCanvas",
"qualType" : "ImNodesCol_", "qualType" : "ImNodesCol_",
"order" : 27, "order" : 27,
"evaluatedValue" : 27 "evaluatedValue" : 27
}, { }, {
"@type" : "AstEnumConstantDecl", "@type" : "AstEnumConstantDecl",
"name" : "ImNodesCol_COUNT", "name" : "ImNodesCol_MiniMapCanvasOutline",
"qualType" : "ImNodesCol_", "qualType" : "ImNodesCol_",
"order" : 28, "order" : 28,
"evaluatedValue" : 28 "evaluatedValue" : 28
}, {
"@type" : "AstEnumConstantDecl",
"name" : "ImNodesCol_COUNT",
"qualType" : "ImNodesCol_",
"order" : 29,
"evaluatedValue" : 29
} ] } ]
}, { }, {
"@type" : "AstEnumDecl", "@type" : "AstEnumDecl",
@@ -309,6 +315,20 @@
"order" : 2, "order" : 2,
"value" : "1 << 2", "value" : "1 << 2",
"evaluatedValue" : 4 "evaluatedValue" : 4
}, {
"@type" : "AstEnumConstantDecl",
"name" : "ImNodesStyleFlags_GridLinesPrimary",
"qualType" : "ImNodesStyleFlags_",
"order" : 3,
"value" : "1 << 3",
"evaluatedValue" : 8
}, {
"@type" : "AstEnumConstantDecl",
"name" : "ImNodesStyleFlags_GridSnapping",
"qualType" : "ImNodesStyleFlags_",
"order" : 4,
"value" : "1 << 4",
"evaluatedValue" : 16
} ] } ]
}, { }, {
"@type" : "AstEnumDecl", "@type" : "AstEnumDecl",
@@ -417,6 +437,20 @@
"name" : "LinkDetachWithModifierClick", "name" : "LinkDetachWithModifierClick",
"qualType" : "struct LinkDetachWithModifierClick", "qualType" : "struct LinkDetachWithModifierClick",
"desugaredQualType" : "ImNodesIO::LinkDetachWithModifierClick" "desugaredQualType" : "ImNodesIO::LinkDetachWithModifierClick"
}, {
"@type" : "AstRecordDecl",
"name" : "MultipleSelectModifier",
"decls" : [ {
"@type" : "AstFieldDecl",
"name" : "Modifier",
"qualType" : "const bool *",
"desugaredQualType" : "const bool *"
} ]
}, {
"@type" : "AstFieldDecl",
"name" : "MultipleSelectModifier",
"qualType" : "struct MultipleSelectModifier",
"desugaredQualType" : "ImNodesIO::MultipleSelectModifier"
}, { }, {
"@type" : "AstFieldDecl", "@type" : "AstFieldDecl",
"name" : "AltMouseButton", "name" : "AltMouseButton",
@@ -514,8 +548,8 @@
}, { }, {
"@type" : "AstFieldDecl", "@type" : "AstFieldDecl",
"name" : "Colors", "name" : "Colors",
"qualType" : "unsigned int[28]", "qualType" : "unsigned int[29]",
"desugaredQualType" : "unsigned int[28]" "desugaredQualType" : "unsigned int[29]"
} ] } ]
}, { }, {
"@type" : "AstEnumDecl", "@type" : "AstEnumDecl",
@@ -683,23 +717,46 @@
"name" : "StyleColorsDark", "name" : "StyleColorsDark",
"resultType" : "void", "resultType" : "void",
"decls" : [ { "decls" : [ {
"@type" : "AstParmVarDecl",
"name" : "dest",
"qualType" : "ImNodesStyle *",
"desugaredQualType" : "ImNodesStyle *",
"defaultValue" : "NULL"
}, {
"@type" : "AstFullComment", "@type" : "AstFullComment",
"decls" : [ { "decls" : [ {
"@type" : "AstParagraphComment", "@type" : "AstParagraphComment",
"decls" : [ { "decls" : [ {
"@type" : "AstTextComment", "@type" : "AstTextComment",
"text" : " Style presets matching the dear imgui styles of the same name." "text" : " Style presets matching the dear imgui styles of the same name. If dest is NULL, the active"
}, {
"@type" : "AstTextComment",
"text" : " context's ImNodesStyle instance will be used as the destination."
} ] } ]
} ] } ]
} ] } ]
}, { }, {
"@type" : "AstFunctionDecl", "@type" : "AstFunctionDecl",
"name" : "StyleColorsClassic", "name" : "StyleColorsClassic",
"resultType" : "void" "resultType" : "void",
"decls" : [ {
"@type" : "AstParmVarDecl",
"name" : "dest",
"qualType" : "ImNodesStyle *",
"desugaredQualType" : "ImNodesStyle *",
"defaultValue" : "NULL"
} ]
}, { }, {
"@type" : "AstFunctionDecl", "@type" : "AstFunctionDecl",
"name" : "StyleColorsLight", "name" : "StyleColorsLight",
"resultType" : "void" "resultType" : "void",
"decls" : [ {
"@type" : "AstParmVarDecl",
"name" : "dest",
"qualType" : "ImNodesStyle *",
"desugaredQualType" : "ImNodesStyle *",
"defaultValue" : "NULL"
} ]
}, { }, {
"@type" : "AstFunctionDecl", "@type" : "AstFunctionDecl",
"name" : "BeginNodeEditor", "name" : "BeginNodeEditor",
@@ -1141,6 +1198,25 @@
"qualType" : "const int", "qualType" : "const int",
"desugaredQualType" : "const int" "desugaredQualType" : "const int"
} ] } ]
}, {
"@type" : "AstFunctionDecl",
"name" : "SnapNodeToGrid",
"resultType" : "void",
"decls" : [ {
"@type" : "AstParmVarDecl",
"name" : "node_id",
"qualType" : "int",
"desugaredQualType" : "int"
}, {
"@type" : "AstFullComment",
"decls" : [ {
"@type" : "AstParagraphComment",
"decls" : [ {
"@type" : "AstTextComment",
"text" : " If ImNodesStyleFlags_GridSnapping is enabled, snap the specified node's origin to the grid."
} ]
} ]
} ]
}, { }, {
"@type" : "AstFunctionDecl", "@type" : "AstFunctionDecl",
"name" : "IsEditorHovered", "name" : "IsEditorHovered",
+1
View File
@@ -1 +1,2 @@
org.gradle.caching=true org.gradle.caching=true
org.gradle.jvmargs=-Xmx2000m
@@ -179,26 +179,50 @@ public final class ImNodes {
nStyleColorsDark(); nStyleColorsDark();
} }
public static void styleColorsDark(final ImNodesStyle style) {
nStyleColorsDark(style.ptr);
}
private static native void nStyleColorsDark(); /* private static native void nStyleColorsDark(); /*
ImNodes::StyleColorsDark(); ImNodes::StyleColorsDark();
*/ */
private static native void nStyleColorsDark(long style); /*
ImNodes::StyleColorsDark(reinterpret_cast<ImNodesStyle*>(style));
*/
public static void styleColorsClassic() { public static void styleColorsClassic() {
nStyleColorsClassic(); nStyleColorsClassic();
} }
public static void styleColorsClassic(final ImNodesStyle style) {
nStyleColorsClassic(style.ptr);
}
private static native void nStyleColorsClassic(); /* private static native void nStyleColorsClassic(); /*
ImNodes::StyleColorsClassic(); ImNodes::StyleColorsClassic();
*/ */
private static native void nStyleColorsClassic(long style); /*
ImNodes::StyleColorsClassic(reinterpret_cast<ImNodesStyle*>(style));
*/
public static void styleColorsLight() { public static void styleColorsLight() {
nStyleColorsLight(); nStyleColorsLight();
} }
public static void styleColorsLight(final ImNodesStyle style) {
nStyleColorsLight(style.ptr);
}
private static native void nStyleColorsLight(); /* private static native void nStyleColorsLight(); /*
ImNodes::StyleColorsLight(); ImNodes::StyleColorsLight();
*/ */
private static native void nStyleColorsLight(long style); /*
ImNodes::StyleColorsLight(reinterpret_cast<ImNodesStyle*>(style));
*/
/** /**
* The top-level function call. Call this before calling BeginNode/EndNode. Calling this function * The top-level function call. Call this before calling BeginNode/EndNode. Calling this function
* will result the node editor grid workspace being rendered. * will result the node editor grid workspace being rendered.
@@ -551,29 +575,106 @@ public final class ImNodes {
ImVec2 gridPos = ImVec2(gridPosX, gridPosY); ImVec2 gridPos = ImVec2(gridPosX, gridPosY);
ImNodes::SetNodeGridSpacePos(nodeId, gridPos); ImNodes::SetNodeGridSpacePos(nodeId, gridPos);
*/ */
public static void getNodeScreenSpacePos(final int nodeId) { public static ImVec2 getNodeScreenSpacePos(final int nodeId) {
nGetNodeScreenSpacePos(nodeId); final ImVec2 dst = new ImVec2();
nGetNodeScreenSpacePos(dst, nodeId);
return dst;
} }
private static native void nGetNodeScreenSpacePos(int nodeId); /* public static float getNodeScreenSpacePosX(final int nodeId) {
ImNodes::GetNodeScreenSpacePos(nodeId); return nGetNodeScreenSpacePosX(nodeId);
}
public static float getNodeScreenSpacePosY(final int nodeId) {
return nGetNodeScreenSpacePosY(nodeId);
}
public static void getNodeScreenSpacePos(final ImVec2 dst, final int nodeId) {
nGetNodeScreenSpacePos(dst, nodeId);
}
private static native void nGetNodeScreenSpacePos(ImVec2 dst, int nodeId); /*
Jni::ImVec2Cpy(env, ImNodes::GetNodeScreenSpacePos(nodeId), dst);
*/ */
public static void getNodeEditorSpacePos(final int nodeId) { private static native float nGetNodeScreenSpacePosX(int nodeId); /*
nGetNodeEditorSpacePos(nodeId); return ImNodes::GetNodeScreenSpacePos(nodeId).x;
}
private static native void nGetNodeEditorSpacePos(int nodeId); /*
ImNodes::GetNodeEditorSpacePos(nodeId);
*/ */
public static void getNodeGridSpacePos(final int nodeId) { private static native float nGetNodeScreenSpacePosY(int nodeId); /*
nGetNodeGridSpacePos(nodeId); return ImNodes::GetNodeScreenSpacePos(nodeId).y;
*/
public static ImVec2 getNodeEditorSpacePos(final int nodeId) {
final ImVec2 dst = new ImVec2();
nGetNodeEditorSpacePos(dst, nodeId);
return dst;
} }
private static native void nGetNodeGridSpacePos(int nodeId); /* public static float getNodeEditorSpacePosX(final int nodeId) {
ImNodes::GetNodeGridSpacePos(nodeId); return nGetNodeEditorSpacePosX(nodeId);
}
public static float getNodeEditorSpacePosY(final int nodeId) {
return nGetNodeEditorSpacePosY(nodeId);
}
public static void getNodeEditorSpacePos(final ImVec2 dst, final int nodeId) {
nGetNodeEditorSpacePos(dst, nodeId);
}
private static native void nGetNodeEditorSpacePos(ImVec2 dst, int nodeId); /*
Jni::ImVec2Cpy(env, ImNodes::GetNodeEditorSpacePos(nodeId), dst);
*/
private static native float nGetNodeEditorSpacePosX(int nodeId); /*
return ImNodes::GetNodeEditorSpacePos(nodeId).x;
*/
private static native float nGetNodeEditorSpacePosY(int nodeId); /*
return ImNodes::GetNodeEditorSpacePos(nodeId).y;
*/
public static ImVec2 getNodeGridSpacePos(final int nodeId) {
final ImVec2 dst = new ImVec2();
nGetNodeGridSpacePos(dst, nodeId);
return dst;
}
public static float getNodeGridSpacePosX(final int nodeId) {
return nGetNodeGridSpacePosX(nodeId);
}
public static float getNodeGridSpacePosY(final int nodeId) {
return nGetNodeGridSpacePosY(nodeId);
}
public static void getNodeGridSpacePos(final ImVec2 dst, final int nodeId) {
nGetNodeGridSpacePos(dst, nodeId);
}
private static native void nGetNodeGridSpacePos(ImVec2 dst, int nodeId); /*
Jni::ImVec2Cpy(env, ImNodes::GetNodeGridSpacePos(nodeId), dst);
*/
private static native float nGetNodeGridSpacePosX(int nodeId); /*
return ImNodes::GetNodeGridSpacePos(nodeId).x;
*/
private static native float nGetNodeGridSpacePosY(int nodeId); /*
return ImNodes::GetNodeGridSpacePos(nodeId).y;
*/
/**
* Enable or disable grid snapping.
*/
public static void snapNodeToGrid(final int nodeId) {
nSnapNodeToGrid(nodeId);
}
private static native void nSnapNodeToGrid(int nodeId); /*
ImNodes::SnapNodeToGrid(nodeId);
*/ */
/** /**
@@ -40,29 +40,31 @@ public final class ImNodesCol {
public static final int GridLine = 15; public static final int GridLine = 15;
public static final int MiniMapBackground = 16; public static final int GridLinePrimary = 16;
public static final int MiniMapBackgroundHovered = 17; public static final int MiniMapBackground = 17;
public static final int MiniMapOutline = 18; public static final int MiniMapBackgroundHovered = 18;
public static final int MiniMapOutlineHovered = 19; public static final int MiniMapOutline = 19;
public static final int MiniMapNodeBackground = 20; public static final int MiniMapOutlineHovered = 20;
public static final int MiniMapNodeBackgroundHovered = 21; public static final int MiniMapNodeBackground = 21;
public static final int MiniMapNodeBackgroundSelected = 22; public static final int MiniMapNodeBackgroundHovered = 22;
public static final int MiniMapNodeOutline = 23; public static final int MiniMapNodeBackgroundSelected = 23;
public static final int MiniMapLink = 24; public static final int MiniMapNodeOutline = 24;
public static final int MiniMapLinkSelected = 25; public static final int MiniMapLink = 25;
public static final int MiniMapCanvas = 26; public static final int MiniMapLinkSelected = 26;
public static final int MiniMapCanvasOutline = 27; public static final int MiniMapCanvas = 27;
public static final int COUNT = 28; public static final int MiniMapCanvasOutline = 28;
public static final int COUNT = 29;
} }
@@ -19,4 +19,14 @@ public final class ImNodesStyleFlags {
* Definition: {@code 1 << 2} * Definition: {@code 1 << 2}
*/ */
public static final int GridLines = 4; public static final int GridLines = 4;
/**
* Definition: {@code 1 << 3}
*/
public static final int GridLinesPrimary = 8;
/**
* Definition: {@code 1 << 4}
*/
public static final int GridSnapping = 16;
} }
@@ -78,13 +78,13 @@ public final class ImNodes {
// Style presets matching the dear imgui styles of the same name. // Style presets matching the dear imgui styles of the same name.
@BindingMethod @BindingMethod
public static native void StyleColorsDark(); public static native void StyleColorsDark(@OptArg ImNodesStyle style);
@BindingMethod @BindingMethod
public static native void StyleColorsClassic(); public static native void StyleColorsClassic(@OptArg ImNodesStyle style);
@BindingMethod @BindingMethod
public static native void StyleColorsLight(); public static native void StyleColorsLight(@OptArg ImNodesStyle style);
/** /**
* The top-level function call. Call this before calling BeginNode/EndNode. Calling this function * The top-level function call. Call this before calling BeginNode/EndNode. Calling this function
@@ -220,15 +220,21 @@ public final class ImNodes {
@BindingMethod @BindingMethod
public static native void SetNodeGridSpacePos(int nodeId, ImVec2 gridPos); public static native void SetNodeGridSpacePos(int nodeId, ImVec2 gridPos);
@BindingMethod
public static native ImVec2 GetNodeScreenSpacePos(int nodeId);
@BindingMethod @BindingMethod
public static native void GetNodeScreenSpacePos(int nodeId); public static native ImVec2 GetNodeEditorSpacePos(int nodeId);
@BindingMethod @BindingMethod
public static native void GetNodeEditorSpacePos(int nodeId); public static native ImVec2 GetNodeGridSpacePos(int nodeId);
/**
* Enable or disable grid snapping.
*/
@BindingMethod @BindingMethod
public static native void GetNodeGridSpacePos(int nodeId); public static native void SnapNodeToGrid(int nodeId);
/** /**
* Returns true if the current node editor canvas is being hovered over by the mouse, and is not * Returns true if the current node editor canvas is being hovered over by the mouse, and is not