| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="GraphFrame" inherits="GraphElement" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | <brief_description> |
| 4 | GraphFrame is a special [GraphElement] that can be used to organize other [GraphElement]s inside a [GraphEdit]. |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | GraphFrame is a special [GraphElement] to which other [GraphElement]s can be attached. It can be configured to automatically resize to enclose all attached [GraphElement]s. If the frame is moved, all the attached [GraphElement]s inside it will be moved as well. |
| 8 | A GraphFrame is always kept behind the connection layer and other [GraphElement]s inside a [GraphEdit]. |
| 9 | </description> |
| 10 | <tutorials> |
| 11 | </tutorials> |
| 12 | <methods> |
| 13 | <method name="get_titlebar_hbox"> |
| 14 | <return type="HBoxContainer" /> |
| 15 | <description> |
| 16 | Returns the [HBoxContainer] used for the title bar, only containing a [Label] for displaying the title by default. |
| 17 | This can be used to add custom controls to the title bar such as option or close buttons. |
| 18 | </description> |
| 19 | </method> |
| 20 | </methods> |
| 21 | <members> |
| 22 | <member name="autoshrink_enabled" type="bool" setter="set_autoshrink_enabled" getter="is_autoshrink_enabled" default="true"> |
| 23 | If [code]true[/code], the frame's rect will be adjusted automatically to enclose all attached [GraphElement]s. |
| 24 | </member> |
| 25 | <member name="autoshrink_margin" type="int" setter="set_autoshrink_margin" getter="get_autoshrink_margin" default="40"> |
| 26 | The margin around the attached nodes that is used to calculate the size of the frame when [member autoshrink_enabled] is [code]true[/code]. |
| 27 | </member> |
| 28 | <member name="drag_margin" type="int" setter="set_drag_margin" getter="get_drag_margin" default="16"> |
| 29 | The margin inside the frame that can be used to drag the frame. |
| 30 | </member> |
| 31 | <member name="mouse_filter" type="int" setter="set_mouse_filter" getter="get_mouse_filter" overrides="Control" enum="Control.MouseFilter" default="0" /> |
| 32 | <member name="tint_color" type="Color" setter="set_tint_color" getter="get_tint_color" default="Color(0.3, 0.3, 0.3, 0.75)"> |
| 33 | The color of the frame when [member tint_color_enabled] is [code]true[/code]. |
| 34 | </member> |
| 35 | <member name="tint_color_enabled" type="bool" setter="set_tint_color_enabled" getter="is_tint_color_enabled" default="false"> |
| 36 | If [code]true[/code], the tint color will be used to tint the frame. |
| 37 | </member> |
| 38 | <member name="title" type="String" setter="set_title" getter="get_title" default=""""> |
| 39 | Title of the frame. |
| 40 | </member> |
| 41 | </members> |
| 42 | <signals> |
| 43 | <signal name="autoshrink_changed"> |
| 44 | <description> |
| 45 | Emitted when [member autoshrink_enabled] or [member autoshrink_margin] changes. |
| 46 | </description> |
| 47 | </signal> |
| 48 | </signals> |
| 49 | <theme_items> |
| 50 | <theme_item name="resizer_color" data_type="color" type="Color" default="Color(0.875, 0.875, 0.875, 1)"> |
| 51 | The color modulation applied to the resizer icon. |
| 52 | </theme_item> |
| 53 | <theme_item name="panel" data_type="style" type="StyleBox"> |
| 54 | The default [StyleBox] used for the background of the [GraphFrame]. |
| 55 | </theme_item> |
| 56 | <theme_item name="panel_selected" data_type="style" type="StyleBox"> |
| 57 | The [StyleBox] used for the background of the [GraphFrame] when it is selected. |
| 58 | </theme_item> |
| 59 | <theme_item name="titlebar" data_type="style" type="StyleBox"> |
| 60 | The [StyleBox] used for the title bar of the [GraphFrame]. |
| 61 | </theme_item> |
| 62 | <theme_item name="titlebar_selected" data_type="style" type="StyleBox"> |
| 63 | The [StyleBox] used for the title bar of the [GraphFrame] when it is selected. |
| 64 | </theme_item> |
| 65 | </theme_items> |
| 66 | </class> |