Refactoring terminal routines into TerminalDelegate
[RExecServer.git] / RDevice.h
bloba87ff66d66c5d12ef88548049a6c79442bedc02e
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 @end
18 @interface RDevice : NSObject {
19 QuartzDesc_t desc;
20 NSString *target;
21 NSString *display;
22 id<RDeviceDelegate> delegate;
24 + (Class)deviceForDisplay:(NSString*)display;
25 + (void)registerDevice:(Class)cls forDisplay:(NSString*)display;
27 - (id<RDeviceDelegate>)delegate;
28 - (void)setDelegate:(id<RDeviceDelegate>)delegate;
30 - (id)initWithDevice:(NewDevDesc*)dd size:(NSSize)size pointSize:(double)ps display:(NSString*)aDisplay target:(NSString*)aTarget
31 background:(int)bg antialias:(BOOL)antialias;
32 - (BOOL)canResize;
33 - (BOOL)canLocate;
34 - (BOOL)canDrawInView;
36 - (void)finishOpening;
37 - (void)flushDrawing;
39 - (NSSize)size;
40 - (void)setSize:(NSSize)newSize;
42 - (void)drawInRect:(NSRect)aRect;
43 - (void)redraw;
45 - (NSData*)deviceRepresentationOfType:(NSString*)aType;
46 - (NSString*)target;
47 - (NSString*)display;
49 - (void)close;
50 @end