-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMyClass.h
30 lines (24 loc) · 855 Bytes
/
MyClass.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
//
// MainView.h
// SimpleTextInput
//
// Created by jack liang on 11-07-02.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "Squiggle.h"
#include <objc/runtime.h>
@interface MainView : UIView
{
NSMutableDictionary *squiggles; // squiggles in progress
NSMutableArray *finishedSquiggles; // finished squiggles
UIColor *color; // the current drawing color
float lineWidth; // the current drawing line width
} // end instance variable declaration
// declare color and lineWidth as properties
@property(nonatomic, retain) UIColor *color;
@property float lineWidth;
// draw the given Squiggle into the given graphics context
- (void)drawSquiggle:(Squiggle *)squiggle inContext:(CGContextRef)context;
- (void)resetView; // clear all squiggles from the view
@end // end interface MainView