class_graphframe.rst 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300
  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/GraphFrame.xml.
  6. .. _class_GraphFrame:
  7. GraphFrame
  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. GraphFrame is a special :ref:`GraphElement<class_GraphElement>` that can be used to organize other :ref:`GraphElement<class_GraphElement>`\ s inside a :ref:`GraphEdit<class_GraphEdit>`.
  12. .. rst-class:: classref-introduction-group
  13. Description
  14. -----------
  15. GraphFrame is a special :ref:`GraphElement<class_GraphElement>` to which other :ref:`GraphElement<class_GraphElement>`\ s can be attached. It can be configured to automatically resize to enclose all attached :ref:`GraphElement<class_GraphElement>`\ s. If the frame is moved, all the attached :ref:`GraphElement<class_GraphElement>`\ s inside it will be moved as well.
  16. A GraphFrame is always kept behind the connection layer and other :ref:`GraphElement<class_GraphElement>`\ s inside a :ref:`GraphEdit<class_GraphEdit>`.
  17. .. rst-class:: classref-reftable-group
  18. Properties
  19. ----------
  20. .. table::
  21. :widths: auto
  22. +----------------------------------------------+-------------------------------------------------------------------------+-----------------------------------------------------------------------+
  23. | :ref:`bool<class_bool>` | :ref:`autoshrink_enabled<class_GraphFrame_property_autoshrink_enabled>` | ``true`` |
  24. +----------------------------------------------+-------------------------------------------------------------------------+-----------------------------------------------------------------------+
  25. | :ref:`int<class_int>` | :ref:`autoshrink_margin<class_GraphFrame_property_autoshrink_margin>` | ``40`` |
  26. +----------------------------------------------+-------------------------------------------------------------------------+-----------------------------------------------------------------------+
  27. | :ref:`int<class_int>` | :ref:`drag_margin<class_GraphFrame_property_drag_margin>` | ``16`` |
  28. +----------------------------------------------+-------------------------------------------------------------------------+-----------------------------------------------------------------------+
  29. | :ref:`MouseFilter<enum_Control_MouseFilter>` | mouse_filter | ``0`` (overrides :ref:`Control<class_Control_property_mouse_filter>`) |
  30. +----------------------------------------------+-------------------------------------------------------------------------+-----------------------------------------------------------------------+
  31. | :ref:`Color<class_Color>` | :ref:`tint_color<class_GraphFrame_property_tint_color>` | ``Color(0.3, 0.3, 0.3, 0.75)`` |
  32. +----------------------------------------------+-------------------------------------------------------------------------+-----------------------------------------------------------------------+
  33. | :ref:`bool<class_bool>` | :ref:`tint_color_enabled<class_GraphFrame_property_tint_color_enabled>` | ``false`` |
  34. +----------------------------------------------+-------------------------------------------------------------------------+-----------------------------------------------------------------------+
  35. | :ref:`String<class_String>` | :ref:`title<class_GraphFrame_property_title>` | ``""`` |
  36. +----------------------------------------------+-------------------------------------------------------------------------+-----------------------------------------------------------------------+
  37. .. rst-class:: classref-reftable-group
  38. Methods
  39. -------
  40. .. table::
  41. :widths: auto
  42. +-------------------------------------------+---------------------------------------------------------------------------+
  43. | :ref:`HBoxContainer<class_HBoxContainer>` | :ref:`get_titlebar_hbox<class_GraphFrame_method_get_titlebar_hbox>`\ (\ ) |
  44. +-------------------------------------------+---------------------------------------------------------------------------+
  45. .. rst-class:: classref-reftable-group
  46. Theme Properties
  47. ----------------
  48. .. table::
  49. :widths: auto
  50. +---------------------------------+--------------------------------------------------------------------------+-----------------------------------+
  51. | :ref:`Color<class_Color>` | :ref:`resizer_color<class_GraphFrame_theme_color_resizer_color>` | ``Color(0.875, 0.875, 0.875, 1)`` |
  52. +---------------------------------+--------------------------------------------------------------------------+-----------------------------------+
  53. | :ref:`StyleBox<class_StyleBox>` | :ref:`panel<class_GraphFrame_theme_style_panel>` | |
  54. +---------------------------------+--------------------------------------------------------------------------+-----------------------------------+
  55. | :ref:`StyleBox<class_StyleBox>` | :ref:`panel_selected<class_GraphFrame_theme_style_panel_selected>` | |
  56. +---------------------------------+--------------------------------------------------------------------------+-----------------------------------+
  57. | :ref:`StyleBox<class_StyleBox>` | :ref:`titlebar<class_GraphFrame_theme_style_titlebar>` | |
  58. +---------------------------------+--------------------------------------------------------------------------+-----------------------------------+
  59. | :ref:`StyleBox<class_StyleBox>` | :ref:`titlebar_selected<class_GraphFrame_theme_style_titlebar_selected>` | |
  60. +---------------------------------+--------------------------------------------------------------------------+-----------------------------------+
  61. .. rst-class:: classref-section-separator
  62. ----
  63. .. rst-class:: classref-descriptions-group
  64. Signals
  65. -------
  66. .. _class_GraphFrame_signal_autoshrink_changed:
  67. .. rst-class:: classref-signal
  68. **autoshrink_changed**\ (\ ) :ref:`🔗<class_GraphFrame_signal_autoshrink_changed>`
  69. Emitted when :ref:`autoshrink_enabled<class_GraphFrame_property_autoshrink_enabled>` or :ref:`autoshrink_margin<class_GraphFrame_property_autoshrink_margin>` changes.
  70. .. rst-class:: classref-section-separator
  71. ----
  72. .. rst-class:: classref-descriptions-group
  73. Property Descriptions
  74. ---------------------
  75. .. _class_GraphFrame_property_autoshrink_enabled:
  76. .. rst-class:: classref-property
  77. :ref:`bool<class_bool>` **autoshrink_enabled** = ``true`` :ref:`🔗<class_GraphFrame_property_autoshrink_enabled>`
  78. .. rst-class:: classref-property-setget
  79. - |void| **set_autoshrink_enabled**\ (\ value\: :ref:`bool<class_bool>`\ )
  80. - :ref:`bool<class_bool>` **is_autoshrink_enabled**\ (\ )
  81. If ``true``, the frame's rect will be adjusted automatically to enclose all attached :ref:`GraphElement<class_GraphElement>`\ s.
  82. .. rst-class:: classref-item-separator
  83. ----
  84. .. _class_GraphFrame_property_autoshrink_margin:
  85. .. rst-class:: classref-property
  86. :ref:`int<class_int>` **autoshrink_margin** = ``40`` :ref:`🔗<class_GraphFrame_property_autoshrink_margin>`
  87. .. rst-class:: classref-property-setget
  88. - |void| **set_autoshrink_margin**\ (\ value\: :ref:`int<class_int>`\ )
  89. - :ref:`int<class_int>` **get_autoshrink_margin**\ (\ )
  90. The margin around the attached nodes that is used to calculate the size of the frame when :ref:`autoshrink_enabled<class_GraphFrame_property_autoshrink_enabled>` is ``true``.
  91. .. rst-class:: classref-item-separator
  92. ----
  93. .. _class_GraphFrame_property_drag_margin:
  94. .. rst-class:: classref-property
  95. :ref:`int<class_int>` **drag_margin** = ``16`` :ref:`🔗<class_GraphFrame_property_drag_margin>`
  96. .. rst-class:: classref-property-setget
  97. - |void| **set_drag_margin**\ (\ value\: :ref:`int<class_int>`\ )
  98. - :ref:`int<class_int>` **get_drag_margin**\ (\ )
  99. The margin inside the frame that can be used to drag the frame.
  100. .. rst-class:: classref-item-separator
  101. ----
  102. .. _class_GraphFrame_property_tint_color:
  103. .. rst-class:: classref-property
  104. :ref:`Color<class_Color>` **tint_color** = ``Color(0.3, 0.3, 0.3, 0.75)`` :ref:`🔗<class_GraphFrame_property_tint_color>`
  105. .. rst-class:: classref-property-setget
  106. - |void| **set_tint_color**\ (\ value\: :ref:`Color<class_Color>`\ )
  107. - :ref:`Color<class_Color>` **get_tint_color**\ (\ )
  108. The color of the frame when :ref:`tint_color_enabled<class_GraphFrame_property_tint_color_enabled>` is ``true``.
  109. .. rst-class:: classref-item-separator
  110. ----
  111. .. _class_GraphFrame_property_tint_color_enabled:
  112. .. rst-class:: classref-property
  113. :ref:`bool<class_bool>` **tint_color_enabled** = ``false`` :ref:`🔗<class_GraphFrame_property_tint_color_enabled>`
  114. .. rst-class:: classref-property-setget
  115. - |void| **set_tint_color_enabled**\ (\ value\: :ref:`bool<class_bool>`\ )
  116. - :ref:`bool<class_bool>` **is_tint_color_enabled**\ (\ )
  117. If ``true``, the tint color will be used to tint the frame.
  118. .. rst-class:: classref-item-separator
  119. ----
  120. .. _class_GraphFrame_property_title:
  121. .. rst-class:: classref-property
  122. :ref:`String<class_String>` **title** = ``""`` :ref:`🔗<class_GraphFrame_property_title>`
  123. .. rst-class:: classref-property-setget
  124. - |void| **set_title**\ (\ value\: :ref:`String<class_String>`\ )
  125. - :ref:`String<class_String>` **get_title**\ (\ )
  126. Title of the frame.
  127. .. rst-class:: classref-section-separator
  128. ----
  129. .. rst-class:: classref-descriptions-group
  130. Method Descriptions
  131. -------------------
  132. .. _class_GraphFrame_method_get_titlebar_hbox:
  133. .. rst-class:: classref-method
  134. :ref:`HBoxContainer<class_HBoxContainer>` **get_titlebar_hbox**\ (\ ) :ref:`🔗<class_GraphFrame_method_get_titlebar_hbox>`
  135. Returns the :ref:`HBoxContainer<class_HBoxContainer>` used for the title bar, only containing a :ref:`Label<class_Label>` for displaying the title by default.
  136. This can be used to add custom controls to the title bar such as option or close buttons.
  137. .. rst-class:: classref-section-separator
  138. ----
  139. .. rst-class:: classref-descriptions-group
  140. Theme Property Descriptions
  141. ---------------------------
  142. .. _class_GraphFrame_theme_color_resizer_color:
  143. .. rst-class:: classref-themeproperty
  144. :ref:`Color<class_Color>` **resizer_color** = ``Color(0.875, 0.875, 0.875, 1)`` :ref:`🔗<class_GraphFrame_theme_color_resizer_color>`
  145. The color modulation applied to the resizer icon.
  146. .. rst-class:: classref-item-separator
  147. ----
  148. .. _class_GraphFrame_theme_style_panel:
  149. .. rst-class:: classref-themeproperty
  150. :ref:`StyleBox<class_StyleBox>` **panel** :ref:`🔗<class_GraphFrame_theme_style_panel>`
  151. The default :ref:`StyleBox<class_StyleBox>` used for the background of the **GraphFrame**.
  152. .. rst-class:: classref-item-separator
  153. ----
  154. .. _class_GraphFrame_theme_style_panel_selected:
  155. .. rst-class:: classref-themeproperty
  156. :ref:`StyleBox<class_StyleBox>` **panel_selected** :ref:`🔗<class_GraphFrame_theme_style_panel_selected>`
  157. The :ref:`StyleBox<class_StyleBox>` used for the background of the **GraphFrame** when it is selected.
  158. .. rst-class:: classref-item-separator
  159. ----
  160. .. _class_GraphFrame_theme_style_titlebar:
  161. .. rst-class:: classref-themeproperty
  162. :ref:`StyleBox<class_StyleBox>` **titlebar** :ref:`🔗<class_GraphFrame_theme_style_titlebar>`
  163. The :ref:`StyleBox<class_StyleBox>` used for the title bar of the **GraphFrame**.
  164. .. rst-class:: classref-item-separator
  165. ----
  166. .. _class_GraphFrame_theme_style_titlebar_selected:
  167. .. rst-class:: classref-themeproperty
  168. :ref:`StyleBox<class_StyleBox>` **titlebar_selected** :ref:`🔗<class_GraphFrame_theme_style_titlebar_selected>`
  169. The :ref:`StyleBox<class_StyleBox>` used for the title bar of the **GraphFrame** when it is selected.
  170. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  171. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  172. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  173. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  174. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  175. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  176. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  177. .. |void| replace:: :abbr:`void (No return value.)`