Class GraphFrame
- Namespace
- Godot
- Assembly
- GodotSharp.dll
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.
public class GraphFrame : GraphElement, IDisposable
- Inheritance
-
GraphFrame
- Implements
- Inherited Members
Constructors
GraphFrame()
public GraphFrame()
Properties
AutoshrinkEnabled
If true, the frame's rect will be adjusted automatically to enclose all attached GraphElements.
public bool AutoshrinkEnabled { get; set; }
Property Value
AutoshrinkMargin
The margin around the attached nodes that is used to calculate the size of the frame when AutoshrinkEnabled is true.
public int AutoshrinkMargin { get; set; }
Property Value
DragMargin
The margin inside the frame that can be used to drag the frame.
public int DragMargin { get; set; }
Property Value
TintColor
The color of the frame when TintColorEnabled is true.
public Color TintColor { get; set; }
Property Value
TintColorEnabled
If true, the tint color will be used to tint the frame.
public bool TintColorEnabled { get; set; }
Property Value
Title
Title of the frame.
public string Title { get; set; }
Property Value
Methods
GetTitlebarHBox()
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.
public HBoxContainer GetTitlebarHBox()
Returns
HasGodotClassMethod(in godot_string_name)
Check if the type contains a method with the given name. This method is used by Godot to check if a method exists before invoking it. Do not call or override this method.
protected override bool HasGodotClassMethod(in godot_string_name method)
Parameters
method
godot_string_nameName of the method to check for.
Returns
HasGodotClassSignal(in godot_string_name)
Check if the type contains a signal with the given name. This method is used by Godot to check if a signal exists before raising it. Do not call or override this method.
protected override bool HasGodotClassSignal(in godot_string_name signal)
Parameters
signal
godot_string_nameName of the signal to check for.
Returns
InvokeGodotClassMethod(in godot_string_name, NativeVariantPtrArgs, out godot_variant)
Invokes the method with the given name, using the given arguments. This method is used by Godot to invoke methods from the engine side. Do not call or override this method.
protected override bool InvokeGodotClassMethod(in godot_string_name method, NativeVariantPtrArgs args, out godot_variant ret)
Parameters
method
godot_string_nameName of the method to invoke.
args
NativeVariantPtrArgsArguments to use with the invoked method.
ret
godot_variantValue returned by the invoked method.
Returns
Events
AutoshrinkChanged
Emitted when AutoshrinkEnabled or AutoshrinkMargin changes.
public event Action AutoshrinkChanged