-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathFLRadialItem.h
43 lines (34 loc) · 1014 Bytes
/
FLRadialItem.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
/* Copyright (C) 1996 Dave Vasilevsky
* This file is licensed under the GNU General Public License,
* see the file Copying.txt for details. */
// Data source: generalization of NSOutlineViewDataSource
// nil object means the root.
@interface NSObject (FLRadialPainterDataSource)
- (id) child: (int) index ofItem: (id) item;
- (int) numberOfChildrenOfItem: (id) item;
- (float) weightOfItem: (id) item;
@end
@interface FLRadialItem : NSObject {
id m_dataSource;
id m_item;
float m_weight;
float m_startAngle, m_endAngle;
int m_level;
}
- (id) initWithItem: (id)item
dataSource: (id)dataSource
weight: (float)weight
startAngle: (float)a1
endAngle: (float)a2
level: (int)level;
- (id) item;
- (float) weight;
- (float) startAngle;
- (float) endAngle;
- (int) level;
- (float) midAngle;
- (float) angleSpan;
- (NSArray *) children;
- (NSEnumerator *)childEnumerator;
+ (FLRadialItem *) rootItemWithDataSource: (id)dataSource;
@end