Class GraphEditMinimap
- Namespace
- Forma
- Assembly
- Forma.dll
Minimap overlay for a GraphEdit; its bounds can be driven by graph-node positions.
public sealed class GraphEditMinimap : Control, IAddChild<Control>, IAddChild, INotifyPropertyChanged
- Inheritance
-
GraphEditMinimap
- Implements
- Inherited Members
Constructors
GraphEditMinimap()
public GraphEditMinimap()
Properties
Graph
public GraphEdit Graph { get; set; }
Property Value
NodeColor
public Color NodeColor { get; set; }
Property Value
- Color
ViewportColor
public Color ViewportColor { get; set; }
Property Value
- Color
Methods
GetCameraBounds()
Screen-space camera rectangle, equivalent to Godot's GraphEditMinimap::get_camera_rect().
public Rectangle GetCameraBounds()
Returns
- Rectangle
GetConnectionLineColors(GraphConnection, Theme)
public (Color From, Color To) GetConnectionLineColors(GraphConnection connection, Theme theme)
Parameters
connectionGraphConnectionthemeTheme
Returns
GetConnectionLinePoints(GraphConnection)
public IReadOnlyList<Vector2> GetConnectionLinePoints(GraphConnection connection)
Parameters
connectionGraphConnection
Returns
- IReadOnlyList<Vector2>
GetMinimumSize()
public override Vector2 GetMinimumSize()
Returns
- Vector2
GetNodeBounds(GraphNode)
public Rectangle GetNodeBounds(GraphNode node)
Parameters
nodeGraphNode
Returns
- Rectangle
GetResizeHandleBounds()
Screen-space bounds of Godot's top-left minimap resize handle.
public Rectangle GetResizeHandleBounds()
Returns
- Rectangle
MapGraphPoint(Vector2)
public Vector2 MapGraphPoint(Vector2 graphPoint)
Parameters
graphPointVector2
Returns
- Vector2