From 702a3875c5c7c5c937e55d50039ccb0c7bced754 Mon Sep 17 00:00:00 2001 From: Johan Paulsson Date: Thu, 24 Jan 2013 16:30:02 +0000 Subject: Anchor support for the parser and osx gui --- tikzit/src/common/Edge.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'tikzit/src/common/Edge.h') diff --git a/tikzit/src/common/Edge.h b/tikzit/src/common/Edge.h index 607fcc6..cc636dd 100644 --- a/tikzit/src/common/Edge.h +++ b/tikzit/src/common/Edge.h @@ -58,6 +58,8 @@ typedef enum { float weight; EdgeStyle *style; GraphElementData *data; + NSString *sourceAnchor; + NSString *targetAnchor; // When set to YES, lazily create the edge node, and keep it around when set // to NO (at least until saved/loaded). @@ -114,6 +116,18 @@ typedef enum { */ @property (retain) Node *edgeNode; +/*! + @property sourceAnchor + @brief The source node anchor point, as in north or center. + */ +@property (copy) NSString *sourceAnchor; + +/*! + @property targetAnchor + @brief The target node anchor point, as in north or center. + */ +@property (copy) NSString *targetAnchor; + /*! @property hasEdgeNode @brief A read/write property. When set to true, a new edge node is actually constructed. -- cgit v1.2.3