summaryrefslogtreecommitdiff
path: root/tikzit/src/common/Shape.h
diff options
context:
space:
mode:
authorAlex Merry <alex.merry@cs.ox.ac.uk>2012-05-23 17:39:58 +0100
committerAlex Merry <alex.merry@cs.ox.ac.uk>2012-05-23 17:39:58 +0100
commit5dcbea7d268bf1be9548226665bce6a24e2e9d55 (patch)
treea317534bb0682eb53621c2a163bb776a2851b7c7 /tikzit/src/common/Shape.h
parent33a1af9afed49f43f3577acb213ab0469035730f (diff)
Start fixing shapes in the preamble
RegularPolyShape needs fixing still, and the tikz shapes need sorting out.
Diffstat (limited to 'tikzit/src/common/Shape.h')
-rw-r--r--tikzit/src/common/Shape.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/tikzit/src/common/Shape.h b/tikzit/src/common/Shape.h
index 194a88b..b401a87 100644
--- a/tikzit/src/common/Shape.h
+++ b/tikzit/src/common/Shape.h
@@ -25,12 +25,19 @@
#import "Transformer.h"
@interface Shape : NSObject <NSCopying> {
- NSSet *paths;
- NSRect boundingRect; // cache
+ NSSet *paths;
+ NSRect boundingRect; // cache
+ NSString *styleTikz;
}
-@property (retain) NSSet *paths;
-@property (readonly) NSRect boundingRect;
+@property (retain) NSSet *paths;
+@property (readonly) NSRect boundingRect;
+/**
+ * The tikz code to use in style properties for this shape
+ *
+ * This can return nil, in which case the shape name should be used
+ */
+@property (retain) NSString *styleTikz;
- (id)init;
+ (void)refreshShapeDictionary;