diff options
author | Johan Paulsson <gonz@users.sourceforge.net> | 2013-01-24 16:30:02 +0000 |
---|---|---|
committer | Johan Paulsson <gonz@users.sourceforge.net> | 2013-01-24 16:30:02 +0000 |
commit | 702a3875c5c7c5c937e55d50039ccb0c7bced754 (patch) | |
tree | ee41f8802ec6b7904de7921fb97fa7f262e129aa /tikzit/src/common/Edge.h | |
parent | 310d4379dd0f439e9a988c3202add12021384690 (diff) |
Anchor support for the parser and osx gui
Diffstat (limited to 'tikzit/src/common/Edge.h')
-rw-r--r-- | tikzit/src/common/Edge.h | 14 |
1 files changed, 14 insertions, 0 deletions
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). @@ -115,6 +117,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. */ |