class_visualshadernodeframe.rst 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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/VisualShaderNodeFrame.xml.
  6. .. _class_VisualShaderNodeFrame:
  7. VisualShaderNodeFrame
  8. =====================
  9. **Inherits:** :ref:`VisualShaderNodeResizableBase<class_VisualShaderNodeResizableBase>` **<** :ref:`VisualShaderNode<class_VisualShaderNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. **Inherited By:** :ref:`VisualShaderNodeComment<class_VisualShaderNodeComment>`
  11. A frame other visual shader nodes can be attached to for better organization.
  12. .. rst-class:: classref-introduction-group
  13. Description
  14. -----------
  15. A rectangular frame that can be used to group visual shader nodes together to improve organization.
  16. Nodes attached to the frame will move with it when it is dragged and it can automatically resize to enclose all attached nodes.
  17. Its title, description and color can be customized.
  18. .. rst-class:: classref-reftable-group
  19. Properties
  20. ----------
  21. .. table::
  22. :widths: auto
  23. +-------------------------------------------------+------------------------------------------------------------------------------------+--------------------------------+
  24. | :ref:`PackedInt32Array<class_PackedInt32Array>` | :ref:`attached_nodes<class_VisualShaderNodeFrame_property_attached_nodes>` | ``PackedInt32Array()`` |
  25. +-------------------------------------------------+------------------------------------------------------------------------------------+--------------------------------+
  26. | :ref:`bool<class_bool>` | :ref:`autoshrink<class_VisualShaderNodeFrame_property_autoshrink>` | ``true`` |
  27. +-------------------------------------------------+------------------------------------------------------------------------------------+--------------------------------+
  28. | :ref:`Color<class_Color>` | :ref:`tint_color<class_VisualShaderNodeFrame_property_tint_color>` | ``Color(0.3, 0.3, 0.3, 0.75)`` |
  29. +-------------------------------------------------+------------------------------------------------------------------------------------+--------------------------------+
  30. | :ref:`bool<class_bool>` | :ref:`tint_color_enabled<class_VisualShaderNodeFrame_property_tint_color_enabled>` | ``false`` |
  31. +-------------------------------------------------+------------------------------------------------------------------------------------+--------------------------------+
  32. | :ref:`String<class_String>` | :ref:`title<class_VisualShaderNodeFrame_property_title>` | ``"Title"`` |
  33. +-------------------------------------------------+------------------------------------------------------------------------------------+--------------------------------+
  34. .. rst-class:: classref-reftable-group
  35. Methods
  36. -------
  37. .. table::
  38. :widths: auto
  39. +--------+--------------------------------------------------------------------------------------------------------------------------+
  40. | |void| | :ref:`add_attached_node<class_VisualShaderNodeFrame_method_add_attached_node>`\ (\ node\: :ref:`int<class_int>`\ ) |
  41. +--------+--------------------------------------------------------------------------------------------------------------------------+
  42. | |void| | :ref:`remove_attached_node<class_VisualShaderNodeFrame_method_remove_attached_node>`\ (\ node\: :ref:`int<class_int>`\ ) |
  43. +--------+--------------------------------------------------------------------------------------------------------------------------+
  44. .. rst-class:: classref-section-separator
  45. ----
  46. .. rst-class:: classref-descriptions-group
  47. Property Descriptions
  48. ---------------------
  49. .. _class_VisualShaderNodeFrame_property_attached_nodes:
  50. .. rst-class:: classref-property
  51. :ref:`PackedInt32Array<class_PackedInt32Array>` **attached_nodes** = ``PackedInt32Array()`` :ref:`🔗<class_VisualShaderNodeFrame_property_attached_nodes>`
  52. .. rst-class:: classref-property-setget
  53. - |void| **set_attached_nodes**\ (\ value\: :ref:`PackedInt32Array<class_PackedInt32Array>`\ )
  54. - :ref:`PackedInt32Array<class_PackedInt32Array>` **get_attached_nodes**\ (\ )
  55. The list of nodes attached to the frame.
  56. **Note:** The returned array is *copied* and any changes to it will not update the original property value. See :ref:`PackedInt32Array<class_PackedInt32Array>` for more details.
  57. .. rst-class:: classref-item-separator
  58. ----
  59. .. _class_VisualShaderNodeFrame_property_autoshrink:
  60. .. rst-class:: classref-property
  61. :ref:`bool<class_bool>` **autoshrink** = ``true`` :ref:`🔗<class_VisualShaderNodeFrame_property_autoshrink>`
  62. .. rst-class:: classref-property-setget
  63. - |void| **set_autoshrink_enabled**\ (\ value\: :ref:`bool<class_bool>`\ )
  64. - :ref:`bool<class_bool>` **is_autoshrink_enabled**\ (\ )
  65. If ``true``, the frame will automatically resize to enclose all attached nodes.
  66. .. rst-class:: classref-item-separator
  67. ----
  68. .. _class_VisualShaderNodeFrame_property_tint_color:
  69. .. rst-class:: classref-property
  70. :ref:`Color<class_Color>` **tint_color** = ``Color(0.3, 0.3, 0.3, 0.75)`` :ref:`🔗<class_VisualShaderNodeFrame_property_tint_color>`
  71. .. rst-class:: classref-property-setget
  72. - |void| **set_tint_color**\ (\ value\: :ref:`Color<class_Color>`\ )
  73. - :ref:`Color<class_Color>` **get_tint_color**\ (\ )
  74. The color of the frame when :ref:`tint_color_enabled<class_VisualShaderNodeFrame_property_tint_color_enabled>` is ``true``.
  75. .. rst-class:: classref-item-separator
  76. ----
  77. .. _class_VisualShaderNodeFrame_property_tint_color_enabled:
  78. .. rst-class:: classref-property
  79. :ref:`bool<class_bool>` **tint_color_enabled** = ``false`` :ref:`🔗<class_VisualShaderNodeFrame_property_tint_color_enabled>`
  80. .. rst-class:: classref-property-setget
  81. - |void| **set_tint_color_enabled**\ (\ value\: :ref:`bool<class_bool>`\ )
  82. - :ref:`bool<class_bool>` **is_tint_color_enabled**\ (\ )
  83. If ``true``, the frame will be tinted with the color specified in :ref:`tint_color<class_VisualShaderNodeFrame_property_tint_color>`.
  84. .. rst-class:: classref-item-separator
  85. ----
  86. .. _class_VisualShaderNodeFrame_property_title:
  87. .. rst-class:: classref-property
  88. :ref:`String<class_String>` **title** = ``"Title"`` :ref:`🔗<class_VisualShaderNodeFrame_property_title>`
  89. .. rst-class:: classref-property-setget
  90. - |void| **set_title**\ (\ value\: :ref:`String<class_String>`\ )
  91. - :ref:`String<class_String>` **get_title**\ (\ )
  92. The title of the node.
  93. .. rst-class:: classref-section-separator
  94. ----
  95. .. rst-class:: classref-descriptions-group
  96. Method Descriptions
  97. -------------------
  98. .. _class_VisualShaderNodeFrame_method_add_attached_node:
  99. .. rst-class:: classref-method
  100. |void| **add_attached_node**\ (\ node\: :ref:`int<class_int>`\ ) :ref:`🔗<class_VisualShaderNodeFrame_method_add_attached_node>`
  101. Adds a node to the list of nodes attached to the frame. Should not be called directly, use the :ref:`VisualShader.attach_node_to_frame()<class_VisualShader_method_attach_node_to_frame>` method instead.
  102. .. rst-class:: classref-item-separator
  103. ----
  104. .. _class_VisualShaderNodeFrame_method_remove_attached_node:
  105. .. rst-class:: classref-method
  106. |void| **remove_attached_node**\ (\ node\: :ref:`int<class_int>`\ ) :ref:`🔗<class_VisualShaderNodeFrame_method_remove_attached_node>`
  107. Removes a node from the list of nodes attached to the frame. Should not be called directly, use the :ref:`VisualShader.detach_node_from_frame()<class_VisualShader_method_detach_node_from_frame>` method instead.
  108. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  109. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  110. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  111. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  112. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  113. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  114. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  115. .. |void| replace:: :abbr:`void (No return value.)`