Enfusion Script API
Loading...
Searching...
No Matches
GraphNodePortBase Interface Reference
Inheritance diagram for GraphNodePortBase:
Managed GraphNodePortCircle GraphNodePortRect

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)
 

Member Function Documentation

◆ CanConnectToPort()

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.

◆ CheckMaxConnectionsLimit()

proto external bool GraphNodePortBase.CheckMaxConnectionsLimit ( )

Checks max connection limit. Returns true if we can still add new connection.

◆ GetConnectionType()

TypeName GraphNodePortBase.GetConnectionType ( )

Get which connection type to instantiate when creating a connection from this port, returning null will instantiate curve connection type.

◆ GetHighlightColor()

proto external ref Color GraphNodePortBase.GetHighlightColor ( )

◆ GetInputConnectedColor()

proto external ref Color GraphNodePortBase.GetInputConnectedColor ( )

◆ GetInputDisconnectedColor()

proto external ref Color GraphNodePortBase.GetInputDisconnectedColor ( )

◆ GetLabel()

proto external owned string GraphNodePortBase.GetLabel ( )

◆ GetLocalPosition()

proto external vector GraphNodePortBase.GetLocalPosition ( )

Get local position, can be equal to scene position if there is no parent.

◆ GetMaxConnections()

proto external int GraphNodePortBase.GetMaxConnections ( )

◆ GetName()

proto external owned string GraphNodePortBase.GetName ( )

◆ GetNode()

proto external GraphNode GraphNodePortBase.GetNode ( )

◆ GetOutputConnectedColor()

proto external ref Color GraphNodePortBase.GetOutputConnectedColor ( )

◆ GetOutputDisconnectedColor()

proto external ref Color GraphNodePortBase.GetOutputDisconnectedColor ( )

◆ GetPortDirection()

proto external EGraphNodePortDirection GraphNodePortBase.GetPortDirection ( )

◆ GetPortID()

proto external int GraphNodePortBase.GetPortID ( )

◆ GetPosition()

proto external vector GraphNodePortBase.GetPosition ( )

Get position considering parent position as well.

◆ GetSize()

proto external vector GraphNodePortBase.GetSize ( )

Get size of the node.

◆ HasConnection()

proto external bool GraphNodePortBase.HasConnection ( notnull GraphNodeConnectionBase pConnection)

◆ IsConnectable()

proto external bool GraphNodePortBase.IsConnectable ( )

◆ IsConnectedTo()

proto external bool GraphNodePortBase.IsConnectedTo ( notnull GraphNodePortBase pPort)

Returns true if this port is connected to the other port.

◆ IsHighlighted()

proto external bool GraphNodePortBase.IsHighlighted ( )

◆ OverrideCanConnectToPort()

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.

◆ Render()

void GraphNodePortBase.Render ( notnull GraphWidget graphWidget,
notnull GraphNodeView view )

◆ SetConnectable()

proto external bool GraphNodePortBase.SetConnectable ( bool connectable)

◆ SetHighlightColor()

proto external void GraphNodePortBase.SetHighlightColor ( notnull Color color)

◆ SetHighlighted()

proto external bool GraphNodePortBase.SetHighlighted ( bool highlighted)

◆ SetInputConnectedColor()

proto external void GraphNodePortBase.SetInputConnectedColor ( notnull Color color)

◆ SetInputDisconnectedColor()

proto external void GraphNodePortBase.SetInputDisconnectedColor ( notnull Color color)

◆ SetLabel()

proto external void GraphNodePortBase.SetLabel ( string label)

Set label of the port, used as display name mainly.

◆ SetLocalPosition()

proto external void GraphNodePortBase.SetLocalPosition ( vector localPos)

Set local position, can be equal to scene position if there is no parent.

◆ SetMaxConnections()

proto external void GraphNodePortBase.SetMaxConnections ( int count)

Limit for maximum connection count. Value of -1 means "no limit" (default)

◆ SetOutputConnectedColor()

proto external void GraphNodePortBase.SetOutputConnectedColor ( notnull Color color)

◆ SetOutputDisconnectedColor()

proto external void GraphNodePortBase.SetOutputDisconnectedColor ( notnull Color color)

The documentation for this interface was generated from the following file: