1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138 |
- :github_url: hide
- .. DO NOT EDIT THIS FILE!!!
- .. Generated automatically from Godot engine sources.
- .. Generator: https://github.com/godotengine/godot/tree/4.0/doc/tools/make_rst.py.
- .. XML source: https://github.com/godotengine/godot/tree/4.0/doc/classes/GraphNode.xml.
- .. _class_GraphNode:
- GraphNode
- =========
- **Inherits:** :ref:`Container<class_Container>` **<** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
- A container with connection ports, representing a node in a :ref:`GraphEdit<class_GraphEdit>`.
- .. rst-class:: classref-introduction-group
- Description
- -----------
- **GraphNode** allows to create nodes for a :ref:`GraphEdit<class_GraphEdit>` graph with customizable content based on its child controls. **GraphNode** is derived from :ref:`Container<class_Container>` and it is responsible for placing its children on screen. This works similar to :ref:`VBoxContainer<class_VBoxContainer>`. Children, in turn, provide **GraphNode** with so-called slots, each of which can have a connection port on either side.
- Each **GraphNode** slot is defined by its index and can provide the node with up to two ports: one on the left, and one on the right. By convention the left port is also referred to as the **input port** and the right port is referred to as the **output port**. Each port can be enabled and configured individually, using different type and color. The type is an arbitrary value that you can define using your own considerations. The parent :ref:`GraphEdit<class_GraphEdit>` will receive this information on each connect and disconnect request.
- Slots can be configured in the Inspector dock once you add at least one child :ref:`Control<class_Control>`. The properties are grouped by each slot's index in the "Slot" section.
- \ **Note:** While GraphNode is set up using slots and slot indices, connections are made between the ports which are enabled. Because of that, :ref:`GraphEdit<class_GraphEdit>` uses the port's index and not the slot's index. You can use :ref:`get_connection_input_slot<class_GraphNode_method_get_connection_input_slot>` and :ref:`get_connection_output_slot<class_GraphNode_method_get_connection_output_slot>` to get the slot index from the port index.
- .. rst-class:: classref-reftable-group
- Properties
- ----------
- .. table::
- :widths: auto
- +--------------------------------------------------+------------------------------------------------------------------+-----------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`comment<class_GraphNode_property_comment>` | ``false`` |
- +--------------------------------------------------+------------------------------------------------------------------+-----------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`draggable<class_GraphNode_property_draggable>` | ``true`` |
- +--------------------------------------------------+------------------------------------------------------------------+-----------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`language<class_GraphNode_property_language>` | ``""`` |
- +--------------------------------------------------+------------------------------------------------------------------+-----------------------------------------------------------------------+
- | :ref:`MouseFilter<enum_Control_MouseFilter>` | mouse_filter | ``0`` (overrides :ref:`Control<class_Control_property_mouse_filter>`) |
- +--------------------------------------------------+------------------------------------------------------------------+-----------------------------------------------------------------------+
- | :ref:`Overlay<enum_GraphNode_Overlay>` | :ref:`overlay<class_GraphNode_property_overlay>` | ``0`` |
- +--------------------------------------------------+------------------------------------------------------------------+-----------------------------------------------------------------------+
- | :ref:`Vector2<class_Vector2>` | :ref:`position_offset<class_GraphNode_property_position_offset>` | ``Vector2(0, 0)`` |
- +--------------------------------------------------+------------------------------------------------------------------+-----------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`resizable<class_GraphNode_property_resizable>` | ``false`` |
- +--------------------------------------------------+------------------------------------------------------------------+-----------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`selectable<class_GraphNode_property_selectable>` | ``true`` |
- +--------------------------------------------------+------------------------------------------------------------------+-----------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`selected<class_GraphNode_property_selected>` | ``false`` |
- +--------------------------------------------------+------------------------------------------------------------------+-----------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`show_close<class_GraphNode_property_show_close>` | ``false`` |
- +--------------------------------------------------+------------------------------------------------------------------+-----------------------------------------------------------------------+
- | :ref:`TextDirection<enum_Control_TextDirection>` | :ref:`text_direction<class_GraphNode_property_text_direction>` | ``0`` |
- +--------------------------------------------------+------------------------------------------------------------------+-----------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`title<class_GraphNode_property_title>` | ``""`` |
- +--------------------------------------------------+------------------------------------------------------------------+-----------------------------------------------------------------------+
- .. rst-class:: classref-reftable-group
- Methods
- -------
- .. table::
- :widths: auto
- +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`clear_all_slots<class_GraphNode_method_clear_all_slots>` **(** **)** |
- +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`clear_slot<class_GraphNode_method_clear_slot>` **(** :ref:`int<class_int>` slot_index **)** |
- +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Color<class_Color>` | :ref:`get_connection_input_color<class_GraphNode_method_get_connection_input_color>` **(** :ref:`int<class_int>` port **)** |
- +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_connection_input_count<class_GraphNode_method_get_connection_input_count>` **(** **)** |
- +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_connection_input_height<class_GraphNode_method_get_connection_input_height>` **(** :ref:`int<class_int>` port **)** |
- +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Vector2<class_Vector2>` | :ref:`get_connection_input_position<class_GraphNode_method_get_connection_input_position>` **(** :ref:`int<class_int>` port **)** |
- +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_connection_input_slot<class_GraphNode_method_get_connection_input_slot>` **(** :ref:`int<class_int>` port **)** |
- +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_connection_input_type<class_GraphNode_method_get_connection_input_type>` **(** :ref:`int<class_int>` port **)** |
- +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Color<class_Color>` | :ref:`get_connection_output_color<class_GraphNode_method_get_connection_output_color>` **(** :ref:`int<class_int>` port **)** |
- +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_connection_output_count<class_GraphNode_method_get_connection_output_count>` **(** **)** |
- +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_connection_output_height<class_GraphNode_method_get_connection_output_height>` **(** :ref:`int<class_int>` port **)** |
- +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Vector2<class_Vector2>` | :ref:`get_connection_output_position<class_GraphNode_method_get_connection_output_position>` **(** :ref:`int<class_int>` port **)** |
- +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_connection_output_slot<class_GraphNode_method_get_connection_output_slot>` **(** :ref:`int<class_int>` port **)** |
- +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_connection_output_type<class_GraphNode_method_get_connection_output_type>` **(** :ref:`int<class_int>` port **)** |
- +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Color<class_Color>` | :ref:`get_slot_color_left<class_GraphNode_method_get_slot_color_left>` **(** :ref:`int<class_int>` slot_index **)** |const| |
- +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Color<class_Color>` | :ref:`get_slot_color_right<class_GraphNode_method_get_slot_color_right>` **(** :ref:`int<class_int>` slot_index **)** |const| |
- +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_slot_type_left<class_GraphNode_method_get_slot_type_left>` **(** :ref:`int<class_int>` slot_index **)** |const| |
- +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_slot_type_right<class_GraphNode_method_get_slot_type_right>` **(** :ref:`int<class_int>` slot_index **)** |const| |
- +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_slot_draw_stylebox<class_GraphNode_method_is_slot_draw_stylebox>` **(** :ref:`int<class_int>` slot_index **)** |const| |
- +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_slot_enabled_left<class_GraphNode_method_is_slot_enabled_left>` **(** :ref:`int<class_int>` slot_index **)** |const| |
- +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_slot_enabled_right<class_GraphNode_method_is_slot_enabled_right>` **(** :ref:`int<class_int>` slot_index **)** |const| |
- +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_slot<class_GraphNode_method_set_slot>` **(** :ref:`int<class_int>` slot_index, :ref:`bool<class_bool>` enable_left_port, :ref:`int<class_int>` type_left, :ref:`Color<class_Color>` color_left, :ref:`bool<class_bool>` enable_right_port, :ref:`int<class_int>` type_right, :ref:`Color<class_Color>` color_right, :ref:`Texture2D<class_Texture2D>` custom_icon_left=null, :ref:`Texture2D<class_Texture2D>` custom_icon_right=null, :ref:`bool<class_bool>` draw_stylebox=true **)** |
- +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_slot_color_left<class_GraphNode_method_set_slot_color_left>` **(** :ref:`int<class_int>` slot_index, :ref:`Color<class_Color>` color **)** |
- +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_slot_color_right<class_GraphNode_method_set_slot_color_right>` **(** :ref:`int<class_int>` slot_index, :ref:`Color<class_Color>` color **)** |
- +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_slot_draw_stylebox<class_GraphNode_method_set_slot_draw_stylebox>` **(** :ref:`int<class_int>` slot_index, :ref:`bool<class_bool>` enable **)** |
- +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_slot_enabled_left<class_GraphNode_method_set_slot_enabled_left>` **(** :ref:`int<class_int>` slot_index, :ref:`bool<class_bool>` enable **)** |
- +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_slot_enabled_right<class_GraphNode_method_set_slot_enabled_right>` **(** :ref:`int<class_int>` slot_index, :ref:`bool<class_bool>` enable **)** |
- +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_slot_type_left<class_GraphNode_method_set_slot_type_left>` **(** :ref:`int<class_int>` slot_index, :ref:`int<class_int>` type **)** |
- +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`set_slot_type_right<class_GraphNode_method_set_slot_type_right>` **(** :ref:`int<class_int>` slot_index, :ref:`int<class_int>` type **)** |
- +-------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- .. rst-class:: classref-reftable-group
- Theme Properties
- ----------------
- .. table::
- :widths: auto
- +-----------------------------------+----------------------------------------------------------------------+-----------------------------------+
- | :ref:`Color<class_Color>` | :ref:`close_color<class_GraphNode_theme_color_close_color>` | ``Color(0.875, 0.875, 0.875, 1)`` |
- +-----------------------------------+----------------------------------------------------------------------+-----------------------------------+
- | :ref:`Color<class_Color>` | :ref:`resizer_color<class_GraphNode_theme_color_resizer_color>` | ``Color(0.875, 0.875, 0.875, 1)`` |
- +-----------------------------------+----------------------------------------------------------------------+-----------------------------------+
- | :ref:`Color<class_Color>` | :ref:`title_color<class_GraphNode_theme_color_title_color>` | ``Color(0.875, 0.875, 0.875, 1)`` |
- +-----------------------------------+----------------------------------------------------------------------+-----------------------------------+
- | :ref:`int<class_int>` | :ref:`close_h_offset<class_GraphNode_theme_constant_close_h_offset>` | ``12`` |
- +-----------------------------------+----------------------------------------------------------------------+-----------------------------------+
- | :ref:`int<class_int>` | :ref:`close_offset<class_GraphNode_theme_constant_close_offset>` | ``22`` |
- +-----------------------------------+----------------------------------------------------------------------+-----------------------------------+
- | :ref:`int<class_int>` | :ref:`port_offset<class_GraphNode_theme_constant_port_offset>` | ``0`` |
- +-----------------------------------+----------------------------------------------------------------------+-----------------------------------+
- | :ref:`int<class_int>` | :ref:`separation<class_GraphNode_theme_constant_separation>` | ``2`` |
- +-----------------------------------+----------------------------------------------------------------------+-----------------------------------+
- | :ref:`int<class_int>` | :ref:`title_h_offset<class_GraphNode_theme_constant_title_h_offset>` | ``0`` |
- +-----------------------------------+----------------------------------------------------------------------+-----------------------------------+
- | :ref:`int<class_int>` | :ref:`title_offset<class_GraphNode_theme_constant_title_offset>` | ``26`` |
- +-----------------------------------+----------------------------------------------------------------------+-----------------------------------+
- | :ref:`Font<class_Font>` | :ref:`title_font<class_GraphNode_theme_font_title_font>` | |
- +-----------------------------------+----------------------------------------------------------------------+-----------------------------------+
- | :ref:`Texture2D<class_Texture2D>` | :ref:`close<class_GraphNode_theme_icon_close>` | |
- +-----------------------------------+----------------------------------------------------------------------+-----------------------------------+
- | :ref:`Texture2D<class_Texture2D>` | :ref:`port<class_GraphNode_theme_icon_port>` | |
- +-----------------------------------+----------------------------------------------------------------------+-----------------------------------+
- | :ref:`Texture2D<class_Texture2D>` | :ref:`resizer<class_GraphNode_theme_icon_resizer>` | |
- +-----------------------------------+----------------------------------------------------------------------+-----------------------------------+
- | :ref:`StyleBox<class_StyleBox>` | :ref:`breakpoint<class_GraphNode_theme_style_breakpoint>` | |
- +-----------------------------------+----------------------------------------------------------------------+-----------------------------------+
- | :ref:`StyleBox<class_StyleBox>` | :ref:`comment<class_GraphNode_theme_style_comment>` | |
- +-----------------------------------+----------------------------------------------------------------------+-----------------------------------+
- | :ref:`StyleBox<class_StyleBox>` | :ref:`comment_focus<class_GraphNode_theme_style_comment_focus>` | |
- +-----------------------------------+----------------------------------------------------------------------+-----------------------------------+
- | :ref:`StyleBox<class_StyleBox>` | :ref:`frame<class_GraphNode_theme_style_frame>` | |
- +-----------------------------------+----------------------------------------------------------------------+-----------------------------------+
- | :ref:`StyleBox<class_StyleBox>` | :ref:`position<class_GraphNode_theme_style_position>` | |
- +-----------------------------------+----------------------------------------------------------------------+-----------------------------------+
- | :ref:`StyleBox<class_StyleBox>` | :ref:`selected_frame<class_GraphNode_theme_style_selected_frame>` | |
- +-----------------------------------+----------------------------------------------------------------------+-----------------------------------+
- | :ref:`StyleBox<class_StyleBox>` | :ref:`slot<class_GraphNode_theme_style_slot>` | |
- +-----------------------------------+----------------------------------------------------------------------+-----------------------------------+
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Signals
- -------
- .. _class_GraphNode_signal_close_request:
- .. rst-class:: classref-signal
- **close_request** **(** **)**
- Emitted when the GraphNode is requested to be closed. Happens on clicking the close button (see :ref:`show_close<class_GraphNode_property_show_close>`).
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_signal_dragged:
- .. rst-class:: classref-signal
- **dragged** **(** :ref:`Vector2<class_Vector2>` from, :ref:`Vector2<class_Vector2>` to **)**
- Emitted when the GraphNode is dragged.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_signal_node_deselected:
- .. rst-class:: classref-signal
- **node_deselected** **(** **)**
- Emitted when the GraphNode is deselected.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_signal_node_selected:
- .. rst-class:: classref-signal
- **node_selected** **(** **)**
- Emitted when the GraphNode is selected.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_signal_position_offset_changed:
- .. rst-class:: classref-signal
- **position_offset_changed** **(** **)**
- Emitted when the GraphNode is moved.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_signal_raise_request:
- .. rst-class:: classref-signal
- **raise_request** **(** **)**
- Emitted when the GraphNode is requested to be displayed over other ones. Happens on focusing (clicking into) the GraphNode.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_signal_resize_request:
- .. rst-class:: classref-signal
- **resize_request** **(** :ref:`Vector2<class_Vector2>` new_minsize **)**
- Emitted when the GraphNode is requested to be resized. Happens on dragging the resizer handle (see :ref:`resizable<class_GraphNode_property_resizable>`).
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_signal_slot_updated:
- .. rst-class:: classref-signal
- **slot_updated** **(** :ref:`int<class_int>` idx **)**
- Emitted when any GraphNode's slot is updated.
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Enumerations
- ------------
- .. _enum_GraphNode_Overlay:
- .. rst-class:: classref-enumeration
- enum **Overlay**:
- .. _class_GraphNode_constant_OVERLAY_DISABLED:
- .. rst-class:: classref-enumeration-constant
- :ref:`Overlay<enum_GraphNode_Overlay>` **OVERLAY_DISABLED** = ``0``
- No overlay is shown.
- .. _class_GraphNode_constant_OVERLAY_BREAKPOINT:
- .. rst-class:: classref-enumeration-constant
- :ref:`Overlay<enum_GraphNode_Overlay>` **OVERLAY_BREAKPOINT** = ``1``
- Show overlay set in the :ref:`breakpoint<class_GraphNode_theme_style_breakpoint>` theme property.
- .. _class_GraphNode_constant_OVERLAY_POSITION:
- .. rst-class:: classref-enumeration-constant
- :ref:`Overlay<enum_GraphNode_Overlay>` **OVERLAY_POSITION** = ``2``
- Show overlay set in the :ref:`position<class_GraphNode_theme_style_position>` theme property.
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Property Descriptions
- ---------------------
- .. _class_GraphNode_property_comment:
- .. rst-class:: classref-property
- :ref:`bool<class_bool>` **comment** = ``false``
- .. rst-class:: classref-property-setget
- - void **set_comment** **(** :ref:`bool<class_bool>` value **)**
- - :ref:`bool<class_bool>` **is_comment** **(** **)**
- If ``true``, the GraphNode is a comment node.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_property_draggable:
- .. rst-class:: classref-property
- :ref:`bool<class_bool>` **draggable** = ``true``
- .. rst-class:: classref-property-setget
- - void **set_draggable** **(** :ref:`bool<class_bool>` value **)**
- - :ref:`bool<class_bool>` **is_draggable** **(** **)**
- If ``true``, the user can drag the GraphNode.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_property_language:
- .. rst-class:: classref-property
- :ref:`String<class_String>` **language** = ``""``
- .. rst-class:: classref-property-setget
- - void **set_language** **(** :ref:`String<class_String>` value **)**
- - :ref:`String<class_String>` **get_language** **(** **)**
- Language code used for line-breaking and text shaping algorithms, if left empty current locale is used instead.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_property_overlay:
- .. rst-class:: classref-property
- :ref:`Overlay<enum_GraphNode_Overlay>` **overlay** = ``0``
- .. rst-class:: classref-property-setget
- - void **set_overlay** **(** :ref:`Overlay<enum_GraphNode_Overlay>` value **)**
- - :ref:`Overlay<enum_GraphNode_Overlay>` **get_overlay** **(** **)**
- Sets the overlay shown above the GraphNode. See :ref:`Overlay<enum_GraphNode_Overlay>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_property_position_offset:
- .. rst-class:: classref-property
- :ref:`Vector2<class_Vector2>` **position_offset** = ``Vector2(0, 0)``
- .. rst-class:: classref-property-setget
- - void **set_position_offset** **(** :ref:`Vector2<class_Vector2>` value **)**
- - :ref:`Vector2<class_Vector2>` **get_position_offset** **(** **)**
- The offset of the GraphNode, relative to the scroll offset of the :ref:`GraphEdit<class_GraphEdit>`.
- \ **Note:** You cannot use position offset directly, as :ref:`GraphEdit<class_GraphEdit>` is a :ref:`Container<class_Container>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_property_resizable:
- .. rst-class:: classref-property
- :ref:`bool<class_bool>` **resizable** = ``false``
- .. rst-class:: classref-property-setget
- - void **set_resizable** **(** :ref:`bool<class_bool>` value **)**
- - :ref:`bool<class_bool>` **is_resizable** **(** **)**
- If ``true``, the user can resize the GraphNode.
- \ **Note:** Dragging the handle will only emit the :ref:`resize_request<class_GraphNode_signal_resize_request>` signal, the GraphNode needs to be resized manually.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_property_selectable:
- .. rst-class:: classref-property
- :ref:`bool<class_bool>` **selectable** = ``true``
- .. rst-class:: classref-property-setget
- - void **set_selectable** **(** :ref:`bool<class_bool>` value **)**
- - :ref:`bool<class_bool>` **is_selectable** **(** **)**
- If ``true``, the user can select the GraphNode.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_property_selected:
- .. rst-class:: classref-property
- :ref:`bool<class_bool>` **selected** = ``false``
- .. rst-class:: classref-property-setget
- - void **set_selected** **(** :ref:`bool<class_bool>` value **)**
- - :ref:`bool<class_bool>` **is_selected** **(** **)**
- If ``true``, the GraphNode is selected.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_property_show_close:
- .. rst-class:: classref-property
- :ref:`bool<class_bool>` **show_close** = ``false``
- .. rst-class:: classref-property-setget
- - void **set_show_close_button** **(** :ref:`bool<class_bool>` value **)**
- - :ref:`bool<class_bool>` **is_close_button_visible** **(** **)**
- If ``true``, the close button will be visible.
- \ **Note:** Pressing it will only emit the :ref:`close_request<class_GraphNode_signal_close_request>` signal, the GraphNode needs to be removed manually.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_property_text_direction:
- .. rst-class:: classref-property
- :ref:`TextDirection<enum_Control_TextDirection>` **text_direction** = ``0``
- .. rst-class:: classref-property-setget
- - void **set_text_direction** **(** :ref:`TextDirection<enum_Control_TextDirection>` value **)**
- - :ref:`TextDirection<enum_Control_TextDirection>` **get_text_direction** **(** **)**
- Base text writing direction.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_property_title:
- .. rst-class:: classref-property
- :ref:`String<class_String>` **title** = ``""``
- .. rst-class:: classref-property-setget
- - void **set_title** **(** :ref:`String<class_String>` value **)**
- - :ref:`String<class_String>` **get_title** **(** **)**
- The text displayed in the GraphNode's title bar.
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Method Descriptions
- -------------------
- .. _class_GraphNode_method_clear_all_slots:
- .. rst-class:: classref-method
- void **clear_all_slots** **(** **)**
- Disables all input and output slots of the GraphNode.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_method_clear_slot:
- .. rst-class:: classref-method
- void **clear_slot** **(** :ref:`int<class_int>` slot_index **)**
- Disables input and output slot whose index is ``slot_index``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_method_get_connection_input_color:
- .. rst-class:: classref-method
- :ref:`Color<class_Color>` **get_connection_input_color** **(** :ref:`int<class_int>` port **)**
- Returns the :ref:`Color<class_Color>` of the input connection ``port``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_method_get_connection_input_count:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_connection_input_count** **(** **)**
- Returns the number of enabled input slots (connections) to the GraphNode.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_method_get_connection_input_height:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_connection_input_height** **(** :ref:`int<class_int>` port **)**
- Returns the height of the input connection ``port``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_method_get_connection_input_position:
- .. rst-class:: classref-method
- :ref:`Vector2<class_Vector2>` **get_connection_input_position** **(** :ref:`int<class_int>` port **)**
- Returns the position of the input connection ``port``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_method_get_connection_input_slot:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_connection_input_slot** **(** :ref:`int<class_int>` port **)**
- Returns the corresponding slot index of the input connection ``port``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_method_get_connection_input_type:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_connection_input_type** **(** :ref:`int<class_int>` port **)**
- Returns the type of the input connection ``port``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_method_get_connection_output_color:
- .. rst-class:: classref-method
- :ref:`Color<class_Color>` **get_connection_output_color** **(** :ref:`int<class_int>` port **)**
- Returns the :ref:`Color<class_Color>` of the output connection ``port``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_method_get_connection_output_count:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_connection_output_count** **(** **)**
- Returns the number of enabled output slots (connections) of the GraphNode.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_method_get_connection_output_height:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_connection_output_height** **(** :ref:`int<class_int>` port **)**
- Returns the height of the output connection ``port``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_method_get_connection_output_position:
- .. rst-class:: classref-method
- :ref:`Vector2<class_Vector2>` **get_connection_output_position** **(** :ref:`int<class_int>` port **)**
- Returns the position of the output connection ``port``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_method_get_connection_output_slot:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_connection_output_slot** **(** :ref:`int<class_int>` port **)**
- Returns the corresponding slot index of the output connection ``port``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_method_get_connection_output_type:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_connection_output_type** **(** :ref:`int<class_int>` port **)**
- Returns the type of the output connection ``port``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_method_get_slot_color_left:
- .. rst-class:: classref-method
- :ref:`Color<class_Color>` **get_slot_color_left** **(** :ref:`int<class_int>` slot_index **)** |const|
- Returns the left (input) :ref:`Color<class_Color>` of the slot ``slot_index``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_method_get_slot_color_right:
- .. rst-class:: classref-method
- :ref:`Color<class_Color>` **get_slot_color_right** **(** :ref:`int<class_int>` slot_index **)** |const|
- Returns the right (output) :ref:`Color<class_Color>` of the slot ``slot_index``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_method_get_slot_type_left:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_slot_type_left** **(** :ref:`int<class_int>` slot_index **)** |const|
- Returns the left (input) type of the slot ``slot_index``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_method_get_slot_type_right:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_slot_type_right** **(** :ref:`int<class_int>` slot_index **)** |const|
- Returns the right (output) type of the slot ``slot_index``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_method_is_slot_draw_stylebox:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_slot_draw_stylebox** **(** :ref:`int<class_int>` slot_index **)** |const|
- Returns true if the background :ref:`StyleBox<class_StyleBox>` of the slot ``slot_index`` is drawn.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_method_is_slot_enabled_left:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_slot_enabled_left** **(** :ref:`int<class_int>` slot_index **)** |const|
- Returns ``true`` if left (input) side of the slot ``slot_index`` is enabled.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_method_is_slot_enabled_right:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_slot_enabled_right** **(** :ref:`int<class_int>` slot_index **)** |const|
- Returns ``true`` if right (output) side of the slot ``slot_index`` is enabled.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_method_set_slot:
- .. rst-class:: classref-method
- void **set_slot** **(** :ref:`int<class_int>` slot_index, :ref:`bool<class_bool>` enable_left_port, :ref:`int<class_int>` type_left, :ref:`Color<class_Color>` color_left, :ref:`bool<class_bool>` enable_right_port, :ref:`int<class_int>` type_right, :ref:`Color<class_Color>` color_right, :ref:`Texture2D<class_Texture2D>` custom_icon_left=null, :ref:`Texture2D<class_Texture2D>` custom_icon_right=null, :ref:`bool<class_bool>` draw_stylebox=true **)**
- Sets properties of the slot with the ``slot_index`` index.
- If ``enable_left_port``/``enable_right_port`` is ``true``, a port will appear and the slot will be able to be connected from this side.
- With ``type_left``/``type_right`` an arbitrary type can be assigned to each port. Two ports can be connected if they share the same type, or if the connection between their types is allowed in the parent :ref:`GraphEdit<class_GraphEdit>` (see :ref:`GraphEdit.add_valid_connection_type<class_GraphEdit_method_add_valid_connection_type>`). Keep in mind that the :ref:`GraphEdit<class_GraphEdit>` has the final say in accepting the connection. Type compatibility simply allows the :ref:`GraphEdit.connection_request<class_GraphEdit_signal_connection_request>` signal to be emitted.
- Ports can be further customized using ``color_left``/``color_right`` and ``custom_icon_left``/``custom_icon_right``. The color parameter adds a tint to the icon. The custom icon can be used to override the default port dot.
- Additionally, ``draw_stylebox`` can be used to enable or disable drawing of the background stylebox for each slot. See :ref:`slot<class_GraphNode_theme_style_slot>`.
- Individual properties can also be set using one of the ``set_slot_*`` methods.
- \ **Note:** This method only sets properties of the slot. To create the slot itself, add a :ref:`Control<class_Control>`-derived child to the GraphNode.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_method_set_slot_color_left:
- .. rst-class:: classref-method
- void **set_slot_color_left** **(** :ref:`int<class_int>` slot_index, :ref:`Color<class_Color>` color **)**
- Sets the :ref:`Color<class_Color>` of the left (input) side of the slot ``slot_index`` to ``color``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_method_set_slot_color_right:
- .. rst-class:: classref-method
- void **set_slot_color_right** **(** :ref:`int<class_int>` slot_index, :ref:`Color<class_Color>` color **)**
- Sets the :ref:`Color<class_Color>` of the right (output) side of the slot ``slot_index`` to ``color``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_method_set_slot_draw_stylebox:
- .. rst-class:: classref-method
- void **set_slot_draw_stylebox** **(** :ref:`int<class_int>` slot_index, :ref:`bool<class_bool>` enable **)**
- Toggles the background :ref:`StyleBox<class_StyleBox>` of the slot ``slot_index``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_method_set_slot_enabled_left:
- .. rst-class:: classref-method
- void **set_slot_enabled_left** **(** :ref:`int<class_int>` slot_index, :ref:`bool<class_bool>` enable **)**
- Toggles the left (input) side of the slot ``slot_index``. If ``enable`` is ``true``, a port will appear on the left side and the slot will be able to be connected from this side.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_method_set_slot_enabled_right:
- .. rst-class:: classref-method
- void **set_slot_enabled_right** **(** :ref:`int<class_int>` slot_index, :ref:`bool<class_bool>` enable **)**
- Toggles the right (output) side of the slot ``slot_index``. If ``enable`` is ``true``, a port will appear on the right side and the slot will be able to be connected from this side.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_method_set_slot_type_left:
- .. rst-class:: classref-method
- void **set_slot_type_left** **(** :ref:`int<class_int>` slot_index, :ref:`int<class_int>` type **)**
- Sets the left (input) type of the slot ``slot_index`` to ``type``. If the value is negative, all connections will be disallowed to be created via user inputs.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_method_set_slot_type_right:
- .. rst-class:: classref-method
- void **set_slot_type_right** **(** :ref:`int<class_int>` slot_index, :ref:`int<class_int>` type **)**
- Sets the right (output) type of the slot ``slot_index`` to ``type``. If the value is negative, all connections will be disallowed to be created via user inputs.
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Theme Property Descriptions
- ---------------------------
- .. _class_GraphNode_theme_color_close_color:
- .. rst-class:: classref-themeproperty
- :ref:`Color<class_Color>` **close_color** = ``Color(0.875, 0.875, 0.875, 1)``
- The color modulation applied to the close button icon.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_theme_color_resizer_color:
- .. rst-class:: classref-themeproperty
- :ref:`Color<class_Color>` **resizer_color** = ``Color(0.875, 0.875, 0.875, 1)``
- The color modulation applied to the resizer icon.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_theme_color_title_color:
- .. rst-class:: classref-themeproperty
- :ref:`Color<class_Color>` **title_color** = ``Color(0.875, 0.875, 0.875, 1)``
- Color of the title text.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_theme_constant_close_h_offset:
- .. rst-class:: classref-themeproperty
- :ref:`int<class_int>` **close_h_offset** = ``12``
- .. container:: contribute
- There is currently no description for this theme property. Please help us by :ref:`contributing one <doc_updating_the_class_reference>`!
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_theme_constant_close_offset:
- .. rst-class:: classref-themeproperty
- :ref:`int<class_int>` **close_offset** = ``22``
- The vertical offset of the close button.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_theme_constant_port_offset:
- .. rst-class:: classref-themeproperty
- :ref:`int<class_int>` **port_offset** = ``0``
- Horizontal offset for the ports.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_theme_constant_separation:
- .. rst-class:: classref-themeproperty
- :ref:`int<class_int>` **separation** = ``2``
- The vertical distance between ports.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_theme_constant_title_h_offset:
- .. rst-class:: classref-themeproperty
- :ref:`int<class_int>` **title_h_offset** = ``0``
- Horizontal offset of the title text.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_theme_constant_title_offset:
- .. rst-class:: classref-themeproperty
- :ref:`int<class_int>` **title_offset** = ``26``
- Vertical offset of the title text.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_theme_font_title_font:
- .. rst-class:: classref-themeproperty
- :ref:`Font<class_Font>` **title_font**
- Font used for the title text.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_theme_icon_close:
- .. rst-class:: classref-themeproperty
- :ref:`Texture2D<class_Texture2D>` **close**
- The icon for the close button, visible when :ref:`show_close<class_GraphNode_property_show_close>` is enabled.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_theme_icon_port:
- .. rst-class:: classref-themeproperty
- :ref:`Texture2D<class_Texture2D>` **port**
- The icon used for representing ports.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_theme_icon_resizer:
- .. rst-class:: classref-themeproperty
- :ref:`Texture2D<class_Texture2D>` **resizer**
- The icon used for resizer, visible when :ref:`resizable<class_GraphNode_property_resizable>` is enabled.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_theme_style_breakpoint:
- .. rst-class:: classref-themeproperty
- :ref:`StyleBox<class_StyleBox>` **breakpoint**
- The background used when :ref:`overlay<class_GraphNode_property_overlay>` is set to :ref:`OVERLAY_BREAKPOINT<class_GraphNode_constant_OVERLAY_BREAKPOINT>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_theme_style_comment:
- .. rst-class:: classref-themeproperty
- :ref:`StyleBox<class_StyleBox>` **comment**
- The :ref:`StyleBox<class_StyleBox>` used when :ref:`comment<class_GraphNode_property_comment>` is enabled.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_theme_style_comment_focus:
- .. rst-class:: classref-themeproperty
- :ref:`StyleBox<class_StyleBox>` **comment_focus**
- The :ref:`StyleBox<class_StyleBox>` used when :ref:`comment<class_GraphNode_property_comment>` is enabled and the **GraphNode** is focused.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_theme_style_frame:
- .. rst-class:: classref-themeproperty
- :ref:`StyleBox<class_StyleBox>` **frame**
- The default background for **GraphNode**.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_theme_style_position:
- .. rst-class:: classref-themeproperty
- :ref:`StyleBox<class_StyleBox>` **position**
- The background used when :ref:`overlay<class_GraphNode_property_overlay>` is set to :ref:`OVERLAY_POSITION<class_GraphNode_constant_OVERLAY_POSITION>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_theme_style_selected_frame:
- .. rst-class:: classref-themeproperty
- :ref:`StyleBox<class_StyleBox>` **selected_frame**
- The background used when the **GraphNode** is selected.
- .. rst-class:: classref-item-separator
- ----
- .. _class_GraphNode_theme_style_slot:
- .. rst-class:: classref-themeproperty
- :ref:`StyleBox<class_StyleBox>` **slot**
- The :ref:`StyleBox<class_StyleBox>` used for each slot of the **GraphNode**.
- .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
- .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
- .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
- .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
- .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
- .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
|