GraphFrame
Experimental: This class may be changed or removed in future versions.
Inherits:GraphElement<Container<Control<CanvasItem<Node<Object
GraphFrame is a specialGraphElement that can be used to organize otherGraphElements inside aGraphEdit.
Description
GraphFrame is a specialGraphElement to which otherGraphElements can be attached. It can be configured to automatically resize to enclose all attachedGraphElements. If the frame is moved, all the attachedGraphElements inside it will be moved as well.
A GraphFrame is always kept behind the connection layer and otherGraphElements inside aGraphEdit.
Properties
| ||
| ||
| ||
mouse_filter |
| |
| ||
| ||
|
Methods
Theme Properties
| ||
Signals
autoshrink_changed()🔗
Emitted whenautoshrink_enabled orautoshrink_margin changes.
Property Descriptions
boolis_autoshrink_enabled()
Iftrue
, the frame's rect will be adjusted automatically to enclose all attachedGraphElements.
intget_autoshrink_margin()
The margin around the attached nodes that is used to calculate the size of the frame whenautoshrink_enabled istrue
.
intget_drag_margin()
The margin inside the frame that can be used to drag the frame.
Colortint_color =Color(0.3,0.3,0.3,0.75)
🔗
Colorget_tint_color()
The color of the frame whentint_color_enabled istrue
.
booltint_color_enabled =false
🔗
boolis_tint_color_enabled()
Iftrue
, the tint color will be used to tint the frame.
Stringget_title()
Title of the frame.
Method Descriptions
HBoxContainerget_titlebar_hbox()🔗
Returns theHBoxContainer used for the title bar, only containing aLabel for displaying the title by default.
This can be used to add custom controls to the title bar such as option or close buttons.
Theme Property Descriptions
Colorresizer_color =Color(0.875,0.875,0.875,1)
🔗
The color modulation applied to the resizer icon.
The defaultStyleBox used for the background of theGraphFrame.
TheStyleBox used for the background of theGraphFrame when it is selected.
TheStyleBox used for the title bar of theGraphFrame.
TheStyleBox used for the title bar of theGraphFrame when it is selected.