Class reference

GraphFrame

Inherits GraphElement

Experimental.

GraphFrame is a special GraphElement that can be used to organize other GraphElements inside a GraphEdit.

Description

GraphFrame is a special GraphElement to which other GraphElements can be attached. It can be configured to automatically resize to enclose all attached GraphElements. If the frame is moved, all the attached GraphElements inside it will be moved as well. A GraphFrame is always kept behind the connection layer and other GraphElements inside a GraphEdit.

Properties

bool autoshrink_enabled = true

If true, the frame's rect will be adjusted automatically to enclose all attached GraphElements.

int autoshrink_margin = 40

The margin around the attached nodes that is used to calculate the size of the frame when autoshrink_enabled is true.

int drag_margin = 16

The margin inside the frame that can be used to drag the frame.

int mouse_filter = 0

bool tint_color_enabled = false

If true, the tint color will be used to tint the frame.

String title = ""

Title of the frame.

Methods

HBoxContainer get_titlebar_hbox()

Returns the HBoxContainer used for the title bar, only containing a 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.

Signals

Theme properties

Color resizer_color = Color(0.875, 0.875, 0.875, 1)

The color modulation applied to the resizer icon.

Source revision 5592dc3a7a61
Connection interrupted. Reload×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.