Permalink
Browse files

adding sample project

  • Loading branch information...
1 parent d9b2664 commit 6fdfa8ab0d8a52745e473e3f88c08d021483af26 @simonmaddox committed Sep 15, 2010
View
@@ -0,0 +1,41 @@
+//
+// SMFancyText.h
+// SMFancyText
+//
+// Created by Simon Maddox on 12/08/2010.
+// Copyright 2010 Sensible Duck Ltd. All rights reserved.
+//
+
+#import <UIKit/UIKit.h>
+#import <libxml/htmlparser.h>
+
+@class SMFancyTextElement;
+
+
+@protocol SMFancyTextDelegate <NSObject>
+
+- (void) linkPressed:(UIButton *)link;
+
+@end
+
+@interface SMFancyText : UIView {
+ NSString *text;
+ id <SMFancyTextDelegate> delegate;
+
+ @private
+ UIColor *_textColor;
+ htmlParserCtxtPtr context;
+ NSMutableArray *elements;
+ SMFancyTextElement *currentElement;
+ CGPoint currentPosition;
+}
+
+@property (nonatomic, retain) UIColor *textColor;
+@property (nonatomic, assign) id <SMFancyTextDelegate> delegate;
+
+@property (nonatomic, retain) SMFancyTextElement *currentElement;
+@property (nonatomic, retain) NSMutableArray *elements;
+
+- (void) setText: (NSString *) newText;
+
+@end
Oops, something went wrong.

0 comments on commit 6fdfa8a

Please sign in to comment.