123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137 |
- :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.)`
|