GraphNode

A GraphNode is a container with several input and output slots allowing connections between GraphNodes. Slots can have different, incompatible types.

A GraphNode is a container defined by a title. It can have 1 or more input and output slots, which can be enabled (shown) or disabled (not shown) and have different (incompatible) types. Colors can also be assigned to slots. A tuple of input and output slots is defined for each GUI element included in the GraphNode. Input and output connections are left and right slots, but only enabled slots are counted as connections.

@GodotBaseClass
struct GraphNode {}

Members

Aliases

BaseClasses
alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses)
Undocumented in source.

Enums

Constants
enum Constants
Overlay
enum Overlay

Functions

_guiInput
void _guiInput(InputEvent arg0)
clearAllSlots
void clearAllSlots()

Disable all input and output slots of the GraphNode.

clearSlot
void clearSlot(long idx)

Disable input and output slot whose index is 'idx'.

getConnectionInputColor
Color getConnectionInputColor(long idx)

Return the color of the input connection 'idx'.

getConnectionInputCount
long getConnectionInputCount()

Return the number of enabled input slots (connections) to the GraphNode.

getConnectionInputPosition
Vector2 getConnectionInputPosition(long idx)

Return the position of the input connection 'idx'.

getConnectionInputType
long getConnectionInputType(long idx)

Return the type of the input connection 'idx'.

getConnectionOutputColor
Color getConnectionOutputColor(long idx)

Return the color of the output connection 'idx'.

getConnectionOutputCount
long getConnectionOutputCount()

Return the number of enabled output slots (connections) of the GraphNode.

getConnectionOutputPosition
Vector2 getConnectionOutputPosition(long idx)

Return the position of the output connection 'idx'.

getConnectionOutputType
long getConnectionOutputType(long idx)

Return the type of the output connection 'idx'.

getOffset
Vector2 getOffset()
getOverlay
GraphNode.Overlay getOverlay()
getSlotColorLeft
Color getSlotColorLeft(long idx)

Return the color set to 'idx' left (input) slot.

getSlotColorRight
Color getSlotColorRight(long idx)

Return the color set to 'idx' right (output) slot.

getSlotTypeLeft
long getSlotTypeLeft(long idx)

Return the (integer) type of left (input) 'idx' slot.

getSlotTypeRight
long getSlotTypeRight(long idx)

Return the (integer) type of right (output) 'idx' slot.

getTitle
String getTitle()
isCloseButtonVisible
bool isCloseButtonVisible()
isComment
bool isComment()
isResizable
bool isResizable()
isSelected
bool isSelected()
isSlotEnabledLeft
bool isSlotEnabledLeft(long idx)

Return true if left (input) slot 'idx' is enabled. False otherwise.

isSlotEnabledRight
bool isSlotEnabledRight(long idx)

Return true if right (output) slot 'idx' is enabled. False otherwise.

opAssign
GraphNode opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(GraphNode other)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
setComment
void setComment(bool comment)
setOffset
void setOffset(Vector2 offset)
setOverlay
void setOverlay(long overlay)
setResizable
void setResizable(bool resizable)
setSelected
void setSelected(bool selected)
setShowCloseButton
void setShowCloseButton(bool show)
setSlot
void setSlot(long idx, bool enable_left, long type_left, Color color_left, bool enable_right, long type_right, Color color_right, Texture custom_left, Texture custom_right)
setTitle
void setTitle(StringArg0 title)

Mixins

__anonymous
mixin baseCasts
Undocumented in source.

Properties

comment
bool comment [@property setter]
comment
bool comment [@property getter]
offset
Vector2 offset [@property getter]
Vector2 offset [@property setter]

The offset of the GraphNode, relative to the scroll offset of the GraphEdit. Note that you cannot use position directly, as GraphEdit is a Container.

overlay
GraphNode.Overlay overlay [@property getter]
long overlay [@property setter]
resizable
bool resizable [@property getter]
bool resizable [@property setter]
selected
bool selected [@property getter]
bool selected [@property setter]
showClose
bool showClose [@property getter]
bool showClose [@property setter]
title
String title [@property getter]
String title [@property setter]

Static functions

_new
GraphNode _new()
Undocumented in source. Be warned that the author may not have intended to support it.

Static variables

_classBindingInitialized
bool _classBindingInitialized;
Undocumented in source.

Structs

_classBinding
struct _classBinding
Undocumented in source.

Unions

__anonymous
union __anonymous
Undocumented in source.

Variables

_GODOT_internal_name
enum string _GODOT_internal_name;
Undocumented in source.

Mixed In Members

From mixin baseCasts

as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
To as()
Undocumented in source. Be warned that the author may not have intended to support it.
as
ToRef as()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(To)
Undocumented in source.
opCast
template opCast(ToRef)
Undocumented in source.
opCast
void* opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
godot_object opCast()
Undocumented in source. Be warned that the author may not have intended to support it.
opCast
bool opCast()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta