Class GraphFrame
- Namespace
- Forma
- Assembly
- Forma.dll
Graph node used as a visual frame to organize other graph elements.
public sealed class GraphFrame : GraphNode, IAddChild<Control>, IAddChild, INotifyPropertyChanged, IDisposable
- Inheritance
-
GraphFrame
- Implements
- Inherited Members
Constructors
GraphFrame()
public GraphFrame()
Properties
AutoshrinkEnabled
public bool AutoshrinkEnabled { get; set; }
Property Value
AutoshrinkMargin
Uniform graph-coordinate padding around attached elements, equivalent to Godot's autoshrink_margin.
public int AutoshrinkMargin { get; set; }
Property Value
DragMargin
public int DragMargin { get; set; }
Property Value
TintColor
public Color TintColor { get; set; }
Property Value
- Color
TintColorEnabled
public bool TintColorEnabled { get; set; }
Property Value
Methods
ArrangeChildren()
protected override void ArrangeChildren()
ContainsPoint(Point)
public override bool ContainsPoint(Point point)
Parameters
pointPoint
Returns
GetAutoshrinkMargin()
public int GetAutoshrinkMargin()
Returns
GetDesiredSize()
Returns the desired-size variant of the GraphFrame layout requirement.
public override Vector2 GetDesiredSize()
Returns
- Vector2
GetDragMargin()
public int GetDragMargin()
Returns
GetMinimumSize()
Returns the titlebar, body-child, and frame style minimum required by Godot's GraphFrame layout.
public override Vector2 GetMinimumSize()
Returns
- Vector2
GetTintColor()
public Color GetTintColor()
Returns
- Color
GetTitle()
public string GetTitle()
Returns
GetTitlebarHBox()
public HBoxContainer GetTitlebarHBox()
Returns
GetTitlebarSize()
public Vector2 GetTitlebarSize()
Returns
- Vector2
IsAutoshrinkEnabled()
public bool IsAutoshrinkEnabled()
Returns
IsTintColorEnabled()
public bool IsTintColorEnabled()
Returns
SetAutoshrinkEnabled(bool)
public void SetAutoshrinkEnabled(bool enable)
Parameters
enablebool
SetAutoshrinkMargin(int)
public void SetAutoshrinkMargin(int margin)
Parameters
marginint
SetDragMargin(int)
public void SetDragMargin(int margin)
Parameters
marginint
SetTintColor(Color)
public void SetTintColor(Color color)
Parameters
colorColor
SetTintColorEnabled(bool)
public void SetTintColorEnabled(bool enable)
Parameters
enablebool
SetTitle(string)
public void SetTitle(string title)
Parameters
titlestring
Events
AutoshrinkChanged
public event Action<GraphFrame, Vector2> AutoshrinkChanged
Event Type
- Action<GraphFrame, Vector2>