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 #import "../ui/graphics.h"
30 #import "toolkit.h"
31
32
33 @interface UiCanvas : NSView {
34 UiObject *object;
35 ui_drawfunc callback;
36 void *userdata;
37 }
38
39 - (UiObject*) object;
40 - (
void) setObject:(
void*)obj;
41
42 - (
void*) userdata;
43 - (
void) setUserdata:(
void*)d;
44
45 - (ui_drawfunc) callback;
46 - (
void) setCallback: (ui_drawfunc)f;
47
48
49 - (
void)drawRect:(NSRect)rect;
50
51 @end
52
53