[API] Move extensions into separate package
This commit is contained in:
1 parent
70ac8e70c5
commit
9e8f9ee025
17 files changed
+70
-69
No files matched your search
@@ -0,0 +1,28 @@
|
||||
package imgui.extension.imnodes;
|
||||
|
||||
/**
|
||||
* This enum controls the way the attribute pins behave.
|
||||
*/
|
||||
public final class ImNodesAttributeFlags {
|
||||
|
||||
private ImNodesAttributeFlags() {
|
||||
}
|
||||
|
||||
public static final int None = 0;
|
||||
|
||||
/**
|
||||
* Allow detaching a link by left-clicking and dragging the link at a pin it is connected to.
|
||||
* NOTE: the user has to actually delete the link for this to work. A deleted link can be
|
||||
* detected by calling IsLinkDestroyed() after EndNodeEditor().
|
||||
*/
|
||||
public static final int EnableLinkDetachWithDragClick = 1;
|
||||
|
||||
/**
|
||||
* Visual snapping of an in progress link will trigger IsLink Created/Destroyed events. Allows
|
||||
* for previewing the creation of a link while dragging it across attributes. See here for demo:
|
||||
* https://github.com/Nelarius/imnodes/issues/41#issuecomment-647132113 NOTE: the user has to
|
||||
* actually delete the link for this to work. A deleted link can be detected by calling
|
||||
* IsLinkDestroyed() after EndNodeEditor().
|
||||
*/
|
||||
public static final int EnableLinkCreationOnSnap = 1 << 1;
|
||||
}
|
||||
Reference in new issue
Block a user