summaryrefslogtreecommitdiff
path: root/tikzit/src/common/Edge.h
diff options
context:
space:
mode:
authorAlex Merry <dev@randomguy3.me.uk>2013-08-25 20:34:38 +0100
committerAlex Merry <dev@randomguy3.me.uk>2013-08-25 20:34:38 +0100
commite707060efcf1cb751b7f1a0e26051bc6b93b123f (patch)
tree0a1c53e72f502f0c07be446b6795e3fe86963777 /tikzit/src/common/Edge.h
parent778d71f996a91273da7fa4625d0c66ceacb4cd63 (diff)
Recalculate edge properties when shapes are refreshed
Shape sizes can change (if you're actively editing a shape), which can mean that some edge properties need to be recalculated. We do this at the graph, rather than edge, level to avoid the overhead of installing a notification for every single edge.
Diffstat (limited to 'tikzit/src/common/Edge.h')
-rw-r--r--tikzit/src/common/Edge.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tikzit/src/common/Edge.h b/tikzit/src/common/Edge.h
index 64da138..accf38c 100644
--- a/tikzit/src/common/Edge.h
+++ b/tikzit/src/common/Edge.h
@@ -274,6 +274,11 @@ typedef enum {
- (id)initWithSource:(Node*)s andTarget:(Node*)t;
/*!
+ @brief Force the recalculation of the derived properties.
+ */
+- (void)recalculateProperties;
+
+/*!
@brief Recompute the control points and midpoint.
*/
- (void)updateControls;