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:
1 parent
c776b1b384
commit
7be2a2942f
13 files changed
+1021
-1990
No files matched your search
@@ -78,13 +78,13 @@ public final class ImNodes {
|
||||
// Style presets matching the dear imgui styles of the same name.
|
||||
|
||||
@BindingMethod
|
||||
public static native void StyleColorsDark();
|
||||
public static native void StyleColorsDark(@OptArg ImNodesStyle style);
|
||||
|
||||
@BindingMethod
|
||||
public static native void StyleColorsClassic();
|
||||
public static native void StyleColorsClassic(@OptArg ImNodesStyle style);
|
||||
|
||||
@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
|
||||
@@ -220,15 +220,21 @@ public final class ImNodes {
|
||||
|
||||
@BindingMethod
|
||||
public static native void SetNodeGridSpacePos(int nodeId, ImVec2 gridPos);
|
||||
|
||||
@BindingMethod
|
||||
public static native ImVec2 GetNodeScreenSpacePos(int nodeId);
|
||||
|
||||
@BindingMethod
|
||||
public static native void GetNodeScreenSpacePos(int nodeId);
|
||||
public static native ImVec2 GetNodeEditorSpacePos(int nodeId);
|
||||
|
||||
@BindingMethod
|
||||
public static native void GetNodeEditorSpacePos(int nodeId);
|
||||
public static native ImVec2 GetNodeGridSpacePos(int nodeId);
|
||||
|
||||
/**
|
||||
* Enable or disable grid snapping.
|
||||
*/
|
||||
@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
|
||||
|
||||
Reference in new issue
Block a user