1 #import <Cocoa/Cocoa.h>
2 #include "RDeviceImpl.h"
6 @protocol RDeviceDelegate
7 - (void)willChangeDelegateForDevice
:(RDevice
*)aDevice
;
8 - (void)didChangeDelegateForDevice
:(RDevice
*)aDevice
;
10 - (void)didUpdateDevice
:(RDevice
*)aDevice
;
11 - (void)didActivateDevice
:(RDevice
*)aDevice withNumber
:(int)num
;
12 - (void)didDeactivateDevice
:(RDevice
*)aDevice withNumber
:(int)num
;
16 @interface RDevice
: NSObject
{
20 id
<RDeviceDelegate
> delegate
;
22 + (Class
)deviceForDisplay
:(NSString
*)display
;
23 + (void)registerDevice
:(Class
)cls forDisplay
:(NSString
*)display
;
25 - (id
<RDeviceDelegate
>)delegate
;
26 - (void)setDelegate
:(id
<RDeviceDelegate
>)delegate
;
28 - (id
)initWithDevice
:(NewDevDesc
*)dd size
:(NSSize
)size pointSize
:(double)ps display
:(NSString
*)aDisplay target
:(NSString
*)aTarget
29 background
:(int)bg antialias
:(BOOL
)antialias
;
32 - (BOOL
)canDrawInView
;
34 - (void)finishOpening
;
38 - (void)setSize
:(NSSize
)newSize
;
40 - (void)drawInRect
:(NSRect
)aRect
;
43 - (NSData
*)deviceRepresentationOfType
:(NSString
*)aType
;