#import "../ui/graphics.h"
#import "toolkit.h"
@interface UiCanvas : NSView {
UiObject *object;
ui_drawfunc callback;
void *userdata;
}
- (UiObject*) object;
- (void) setObject:(void*)obj;
- (void*) userdata;
- (void) setUserdata:(void*)d;
- (ui_drawfunc) callback;
- (void) setCallback: (ui_drawfunc)f;
- (void)drawRect:(NSRect)rect;
@end