|
109 | 109 | Rearranges selected nodes in a layout with minimum crossings between connections and uniform horizontal and vertical gap between nodes. |
110 | 110 | </description> |
111 | 111 | </method> |
| 112 | + <method name="attach_graph_element_to_frame"> |
| 113 | + <return type="void" /> |
| 114 | + <param index="0" name="element" type="StringName" /> |
| 115 | + <param index="1" name="frame" type="StringName" /> |
| 116 | + <description> |
| 117 | + Attaches the [param element] [GraphElement] to the [param frame] [GraphFrame]. |
| 118 | + </description> |
| 119 | + </method> |
112 | 120 | <method name="clear_connections"> |
113 | 121 | <return type="void" /> |
114 | 122 | <description> |
|
125 | 133 | Create a connection between the [param from_port] of the [param from_node] [GraphNode] and the [param to_port] of the [param to_node] [GraphNode]. If the connection already exists, no connection is created. |
126 | 134 | </description> |
127 | 135 | </method> |
| 136 | + <method name="detach_graph_element_from_frame"> |
| 137 | + <return type="void" /> |
| 138 | + <param index="0" name="element" type="StringName" /> |
| 139 | + <description> |
| 140 | + Detaches the [param element] [GraphElement] from the [GraphFrame] it is currently attached to. |
| 141 | + </description> |
| 142 | + </method> |
128 | 143 | <method name="disconnect_node"> |
129 | 144 | <return type="void" /> |
130 | 145 | <param index="0" name="from_node" type="StringName" /> |
|
143 | 158 | [b]Note:[/b] This method suppresses any other connection request signals apart from [signal connection_drag_ended]. |
144 | 159 | </description> |
145 | 160 | </method> |
| 161 | + <method name="get_attached_nodes_of_frame"> |
| 162 | + <return type="StringName[]" /> |
| 163 | + <param index="0" name="frame" type="StringName" /> |
| 164 | + <description> |
| 165 | + Returns an array of node names that are attached to the [GraphFrame] with the given name. |
| 166 | + </description> |
| 167 | + </method> |
146 | 168 | <method name="get_closest_connection_at_point" qualifiers="const"> |
147 | 169 | <return type="Dictionary" /> |
148 | 170 | <param index="0" name="point" type="Vector2" /> |
|
179 | 201 | Returns an [Array] containing the list of connections that intersect with the given [Rect2]. A connection consists in a structure of the form [code]{ from_port: 0, from_node: "GraphNode name 0", to_port: 1, to_node: "GraphNode name 1" }[/code]. |
180 | 202 | </description> |
181 | 203 | </method> |
| 204 | + <method name="get_element_frame"> |
| 205 | + <return type="GraphFrame" /> |
| 206 | + <param index="0" name="element" type="StringName" /> |
| 207 | + <description> |
| 208 | + Returns the [GraphFrame] that contains the [GraphElement] with the given name. |
| 209 | + </description> |
| 210 | + </method> |
182 | 211 | <method name="get_menu_hbox"> |
183 | 212 | <return type="HBoxContainer" /> |
184 | 213 | <description> |
|
395 | 424 | Emitted at the end of a [GraphElement]'s movement. |
396 | 425 | </description> |
397 | 426 | </signal> |
| 427 | + <signal name="frame_rect_changed"> |
| 428 | + <param index="0" name="frame" type="GraphFrame" /> |
| 429 | + <param index="1" name="new_rect" type="Vector2" /> |
| 430 | + <description> |
| 431 | + Emitted when the [GraphFrame] [param frame] is resized to [param new_rect]. |
| 432 | + </description> |
| 433 | + </signal> |
| 434 | + <signal name="graph_elements_linked_to_frame_request"> |
| 435 | + <param index="0" name="elements" type="Array" /> |
| 436 | + <param index="1" name="frame" type="StringName" /> |
| 437 | + <description> |
| 438 | + Emitted when one or more [GraphElement]s are dropped onto the [GraphFrame] named [param frame], when they were not previously attached to any other one. |
| 439 | + [param elements] is an array of [GraphElement]s to be attached. |
| 440 | + </description> |
| 441 | + </signal> |
398 | 442 | <signal name="node_deselected"> |
399 | 443 | <param index="0" name="node" type="Node" /> |
400 | 444 | <description> |
|
0 commit comments