class_graphnode.rst 72 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/GraphNode.xml.
  6. .. _class_GraphNode:
  7. GraphNode
  8. =========
  9. **Experimental:** This class may be changed or removed in future versions.
  10. **Inherits:** :ref:`GraphElement<class_GraphElement>` **<** :ref:`Container<class_Container>` **<** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  11. A container with connection ports, representing a node in a :ref:`GraphEdit<class_GraphEdit>`.
  12. .. rst-class:: classref-introduction-group
  13. Description
  14. -----------
  15. **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.
  16. 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.
  17. 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.
  18. \ **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_input_port_slot()<class_GraphNode_method_get_input_port_slot>` and :ref:`get_output_port_slot()<class_GraphNode_method_get_output_port_slot>` to get the slot index from the port index.
  19. .. rst-class:: classref-reftable-group
  20. Properties
  21. ----------
  22. .. table::
  23. :widths: auto
  24. +----------------------------------------------+------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------+
  25. | :ref:`FocusMode<enum_Control_FocusMode>` | focus_mode | ``3`` (overrides :ref:`Control<class_Control_property_focus_mode>`) |
  26. +----------------------------------------------+------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------+
  27. | :ref:`bool<class_bool>` | :ref:`ignore_invalid_connection_type<class_GraphNode_property_ignore_invalid_connection_type>` | ``false`` |
  28. +----------------------------------------------+------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------+
  29. | :ref:`MouseFilter<enum_Control_MouseFilter>` | mouse_filter | ``0`` (overrides :ref:`Control<class_Control_property_mouse_filter>`) |
  30. +----------------------------------------------+------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------+
  31. | :ref:`FocusMode<enum_Control_FocusMode>` | :ref:`slots_focus_mode<class_GraphNode_property_slots_focus_mode>` | ``3`` |
  32. +----------------------------------------------+------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------+
  33. | :ref:`String<class_String>` | :ref:`title<class_GraphNode_property_title>` | ``""`` |
  34. +----------------------------------------------+------------------------------------------------------------------------------------------------+-----------------------------------------------------------------------+
  35. .. rst-class:: classref-reftable-group
  36. Methods
  37. -------
  38. .. table::
  39. :widths: auto
  40. +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  41. | |void| | :ref:`_draw_port<class_GraphNode_private_method__draw_port>`\ (\ slot_index\: :ref:`int<class_int>`, position\: :ref:`Vector2i<class_Vector2i>`, left\: :ref:`bool<class_bool>`, color\: :ref:`Color<class_Color>`\ ) |virtual| |
  42. +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  43. | |void| | :ref:`clear_all_slots<class_GraphNode_method_clear_all_slots>`\ (\ ) |
  44. +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  45. | |void| | :ref:`clear_slot<class_GraphNode_method_clear_slot>`\ (\ slot_index\: :ref:`int<class_int>`\ ) |
  46. +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  47. | :ref:`Color<class_Color>` | :ref:`get_input_port_color<class_GraphNode_method_get_input_port_color>`\ (\ port_idx\: :ref:`int<class_int>`\ ) |
  48. +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  49. | :ref:`int<class_int>` | :ref:`get_input_port_count<class_GraphNode_method_get_input_port_count>`\ (\ ) |
  50. +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  51. | :ref:`Vector2<class_Vector2>` | :ref:`get_input_port_position<class_GraphNode_method_get_input_port_position>`\ (\ port_idx\: :ref:`int<class_int>`\ ) |
  52. +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  53. | :ref:`int<class_int>` | :ref:`get_input_port_slot<class_GraphNode_method_get_input_port_slot>`\ (\ port_idx\: :ref:`int<class_int>`\ ) |
  54. +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  55. | :ref:`int<class_int>` | :ref:`get_input_port_type<class_GraphNode_method_get_input_port_type>`\ (\ port_idx\: :ref:`int<class_int>`\ ) |
  56. +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  57. | :ref:`Color<class_Color>` | :ref:`get_output_port_color<class_GraphNode_method_get_output_port_color>`\ (\ port_idx\: :ref:`int<class_int>`\ ) |
  58. +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  59. | :ref:`int<class_int>` | :ref:`get_output_port_count<class_GraphNode_method_get_output_port_count>`\ (\ ) |
  60. +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  61. | :ref:`Vector2<class_Vector2>` | :ref:`get_output_port_position<class_GraphNode_method_get_output_port_position>`\ (\ port_idx\: :ref:`int<class_int>`\ ) |
  62. +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  63. | :ref:`int<class_int>` | :ref:`get_output_port_slot<class_GraphNode_method_get_output_port_slot>`\ (\ port_idx\: :ref:`int<class_int>`\ ) |
  64. +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  65. | :ref:`int<class_int>` | :ref:`get_output_port_type<class_GraphNode_method_get_output_port_type>`\ (\ port_idx\: :ref:`int<class_int>`\ ) |
  66. +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  67. | :ref:`Color<class_Color>` | :ref:`get_slot_color_left<class_GraphNode_method_get_slot_color_left>`\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| |
  68. +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  69. | :ref:`Color<class_Color>` | :ref:`get_slot_color_right<class_GraphNode_method_get_slot_color_right>`\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| |
  70. +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  71. | :ref:`Texture2D<class_Texture2D>` | :ref:`get_slot_custom_icon_left<class_GraphNode_method_get_slot_custom_icon_left>`\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| |
  72. +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  73. | :ref:`Texture2D<class_Texture2D>` | :ref:`get_slot_custom_icon_right<class_GraphNode_method_get_slot_custom_icon_right>`\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| |
  74. +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  75. | :ref:`Variant<class_Variant>` | :ref:`get_slot_metadata_left<class_GraphNode_method_get_slot_metadata_left>`\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| |
  76. +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  77. | :ref:`Variant<class_Variant>` | :ref:`get_slot_metadata_right<class_GraphNode_method_get_slot_metadata_right>`\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| |
  78. +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  79. | :ref:`int<class_int>` | :ref:`get_slot_type_left<class_GraphNode_method_get_slot_type_left>`\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| |
  80. +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  81. | :ref:`int<class_int>` | :ref:`get_slot_type_right<class_GraphNode_method_get_slot_type_right>`\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| |
  82. +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  83. | :ref:`HBoxContainer<class_HBoxContainer>` | :ref:`get_titlebar_hbox<class_GraphNode_method_get_titlebar_hbox>`\ (\ ) |
  84. +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  85. | :ref:`bool<class_bool>` | :ref:`is_slot_draw_stylebox<class_GraphNode_method_is_slot_draw_stylebox>`\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| |
  86. +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  87. | :ref:`bool<class_bool>` | :ref:`is_slot_enabled_left<class_GraphNode_method_is_slot_enabled_left>`\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| |
  88. +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  89. | :ref:`bool<class_bool>` | :ref:`is_slot_enabled_right<class_GraphNode_method_is_slot_enabled_right>`\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| |
  90. +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  91. | |void| | :ref:`set_slot<class_GraphNode_method_set_slot>`\ (\ slot_index\: :ref:`int<class_int>`, enable_left_port\: :ref:`bool<class_bool>`, type_left\: :ref:`int<class_int>`, color_left\: :ref:`Color<class_Color>`, enable_right_port\: :ref:`bool<class_bool>`, type_right\: :ref:`int<class_int>`, color_right\: :ref:`Color<class_Color>`, custom_icon_left\: :ref:`Texture2D<class_Texture2D>` = null, custom_icon_right\: :ref:`Texture2D<class_Texture2D>` = null, draw_stylebox\: :ref:`bool<class_bool>` = true\ ) |
  92. +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  93. | |void| | :ref:`set_slot_color_left<class_GraphNode_method_set_slot_color_left>`\ (\ slot_index\: :ref:`int<class_int>`, color\: :ref:`Color<class_Color>`\ ) |
  94. +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  95. | |void| | :ref:`set_slot_color_right<class_GraphNode_method_set_slot_color_right>`\ (\ slot_index\: :ref:`int<class_int>`, color\: :ref:`Color<class_Color>`\ ) |
  96. +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  97. | |void| | :ref:`set_slot_custom_icon_left<class_GraphNode_method_set_slot_custom_icon_left>`\ (\ slot_index\: :ref:`int<class_int>`, custom_icon\: :ref:`Texture2D<class_Texture2D>`\ ) |
  98. +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  99. | |void| | :ref:`set_slot_custom_icon_right<class_GraphNode_method_set_slot_custom_icon_right>`\ (\ slot_index\: :ref:`int<class_int>`, custom_icon\: :ref:`Texture2D<class_Texture2D>`\ ) |
  100. +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  101. | |void| | :ref:`set_slot_draw_stylebox<class_GraphNode_method_set_slot_draw_stylebox>`\ (\ slot_index\: :ref:`int<class_int>`, enable\: :ref:`bool<class_bool>`\ ) |
  102. +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  103. | |void| | :ref:`set_slot_enabled_left<class_GraphNode_method_set_slot_enabled_left>`\ (\ slot_index\: :ref:`int<class_int>`, enable\: :ref:`bool<class_bool>`\ ) |
  104. +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  105. | |void| | :ref:`set_slot_enabled_right<class_GraphNode_method_set_slot_enabled_right>`\ (\ slot_index\: :ref:`int<class_int>`, enable\: :ref:`bool<class_bool>`\ ) |
  106. +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  107. | |void| | :ref:`set_slot_metadata_left<class_GraphNode_method_set_slot_metadata_left>`\ (\ slot_index\: :ref:`int<class_int>`, value\: :ref:`Variant<class_Variant>`\ ) |
  108. +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  109. | |void| | :ref:`set_slot_metadata_right<class_GraphNode_method_set_slot_metadata_right>`\ (\ slot_index\: :ref:`int<class_int>`, value\: :ref:`Variant<class_Variant>`\ ) |
  110. +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  111. | |void| | :ref:`set_slot_type_left<class_GraphNode_method_set_slot_type_left>`\ (\ slot_index\: :ref:`int<class_int>`, type\: :ref:`int<class_int>`\ ) |
  112. +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  113. | |void| | :ref:`set_slot_type_right<class_GraphNode_method_set_slot_type_right>`\ (\ slot_index\: :ref:`int<class_int>`, type\: :ref:`int<class_int>`\ ) |
  114. +-------------------------------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  115. .. rst-class:: classref-reftable-group
  116. Theme Properties
  117. ----------------
  118. .. table::
  119. :widths: auto
  120. +-----------------------------------+-------------------------------------------------------------------------+-----------------------------------+
  121. | :ref:`Color<class_Color>` | :ref:`resizer_color<class_GraphNode_theme_color_resizer_color>` | ``Color(0.875, 0.875, 0.875, 1)`` |
  122. +-----------------------------------+-------------------------------------------------------------------------+-----------------------------------+
  123. | :ref:`int<class_int>` | :ref:`port_h_offset<class_GraphNode_theme_constant_port_h_offset>` | ``0`` |
  124. +-----------------------------------+-------------------------------------------------------------------------+-----------------------------------+
  125. | :ref:`int<class_int>` | :ref:`separation<class_GraphNode_theme_constant_separation>` | ``2`` |
  126. +-----------------------------------+-------------------------------------------------------------------------+-----------------------------------+
  127. | :ref:`Texture2D<class_Texture2D>` | :ref:`port<class_GraphNode_theme_icon_port>` | |
  128. +-----------------------------------+-------------------------------------------------------------------------+-----------------------------------+
  129. | :ref:`StyleBox<class_StyleBox>` | :ref:`panel<class_GraphNode_theme_style_panel>` | |
  130. +-----------------------------------+-------------------------------------------------------------------------+-----------------------------------+
  131. | :ref:`StyleBox<class_StyleBox>` | :ref:`panel_focus<class_GraphNode_theme_style_panel_focus>` | |
  132. +-----------------------------------+-------------------------------------------------------------------------+-----------------------------------+
  133. | :ref:`StyleBox<class_StyleBox>` | :ref:`panel_selected<class_GraphNode_theme_style_panel_selected>` | |
  134. +-----------------------------------+-------------------------------------------------------------------------+-----------------------------------+
  135. | :ref:`StyleBox<class_StyleBox>` | :ref:`slot<class_GraphNode_theme_style_slot>` | |
  136. +-----------------------------------+-------------------------------------------------------------------------+-----------------------------------+
  137. | :ref:`StyleBox<class_StyleBox>` | :ref:`slot_selected<class_GraphNode_theme_style_slot_selected>` | |
  138. +-----------------------------------+-------------------------------------------------------------------------+-----------------------------------+
  139. | :ref:`StyleBox<class_StyleBox>` | :ref:`titlebar<class_GraphNode_theme_style_titlebar>` | |
  140. +-----------------------------------+-------------------------------------------------------------------------+-----------------------------------+
  141. | :ref:`StyleBox<class_StyleBox>` | :ref:`titlebar_selected<class_GraphNode_theme_style_titlebar_selected>` | |
  142. +-----------------------------------+-------------------------------------------------------------------------+-----------------------------------+
  143. .. rst-class:: classref-section-separator
  144. ----
  145. .. rst-class:: classref-descriptions-group
  146. Signals
  147. -------
  148. .. _class_GraphNode_signal_slot_sizes_changed:
  149. .. rst-class:: classref-signal
  150. **slot_sizes_changed**\ (\ ) :ref:`🔗<class_GraphNode_signal_slot_sizes_changed>`
  151. Emitted when any slot's size might have changed.
  152. .. rst-class:: classref-item-separator
  153. ----
  154. .. _class_GraphNode_signal_slot_updated:
  155. .. rst-class:: classref-signal
  156. **slot_updated**\ (\ slot_index\: :ref:`int<class_int>`\ ) :ref:`🔗<class_GraphNode_signal_slot_updated>`
  157. Emitted when any GraphNode's slot is updated.
  158. .. rst-class:: classref-section-separator
  159. ----
  160. .. rst-class:: classref-descriptions-group
  161. Property Descriptions
  162. ---------------------
  163. .. _class_GraphNode_property_ignore_invalid_connection_type:
  164. .. rst-class:: classref-property
  165. :ref:`bool<class_bool>` **ignore_invalid_connection_type** = ``false`` :ref:`🔗<class_GraphNode_property_ignore_invalid_connection_type>`
  166. .. rst-class:: classref-property-setget
  167. - |void| **set_ignore_invalid_connection_type**\ (\ value\: :ref:`bool<class_bool>`\ )
  168. - :ref:`bool<class_bool>` **is_ignoring_valid_connection_type**\ (\ )
  169. If ``true``, you can connect ports with different types, even if the connection was not explicitly allowed in the parent :ref:`GraphEdit<class_GraphEdit>`.
  170. .. rst-class:: classref-item-separator
  171. ----
  172. .. _class_GraphNode_property_slots_focus_mode:
  173. .. rst-class:: classref-property
  174. :ref:`FocusMode<enum_Control_FocusMode>` **slots_focus_mode** = ``3`` :ref:`🔗<class_GraphNode_property_slots_focus_mode>`
  175. .. rst-class:: classref-property-setget
  176. - |void| **set_slots_focus_mode**\ (\ value\: :ref:`FocusMode<enum_Control_FocusMode>`\ )
  177. - :ref:`FocusMode<enum_Control_FocusMode>` **get_slots_focus_mode**\ (\ )
  178. Determines how connection slots can be focused.
  179. - If set to :ref:`Control.FOCUS_CLICK<class_Control_constant_FOCUS_CLICK>`, connections can only be made with the mouse.
  180. - If set to :ref:`Control.FOCUS_ALL<class_Control_constant_FOCUS_ALL>`, slots can also be focused using the :ref:`ProjectSettings.input/ui_up<class_ProjectSettings_property_input/ui_up>` and :ref:`ProjectSettings.input/ui_down<class_ProjectSettings_property_input/ui_down>` and connected using :ref:`ProjectSettings.input/ui_left<class_ProjectSettings_property_input/ui_left>` and :ref:`ProjectSettings.input/ui_right<class_ProjectSettings_property_input/ui_right>` input actions.
  181. - If set to :ref:`Control.FOCUS_ACCESSIBILITY<class_Control_constant_FOCUS_ACCESSIBILITY>`, slot input actions are only enabled when the screen reader is active.
  182. .. rst-class:: classref-item-separator
  183. ----
  184. .. _class_GraphNode_property_title:
  185. .. rst-class:: classref-property
  186. :ref:`String<class_String>` **title** = ``""`` :ref:`🔗<class_GraphNode_property_title>`
  187. .. rst-class:: classref-property-setget
  188. - |void| **set_title**\ (\ value\: :ref:`String<class_String>`\ )
  189. - :ref:`String<class_String>` **get_title**\ (\ )
  190. The text displayed in the GraphNode's title bar.
  191. .. rst-class:: classref-section-separator
  192. ----
  193. .. rst-class:: classref-descriptions-group
  194. Method Descriptions
  195. -------------------
  196. .. _class_GraphNode_private_method__draw_port:
  197. .. rst-class:: classref-method
  198. |void| **_draw_port**\ (\ slot_index\: :ref:`int<class_int>`, position\: :ref:`Vector2i<class_Vector2i>`, left\: :ref:`bool<class_bool>`, color\: :ref:`Color<class_Color>`\ ) |virtual| :ref:`🔗<class_GraphNode_private_method__draw_port>`
  199. .. container:: contribute
  200. There is currently no description for this method. Please help us by `contributing one <https://contributing.godotengine.org/en/latest/documentation/class_reference.html>`__!
  201. .. rst-class:: classref-item-separator
  202. ----
  203. .. _class_GraphNode_method_clear_all_slots:
  204. .. rst-class:: classref-method
  205. |void| **clear_all_slots**\ (\ ) :ref:`🔗<class_GraphNode_method_clear_all_slots>`
  206. Disables all slots of the GraphNode. This will remove all input/output ports from the GraphNode.
  207. .. rst-class:: classref-item-separator
  208. ----
  209. .. _class_GraphNode_method_clear_slot:
  210. .. rst-class:: classref-method
  211. |void| **clear_slot**\ (\ slot_index\: :ref:`int<class_int>`\ ) :ref:`🔗<class_GraphNode_method_clear_slot>`
  212. Disables the slot with the given ``slot_index``. This will remove the corresponding input and output port from the GraphNode.
  213. .. rst-class:: classref-item-separator
  214. ----
  215. .. _class_GraphNode_method_get_input_port_color:
  216. .. rst-class:: classref-method
  217. :ref:`Color<class_Color>` **get_input_port_color**\ (\ port_idx\: :ref:`int<class_int>`\ ) :ref:`🔗<class_GraphNode_method_get_input_port_color>`
  218. Returns the :ref:`Color<class_Color>` of the input port with the given ``port_idx``.
  219. .. rst-class:: classref-item-separator
  220. ----
  221. .. _class_GraphNode_method_get_input_port_count:
  222. .. rst-class:: classref-method
  223. :ref:`int<class_int>` **get_input_port_count**\ (\ ) :ref:`🔗<class_GraphNode_method_get_input_port_count>`
  224. Returns the number of slots with an enabled input port.
  225. .. rst-class:: classref-item-separator
  226. ----
  227. .. _class_GraphNode_method_get_input_port_position:
  228. .. rst-class:: classref-method
  229. :ref:`Vector2<class_Vector2>` **get_input_port_position**\ (\ port_idx\: :ref:`int<class_int>`\ ) :ref:`🔗<class_GraphNode_method_get_input_port_position>`
  230. Returns the position of the input port with the given ``port_idx``.
  231. .. rst-class:: classref-item-separator
  232. ----
  233. .. _class_GraphNode_method_get_input_port_slot:
  234. .. rst-class:: classref-method
  235. :ref:`int<class_int>` **get_input_port_slot**\ (\ port_idx\: :ref:`int<class_int>`\ ) :ref:`🔗<class_GraphNode_method_get_input_port_slot>`
  236. Returns the corresponding slot index of the input port with the given ``port_idx``.
  237. .. rst-class:: classref-item-separator
  238. ----
  239. .. _class_GraphNode_method_get_input_port_type:
  240. .. rst-class:: classref-method
  241. :ref:`int<class_int>` **get_input_port_type**\ (\ port_idx\: :ref:`int<class_int>`\ ) :ref:`🔗<class_GraphNode_method_get_input_port_type>`
  242. Returns the type of the input port with the given ``port_idx``.
  243. .. rst-class:: classref-item-separator
  244. ----
  245. .. _class_GraphNode_method_get_output_port_color:
  246. .. rst-class:: classref-method
  247. :ref:`Color<class_Color>` **get_output_port_color**\ (\ port_idx\: :ref:`int<class_int>`\ ) :ref:`🔗<class_GraphNode_method_get_output_port_color>`
  248. Returns the :ref:`Color<class_Color>` of the output port with the given ``port_idx``.
  249. .. rst-class:: classref-item-separator
  250. ----
  251. .. _class_GraphNode_method_get_output_port_count:
  252. .. rst-class:: classref-method
  253. :ref:`int<class_int>` **get_output_port_count**\ (\ ) :ref:`🔗<class_GraphNode_method_get_output_port_count>`
  254. Returns the number of slots with an enabled output port.
  255. .. rst-class:: classref-item-separator
  256. ----
  257. .. _class_GraphNode_method_get_output_port_position:
  258. .. rst-class:: classref-method
  259. :ref:`Vector2<class_Vector2>` **get_output_port_position**\ (\ port_idx\: :ref:`int<class_int>`\ ) :ref:`🔗<class_GraphNode_method_get_output_port_position>`
  260. Returns the position of the output port with the given ``port_idx``.
  261. .. rst-class:: classref-item-separator
  262. ----
  263. .. _class_GraphNode_method_get_output_port_slot:
  264. .. rst-class:: classref-method
  265. :ref:`int<class_int>` **get_output_port_slot**\ (\ port_idx\: :ref:`int<class_int>`\ ) :ref:`🔗<class_GraphNode_method_get_output_port_slot>`
  266. Returns the corresponding slot index of the output port with the given ``port_idx``.
  267. .. rst-class:: classref-item-separator
  268. ----
  269. .. _class_GraphNode_method_get_output_port_type:
  270. .. rst-class:: classref-method
  271. :ref:`int<class_int>` **get_output_port_type**\ (\ port_idx\: :ref:`int<class_int>`\ ) :ref:`🔗<class_GraphNode_method_get_output_port_type>`
  272. Returns the type of the output port with the given ``port_idx``.
  273. .. rst-class:: classref-item-separator
  274. ----
  275. .. _class_GraphNode_method_get_slot_color_left:
  276. .. rst-class:: classref-method
  277. :ref:`Color<class_Color>` **get_slot_color_left**\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_GraphNode_method_get_slot_color_left>`
  278. Returns the left (input) :ref:`Color<class_Color>` of the slot with the given ``slot_index``.
  279. .. rst-class:: classref-item-separator
  280. ----
  281. .. _class_GraphNode_method_get_slot_color_right:
  282. .. rst-class:: classref-method
  283. :ref:`Color<class_Color>` **get_slot_color_right**\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_GraphNode_method_get_slot_color_right>`
  284. Returns the right (output) :ref:`Color<class_Color>` of the slot with the given ``slot_index``.
  285. .. rst-class:: classref-item-separator
  286. ----
  287. .. _class_GraphNode_method_get_slot_custom_icon_left:
  288. .. rst-class:: classref-method
  289. :ref:`Texture2D<class_Texture2D>` **get_slot_custom_icon_left**\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_GraphNode_method_get_slot_custom_icon_left>`
  290. Returns the left (input) custom :ref:`Texture2D<class_Texture2D>` of the slot with the given ``slot_index``.
  291. .. rst-class:: classref-item-separator
  292. ----
  293. .. _class_GraphNode_method_get_slot_custom_icon_right:
  294. .. rst-class:: classref-method
  295. :ref:`Texture2D<class_Texture2D>` **get_slot_custom_icon_right**\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_GraphNode_method_get_slot_custom_icon_right>`
  296. Returns the right (output) custom :ref:`Texture2D<class_Texture2D>` of the slot with the given ``slot_index``.
  297. .. rst-class:: classref-item-separator
  298. ----
  299. .. _class_GraphNode_method_get_slot_metadata_left:
  300. .. rst-class:: classref-method
  301. :ref:`Variant<class_Variant>` **get_slot_metadata_left**\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_GraphNode_method_get_slot_metadata_left>`
  302. Returns the left (input) metadata of the slot with the given ``slot_index``.
  303. .. rst-class:: classref-item-separator
  304. ----
  305. .. _class_GraphNode_method_get_slot_metadata_right:
  306. .. rst-class:: classref-method
  307. :ref:`Variant<class_Variant>` **get_slot_metadata_right**\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_GraphNode_method_get_slot_metadata_right>`
  308. Returns the right (output) metadata of the slot with the given ``slot_index``.
  309. .. rst-class:: classref-item-separator
  310. ----
  311. .. _class_GraphNode_method_get_slot_type_left:
  312. .. rst-class:: classref-method
  313. :ref:`int<class_int>` **get_slot_type_left**\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_GraphNode_method_get_slot_type_left>`
  314. Returns the left (input) type of the slot with the given ``slot_index``.
  315. .. rst-class:: classref-item-separator
  316. ----
  317. .. _class_GraphNode_method_get_slot_type_right:
  318. .. rst-class:: classref-method
  319. :ref:`int<class_int>` **get_slot_type_right**\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_GraphNode_method_get_slot_type_right>`
  320. Returns the right (output) type of the slot with the given ``slot_index``.
  321. .. rst-class:: classref-item-separator
  322. ----
  323. .. _class_GraphNode_method_get_titlebar_hbox:
  324. .. rst-class:: classref-method
  325. :ref:`HBoxContainer<class_HBoxContainer>` **get_titlebar_hbox**\ (\ ) :ref:`🔗<class_GraphNode_method_get_titlebar_hbox>`
  326. Returns the :ref:`HBoxContainer<class_HBoxContainer>` used for the title bar, only containing a :ref:`Label<class_Label>` for displaying the title by default. This can be used to add custom controls to the title bar such as option or close buttons.
  327. .. rst-class:: classref-item-separator
  328. ----
  329. .. _class_GraphNode_method_is_slot_draw_stylebox:
  330. .. rst-class:: classref-method
  331. :ref:`bool<class_bool>` **is_slot_draw_stylebox**\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_GraphNode_method_is_slot_draw_stylebox>`
  332. Returns ``true`` if the background :ref:`StyleBox<class_StyleBox>` of the slot with the given ``slot_index`` is drawn.
  333. .. rst-class:: classref-item-separator
  334. ----
  335. .. _class_GraphNode_method_is_slot_enabled_left:
  336. .. rst-class:: classref-method
  337. :ref:`bool<class_bool>` **is_slot_enabled_left**\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_GraphNode_method_is_slot_enabled_left>`
  338. Returns ``true`` if left (input) side of the slot with the given ``slot_index`` is enabled.
  339. .. rst-class:: classref-item-separator
  340. ----
  341. .. _class_GraphNode_method_is_slot_enabled_right:
  342. .. rst-class:: classref-method
  343. :ref:`bool<class_bool>` **is_slot_enabled_right**\ (\ slot_index\: :ref:`int<class_int>`\ ) |const| :ref:`🔗<class_GraphNode_method_is_slot_enabled_right>`
  344. Returns ``true`` if right (output) side of the slot with the given ``slot_index`` is enabled.
  345. .. rst-class:: classref-item-separator
  346. ----
  347. .. _class_GraphNode_method_set_slot:
  348. .. rst-class:: classref-method
  349. |void| **set_slot**\ (\ slot_index\: :ref:`int<class_int>`, enable_left_port\: :ref:`bool<class_bool>`, type_left\: :ref:`int<class_int>`, color_left\: :ref:`Color<class_Color>`, enable_right_port\: :ref:`bool<class_bool>`, type_right\: :ref:`int<class_int>`, color_right\: :ref:`Color<class_Color>`, custom_icon_left\: :ref:`Texture2D<class_Texture2D>` = null, custom_icon_right\: :ref:`Texture2D<class_Texture2D>` = null, draw_stylebox\: :ref:`bool<class_bool>` = true\ ) :ref:`🔗<class_GraphNode_method_set_slot>`
  350. Sets properties of the slot with the given ``slot_index``.
  351. 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.
  352. 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.
  353. 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.
  354. 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>`.
  355. Individual properties can also be set using one of the ``set_slot_*`` methods.
  356. \ **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.
  357. .. rst-class:: classref-item-separator
  358. ----
  359. .. _class_GraphNode_method_set_slot_color_left:
  360. .. rst-class:: classref-method
  361. |void| **set_slot_color_left**\ (\ slot_index\: :ref:`int<class_int>`, color\: :ref:`Color<class_Color>`\ ) :ref:`🔗<class_GraphNode_method_set_slot_color_left>`
  362. Sets the :ref:`Color<class_Color>` of the left (input) side of the slot with the given ``slot_index`` to ``color``.
  363. .. rst-class:: classref-item-separator
  364. ----
  365. .. _class_GraphNode_method_set_slot_color_right:
  366. .. rst-class:: classref-method
  367. |void| **set_slot_color_right**\ (\ slot_index\: :ref:`int<class_int>`, color\: :ref:`Color<class_Color>`\ ) :ref:`🔗<class_GraphNode_method_set_slot_color_right>`
  368. Sets the :ref:`Color<class_Color>` of the right (output) side of the slot with the given ``slot_index`` to ``color``.
  369. .. rst-class:: classref-item-separator
  370. ----
  371. .. _class_GraphNode_method_set_slot_custom_icon_left:
  372. .. rst-class:: classref-method
  373. |void| **set_slot_custom_icon_left**\ (\ slot_index\: :ref:`int<class_int>`, custom_icon\: :ref:`Texture2D<class_Texture2D>`\ ) :ref:`🔗<class_GraphNode_method_set_slot_custom_icon_left>`
  374. Sets the custom :ref:`Texture2D<class_Texture2D>` of the left (input) side of the slot with the given ``slot_index`` to ``custom_icon``.
  375. .. rst-class:: classref-item-separator
  376. ----
  377. .. _class_GraphNode_method_set_slot_custom_icon_right:
  378. .. rst-class:: classref-method
  379. |void| **set_slot_custom_icon_right**\ (\ slot_index\: :ref:`int<class_int>`, custom_icon\: :ref:`Texture2D<class_Texture2D>`\ ) :ref:`🔗<class_GraphNode_method_set_slot_custom_icon_right>`
  380. Sets the custom :ref:`Texture2D<class_Texture2D>` of the right (output) side of the slot with the given ``slot_index`` to ``custom_icon``.
  381. .. rst-class:: classref-item-separator
  382. ----
  383. .. _class_GraphNode_method_set_slot_draw_stylebox:
  384. .. rst-class:: classref-method
  385. |void| **set_slot_draw_stylebox**\ (\ slot_index\: :ref:`int<class_int>`, enable\: :ref:`bool<class_bool>`\ ) :ref:`🔗<class_GraphNode_method_set_slot_draw_stylebox>`
  386. Toggles the background :ref:`StyleBox<class_StyleBox>` of the slot with the given ``slot_index``.
  387. .. rst-class:: classref-item-separator
  388. ----
  389. .. _class_GraphNode_method_set_slot_enabled_left:
  390. .. rst-class:: classref-method
  391. |void| **set_slot_enabled_left**\ (\ slot_index\: :ref:`int<class_int>`, enable\: :ref:`bool<class_bool>`\ ) :ref:`🔗<class_GraphNode_method_set_slot_enabled_left>`
  392. Toggles the left (input) side of the slot with the given ``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.
  393. .. rst-class:: classref-item-separator
  394. ----
  395. .. _class_GraphNode_method_set_slot_enabled_right:
  396. .. rst-class:: classref-method
  397. |void| **set_slot_enabled_right**\ (\ slot_index\: :ref:`int<class_int>`, enable\: :ref:`bool<class_bool>`\ ) :ref:`🔗<class_GraphNode_method_set_slot_enabled_right>`
  398. Toggles the right (output) side of the slot with the given ``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.
  399. .. rst-class:: classref-item-separator
  400. ----
  401. .. _class_GraphNode_method_set_slot_metadata_left:
  402. .. rst-class:: classref-method
  403. |void| **set_slot_metadata_left**\ (\ slot_index\: :ref:`int<class_int>`, value\: :ref:`Variant<class_Variant>`\ ) :ref:`🔗<class_GraphNode_method_set_slot_metadata_left>`
  404. Sets the custom metadata for the left (input) side of the slot with the given ``slot_index`` to ``value``.
  405. .. rst-class:: classref-item-separator
  406. ----
  407. .. _class_GraphNode_method_set_slot_metadata_right:
  408. .. rst-class:: classref-method
  409. |void| **set_slot_metadata_right**\ (\ slot_index\: :ref:`int<class_int>`, value\: :ref:`Variant<class_Variant>`\ ) :ref:`🔗<class_GraphNode_method_set_slot_metadata_right>`
  410. Sets the custom metadata for the right (output) side of the slot with the given ``slot_index`` to ``value``.
  411. .. rst-class:: classref-item-separator
  412. ----
  413. .. _class_GraphNode_method_set_slot_type_left:
  414. .. rst-class:: classref-method
  415. |void| **set_slot_type_left**\ (\ slot_index\: :ref:`int<class_int>`, type\: :ref:`int<class_int>`\ ) :ref:`🔗<class_GraphNode_method_set_slot_type_left>`
  416. Sets the left (input) type of the slot with the given ``slot_index`` to ``type``. If the value is negative, all connections will be disallowed to be created via user inputs.
  417. .. rst-class:: classref-item-separator
  418. ----
  419. .. _class_GraphNode_method_set_slot_type_right:
  420. .. rst-class:: classref-method
  421. |void| **set_slot_type_right**\ (\ slot_index\: :ref:`int<class_int>`, type\: :ref:`int<class_int>`\ ) :ref:`🔗<class_GraphNode_method_set_slot_type_right>`
  422. Sets the right (output) type of the slot with the given ``slot_index`` to ``type``. If the value is negative, all connections will be disallowed to be created via user inputs.
  423. .. rst-class:: classref-section-separator
  424. ----
  425. .. rst-class:: classref-descriptions-group
  426. Theme Property Descriptions
  427. ---------------------------
  428. .. _class_GraphNode_theme_color_resizer_color:
  429. .. rst-class:: classref-themeproperty
  430. :ref:`Color<class_Color>` **resizer_color** = ``Color(0.875, 0.875, 0.875, 1)`` :ref:`🔗<class_GraphNode_theme_color_resizer_color>`
  431. The color modulation applied to the resizer icon.
  432. .. rst-class:: classref-item-separator
  433. ----
  434. .. _class_GraphNode_theme_constant_port_h_offset:
  435. .. rst-class:: classref-themeproperty
  436. :ref:`int<class_int>` **port_h_offset** = ``0`` :ref:`🔗<class_GraphNode_theme_constant_port_h_offset>`
  437. Horizontal offset for the ports.
  438. .. rst-class:: classref-item-separator
  439. ----
  440. .. _class_GraphNode_theme_constant_separation:
  441. .. rst-class:: classref-themeproperty
  442. :ref:`int<class_int>` **separation** = ``2`` :ref:`🔗<class_GraphNode_theme_constant_separation>`
  443. The vertical distance between ports.
  444. .. rst-class:: classref-item-separator
  445. ----
  446. .. _class_GraphNode_theme_icon_port:
  447. .. rst-class:: classref-themeproperty
  448. :ref:`Texture2D<class_Texture2D>` **port** :ref:`🔗<class_GraphNode_theme_icon_port>`
  449. The icon used for representing ports.
  450. .. rst-class:: classref-item-separator
  451. ----
  452. .. _class_GraphNode_theme_style_panel:
  453. .. rst-class:: classref-themeproperty
  454. :ref:`StyleBox<class_StyleBox>` **panel** :ref:`🔗<class_GraphNode_theme_style_panel>`
  455. The default background for the slot area of the **GraphNode**.
  456. .. rst-class:: classref-item-separator
  457. ----
  458. .. _class_GraphNode_theme_style_panel_focus:
  459. .. rst-class:: classref-themeproperty
  460. :ref:`StyleBox<class_StyleBox>` **panel_focus** :ref:`🔗<class_GraphNode_theme_style_panel_focus>`
  461. :ref:`StyleBox<class_StyleBox>` used when the **GraphNode** is focused (when used with assistive apps).
  462. .. rst-class:: classref-item-separator
  463. ----
  464. .. _class_GraphNode_theme_style_panel_selected:
  465. .. rst-class:: classref-themeproperty
  466. :ref:`StyleBox<class_StyleBox>` **panel_selected** :ref:`🔗<class_GraphNode_theme_style_panel_selected>`
  467. The :ref:`StyleBox<class_StyleBox>` used for the slot area when selected.
  468. .. rst-class:: classref-item-separator
  469. ----
  470. .. _class_GraphNode_theme_style_slot:
  471. .. rst-class:: classref-themeproperty
  472. :ref:`StyleBox<class_StyleBox>` **slot** :ref:`🔗<class_GraphNode_theme_style_slot>`
  473. The :ref:`StyleBox<class_StyleBox>` used for each slot of the **GraphNode**.
  474. .. rst-class:: classref-item-separator
  475. ----
  476. .. _class_GraphNode_theme_style_slot_selected:
  477. .. rst-class:: classref-themeproperty
  478. :ref:`StyleBox<class_StyleBox>` **slot_selected** :ref:`🔗<class_GraphNode_theme_style_slot_selected>`
  479. :ref:`StyleBox<class_StyleBox>` used when the slot is focused (when used with assistive apps).
  480. .. rst-class:: classref-item-separator
  481. ----
  482. .. _class_GraphNode_theme_style_titlebar:
  483. .. rst-class:: classref-themeproperty
  484. :ref:`StyleBox<class_StyleBox>` **titlebar** :ref:`🔗<class_GraphNode_theme_style_titlebar>`
  485. The :ref:`StyleBox<class_StyleBox>` used for the title bar of the **GraphNode**.
  486. .. rst-class:: classref-item-separator
  487. ----
  488. .. _class_GraphNode_theme_style_titlebar_selected:
  489. .. rst-class:: classref-themeproperty
  490. :ref:`StyleBox<class_StyleBox>` **titlebar_selected** :ref:`🔗<class_GraphNode_theme_style_titlebar_selected>`
  491. The :ref:`StyleBox<class_StyleBox>` used for the title bar of the **GraphNode** when it is selected.
  492. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  493. .. |required| replace:: :abbr:`required (This method is required to be overridden when extending its base class.)`
  494. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  495. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  496. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  497. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  498. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  499. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  500. .. |void| replace:: :abbr:`void (No return value.)`