summaryrefslogtreecommitdiff
path: root/tikzit/src/common/ColorRGB.h
diff options
context:
space:
mode:
authorrandomguy3 <randomguy3@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64>2012-03-14 16:30:17 +0000
committerrandomguy3 <randomguy3@7c02a99a-9b00-45e3-bf44-6f3dd7fddb64>2012-03-14 16:30:17 +0000
commita1f668bffbea12453ecc330ec243f9f656582c57 (patch)
tree8e733c708109dce593899ef985b418654aa3927e /tikzit/src/common/ColorRGB.h
parentbf911ac87c17599bc07bb25726f1fa332d233a64 (diff)
Use KVO for listening to style changes in the selectors
git-svn-id: https://tikzit.svn.sourceforge.net/svnroot/tikzit/trunk@426 7c02a99a-9b00-45e3-bf44-6f3dd7fddb64
Diffstat (limited to 'tikzit/src/common/ColorRGB.h')
-rw-r--r--tikzit/src/common/ColorRGB.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tikzit/src/common/ColorRGB.h b/tikzit/src/common/ColorRGB.h
index 412a1f6..607ba64 100644
--- a/tikzit/src/common/ColorRGB.h
+++ b/tikzit/src/common/ColorRGB.h
@@ -36,6 +36,8 @@
@property (assign) float greenFloat;
@property (assign) float blueFloat;
+@property (readonly) NSString *name;
+
- (RColor)rColor;
- (RColor)rColorWithAlpha:(CGFloat)alpha;
@@ -48,8 +50,6 @@
- (id)initWithFloatRed:(float)r green:(float)g blue:(float)b;
- (id)initWithRColor:(RColor)color;
-- (NSString*)name;
-
- (void)setToClosestHashed;
+ (ColorRGB*)colorWithRed:(unsigned short)r green:(unsigned short)g blue:(unsigned short)b;