Many changes! Snapshots now working properly. Programmatic environment interface...
[RExecServer.git] / RDevice.h
blob11b7767cbd5fd875561f0df8a8d3447b34693b4e
1 #import <Cocoa/Cocoa.h>
2 #include "RDeviceImpl.h"
4 @class RDevice;
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;
19 @end
21 @interface RDevice : NSObject {
22 QuartzDesc_t desc;
23 NSString *target;
24 NSString *display;
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;
35 - (BOOL)canResize;
36 - (BOOL)canLocate;
37 - (BOOL)canDrawInView;
39 - (void)finishOpening;
40 - (void)flushDrawing;
42 - (NSSize)size;
43 - (void)setSize:(NSSize)newSize;
45 - (void)drawInRect:(NSRect)aRect;
46 - (void)redraw;
48 - (NSData*)deviceRepresentationOfType:(NSString*)aType;
49 - (NSString*)target;
50 - (NSString*)display;
51 - (void)close;
53 - (bycopy NSData*)snapshot;
54 - (void)setSnapshot:(NSData*)aData;
56 @end