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
;
14 - (void)willCloseDevice
:(RDevice
*)aDevice
;
16 - (void)willBeginPageForDevice
:(RDevice
*)aDevice
;
17 - (void)didEndPageForDevice
:(RDevice
*)aDevice
;
21 @interface RDevice
: NSObject
{
25 id
<RDeviceDelegate
> delegate
;
27 + (Class
)deviceForDisplay
:(NSString
*)display
;
28 + (void)registerDevice
:(Class
)cls forDisplay
:(NSString
*)display
;
30 - (id
<RDeviceDelegate
>)delegate
;
31 - (void)setDelegate
:(id
<RDeviceDelegate
>)delegate
;
33 - (id
)initWithDevice
:(void*)dd size
:(NSSize
)size pointSize
:(double)ps display
:(NSString
*)aDisplay target
:(NSString
*)aTarget
34 background
:(int)bg antialias
:(BOOL
)antialias
;
37 - (BOOL
)canDrawInView
;
39 - (void)finishOpening
;
43 - (void)setSize
:(NSSize
)newSize
;
45 - (void)drawInRect
:(NSRect
)aRect
;
48 - (NSData
*)deviceRepresentationOfType
:(NSString
*)aType
;
53 - (bycopy NSData
*)snapshot
;
54 - (void)setSnapshot
:(NSData
*)aData
;