|
Enfusion Script API
|
Public Member Functions | |
| proto external owned string | GetName () |
| proto external void | SetLabel (string label) |
| Set label of the port, used as display name mainly. | |
| proto external owned string | GetLabel () |
| proto external int | GetPortID () |
| proto external EGraphNodePortDirection | GetPortDirection () |
| proto external GraphNode | GetNode () |
| proto external bool | SetHighlighted (bool highlighted) |
| proto external bool | IsHighlighted () |
| proto external bool | SetConnectable (bool connectable) |
| proto external bool | IsConnectable () |
| proto external bool | IsConnectedTo (notnull GraphNodePortBase pPort) |
| Returns true if this port is connected to the other port. | |
| proto external bool | HasConnection (notnull GraphNodeConnectionBase pConnection) |
| proto external void | SetMaxConnections (int count) |
| Limit for maximum connection count. Value of -1 means "no limit" (default) | |
| proto external int | GetMaxConnections () |
| proto external bool | CheckMaxConnectionsLimit () |
| Checks max connection limit. Returns true if we can still add new connection. | |
| proto external bool | CanConnectToPort (notnull GraphNodePortBase otherPort) |
| Additional, custom, per-port logic. Returns true if this port is okay to be connected with the other port. | |
| proto external vector | GetLocalPosition () |
| Get local position, can be equal to scene position if there is no parent. | |
| proto external void | SetLocalPosition (vector localPos) |
| Set local position, can be equal to scene position if there is no parent. | |
| proto external vector | GetPosition () |
| Get position considering parent position as well. | |
| proto external vector | GetSize () |
| Get size of the node. | |
| proto external void | SetHighlightColor (notnull Color color) |
| proto external ref Color | GetHighlightColor () |
| proto external void | SetInputDisconnectedColor (notnull Color color) |
| proto external ref Color | GetInputDisconnectedColor () |
| proto external void | SetOutputDisconnectedColor (notnull Color color) |
| proto external ref Color | GetOutputDisconnectedColor () |
| proto external void | SetInputConnectedColor (notnull Color color) |
| proto external ref Color | GetInputConnectedColor () |
| proto external void | SetOutputConnectedColor (notnull Color color) |
| proto external ref Color | GetOutputConnectedColor () |
| TypeName | GetConnectionType () |
| Get which connection type to instantiate when creating a connection from this port, returning null will instantiate curve connection type. | |
| bool | OverrideCanConnectToPort (notnull GraphNodePortBase otherPort) |
| Additional, custom, per-port logic. Returns true if this port is okay to be connected with the other port. | |
| void | Render (notnull GraphWidget graphWidget, notnull GraphNodeView view) |
Public Member Functions inherited from Managed | |
| proto external ref Managed | Clone () |
| Return shallow copy of object, or null if it is not allowed (not public constructor) | |
| proto external bool GraphNodePortBase.CanConnectToPort | ( | notnull GraphNodePortBase | otherPort | ) |
Additional, custom, per-port logic. Returns true if this port is okay to be connected with the other port.
| proto external bool GraphNodePortBase.CheckMaxConnectionsLimit | ( | ) |
Checks max connection limit. Returns true if we can still add new connection.
| TypeName GraphNodePortBase.GetConnectionType | ( | ) |
Get which connection type to instantiate when creating a connection from this port, returning null will instantiate curve connection type.
| proto external ref Color GraphNodePortBase.GetHighlightColor | ( | ) |
| proto external ref Color GraphNodePortBase.GetInputConnectedColor | ( | ) |
| proto external ref Color GraphNodePortBase.GetInputDisconnectedColor | ( | ) |
| proto external owned string GraphNodePortBase.GetLabel | ( | ) |
| proto external vector GraphNodePortBase.GetLocalPosition | ( | ) |
Get local position, can be equal to scene position if there is no parent.
| proto external int GraphNodePortBase.GetMaxConnections | ( | ) |
| proto external owned string GraphNodePortBase.GetName | ( | ) |
| proto external GraphNode GraphNodePortBase.GetNode | ( | ) |
| proto external ref Color GraphNodePortBase.GetOutputConnectedColor | ( | ) |
| proto external ref Color GraphNodePortBase.GetOutputDisconnectedColor | ( | ) |
| proto external EGraphNodePortDirection GraphNodePortBase.GetPortDirection | ( | ) |
| proto external int GraphNodePortBase.GetPortID | ( | ) |
| proto external vector GraphNodePortBase.GetPosition | ( | ) |
Get position considering parent position as well.
| proto external vector GraphNodePortBase.GetSize | ( | ) |
Get size of the node.
| proto external bool GraphNodePortBase.HasConnection | ( | notnull GraphNodeConnectionBase | pConnection | ) |
| proto external bool GraphNodePortBase.IsConnectable | ( | ) |
| proto external bool GraphNodePortBase.IsConnectedTo | ( | notnull GraphNodePortBase | pPort | ) |
Returns true if this port is connected to the other port.
| proto external bool GraphNodePortBase.IsHighlighted | ( | ) |
| bool GraphNodePortBase.OverrideCanConnectToPort | ( | notnull GraphNodePortBase | otherPort | ) |
Additional, custom, per-port logic. Returns true if this port is okay to be connected with the other port.
| void GraphNodePortBase.Render | ( | notnull GraphWidget | graphWidget, |
| notnull GraphNodeView | view ) |
| proto external void GraphNodePortBase.SetHighlightColor | ( | notnull Color | color | ) |
| proto external void GraphNodePortBase.SetInputConnectedColor | ( | notnull Color | color | ) |
| proto external void GraphNodePortBase.SetInputDisconnectedColor | ( | notnull Color | color | ) |
| proto external void GraphNodePortBase.SetLabel | ( | string | label | ) |
Set label of the port, used as display name mainly.
| proto external void GraphNodePortBase.SetLocalPosition | ( | vector | localPos | ) |
Set local position, can be equal to scene position if there is no parent.
| proto external void GraphNodePortBase.SetMaxConnections | ( | int | count | ) |
Limit for maximum connection count. Value of -1 means "no limit" (default)
| proto external void GraphNodePortBase.SetOutputConnectedColor | ( | notnull Color | color | ) |
| proto external void GraphNodePortBase.SetOutputDisconnectedColor | ( | notnull Color | color | ) |