GraphNode
Category: Core
A GraphNode is a container with several input and output slots allowing connections between GraphNodes. Slots can have different, incompatible types.
Properties
Methods
void | ( ) |
void | clear_slot ( idx ) |
Color | ( int idx ) |
get_connection_input_count ( ) | |
get_connection_input_position ( idx ) | |
int | ( int idx ) |
get_connection_output_color ( idx ) | |
int | ( ) |
Vector2 | ( int idx ) |
get_connection_output_type ( idx ) | |
Color | ( int idx ) const |
get_slot_color_right ( idx ) const | |
int | ( int idx ) const |
get_slot_type_right ( idx ) const | |
bool | ( int idx ) const |
is_slot_enabled_right ( idx ) const | |
void | set_slot ( idx, bool enable_left, type_left, Color color_left, enable_right, int type_right, color_right, Texture custom_left=null, custom_right=null ) |
StyleBox | breakpoint |
close | |
Color | close_color |
close_offset | |
StyleBox | comment |
commentfocus | |
StyleBox | defaultfocus |
defaultframe | |
StyleBox | frame |
port | |
int | port_offset |
position | |
Texture | resizer |
selectedframe | |
int | separation |
title_color | |
Font | title_font |
title_offset |
Signals
- close_request ( )
Signal sent on closing the GraphNode.
- dragged ( Vector2 from, to )
Signal sent when the GraphNode is dragged.
- offset_changed ( )
Signal sent when the GraphNode is moved.
- raise_request ( )
Signal sent when the GraphNode is requested to be displayed over other ones. Happens on focusing (clicking into) the GraphNode.
Enumerations
enum Overlay:
- OVERLAY_DISABLED = 0
- OVERLAY_BREAKPOINT = 1
- OVERLAY_POSITION = 2
Property Descriptions
- bool comment
- offset
Setter | set_offset(value) |
Getter | get_offset() |
The offset of the GraphNode, relative to the scroll offset of the GraphEdit. Note that you cannot use position directly, as is a Container.
- overlay
Setter | set_overlay(value) |
Getter | get_overlay() |
- bool resizable
- selected
Setter | set_selected(value) |
Getter | is_selected() |
- bool show_close
Setter | set_show_close_button(value) |
Getter | is_close_button_visible() |
- title
Method Descriptions
- void clear_all_slots ( )
Disable all input and output slots of the GraphNode.
- void clear_slot ( int idx )
Disable input and output slot whose index is ‘idx’.
- get_connection_input_color ( int idx )
Returns the color of the input connection ‘idx’.
Returns the number of enabled input slots (connections) to the GraphNode.
- get_connection_input_position ( int idx )
Returns the position of the input connection ‘idx’.
- get_connection_input_type ( int idx )
Returns the type of the input connection ‘idx’.
- get_connection_output_color ( int idx )
- get_connection_output_count ( )
Returns the number of enabled output slots (connections) of the GraphNode.
- Vector2 get_connection_output_position ( idx )
Returns the position of the output connection ‘idx’.
- int get_connection_output_type ( idx )
Returns the type of the output connection ‘idx’.
- Color get_slot_color_left ( idx ) const
Returns the color set to ‘idx’ left (input) slot.
- Color get_slot_color_right ( idx ) const
Returns the color set to ‘idx’ right (output) slot.
- int get_slot_type_left ( idx ) const
Returns the (integer) type of left (input) ‘idx’ slot.
- int get_slot_type_right ( idx ) const
Returns the (integer) type of right (output) ‘idx’ slot.
- bool is_slot_enabled_left ( idx ) const
- bool is_slot_enabled_right ( idx ) const
Returns if right (output) slot ‘idx’ is enabled, otherwise.