summaryrefslogtreecommitdiff
path: root/scene/gui/graph_edit.h
diff options
context:
space:
mode:
authorK. S. Ernest (iFire) Lee <fire@users.noreply.github.com>2021-08-22 01:33:58 -0700
committerGitHub <noreply@github.com>2021-08-22 01:33:58 -0700
commit8cae1294b8b61fd4fc97436eb357c82b817f1d3f (patch)
treed0fbb173499c58f85d233edaf3b8ec27d6a116d5 /scene/gui/graph_edit.h
parentfb94b2e656a48e66cb908a95df97c9e66024a935 (diff)
parente9ef6f9815948cb0cad9efdb399f0a4a15192284 (diff)
Merge pull request #51952 from Jummit/refactor-graphedit-connections
Refactor GraphEdit connections
Diffstat (limited to 'scene/gui/graph_edit.h')
-rw-r--r--scene/gui/graph_edit.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/scene/gui/graph_edit.h b/scene/gui/graph_edit.h
index 9fd7cbef22..67d461a4cb 100644
--- a/scene/gui/graph_edit.h
+++ b/scene/gui/graph_edit.h
@@ -169,9 +169,8 @@ private:
float lines_thickness = 2.0f;
bool lines_antialiased = true;
- void _bake_segment2d(Vector<Vector2> &points, Vector<Color> &colors, float p_begin, float p_end, const Vector2 &p_a, const Vector2 &p_out, const Vector2 &p_b, const Vector2 &p_in, int p_depth, int p_min_depth, int p_max_depth, float p_tol, const Color &p_color, const Color &p_to_color, int &lines) const;
-
- void _draw_cos_line(CanvasItem *p_where, const Vector2 &p_from, const Vector2 &p_to, const Color &p_color, const Color &p_to_color, float p_width, float p_bezier_ratio = 1.0);
+ PackedVector2Array get_connection_line(const Vector2 &p_from, const Vector2 &p_to);
+ void _draw_connection_line(CanvasItem *p_where, const Vector2 &p_from, const Vector2 &p_to, const Color &p_color, const Color &p_to_color, float p_width);
void _graph_node_raised(Node *p_gn);
void _graph_node_moved(Node *p_gn);