diff options
Diffstat (limited to 'tikzit/src/common/Shape.h')
-rw-r--r-- | tikzit/src/common/Shape.h | 15 |
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; |