-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathFLRadialPainter.h
53 lines (42 loc) · 1.2 KB
/
FLRadialPainter.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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/* Copyright (C) 1996 Dave Vasilevsky
* This file is licensed under the GNU General Public License,
* see the file Copying.txt for details. */
// Utility functions
@interface NSView (FLRadialPainter)
- (NSPoint) center;
- (float) maxRadius;
@end
// Colorer
@interface NSObject (FLColorer)
- (NSColor *) colorForItem: (id) item
angleFrac: (float) angle
levelFrac: (float) level;
@end
@protocol FLHasDataSource
- (id) dataSource;
@end
@interface FLRadialPainter : NSObject
{
int m_maxLevels;
float m_minRadiusFraction, m_maxRadiusFraction;
float m_minPaintAngle;
NSView <FLHasDataSource> *m_view;
id m_colorer;
}
// Accessors
- (int) maxLevels;
- (void) setMaxLevels: (int)levels;
- (float) minRadiusFraction;
- (void) setMinRadiusFraction: (float)fraction;
- (float) maxRadiusFraction;
- (void) setMaxRadiusFraction: (float)fraction;
- (float) minPaintAngle;
- (void) setMinPaintAngle: (float)angle;
- (id) colorer;
- (void) setColorer: (id) c;
- (NSView <FLHasDataSource> *) view;
- (void) setView: (NSView <FLHasDataSource> *)view;
- (id) initWithView: (NSView <FLHasDataSource> *)view;
- (void)drawRect: (NSRect)rect;
- (id)itemAt: (NSPoint)point;
@end