summaryrefslogtreecommitdiff
path: root/xc/programs/Xserver/hw/darwin/bundle/XWindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'xc/programs/Xserver/hw/darwin/bundle/XWindow.h')
-rw-r--r--xc/programs/Xserver/hw/darwin/bundle/XWindow.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/xc/programs/Xserver/hw/darwin/bundle/XWindow.h b/xc/programs/Xserver/hw/darwin/bundle/XWindow.h
new file mode 100644
index 000000000..1049fc471
--- /dev/null
+++ b/xc/programs/Xserver/hw/darwin/bundle/XWindow.h
@@ -0,0 +1,37 @@
+/*
+ * NSWindow subclass for Mac OS X rootless X server
+ */
+/* $XFree86: xc/programs/Xserver/hw/darwin/bundle/XWindow.h,v 1.1 2001/07/01 02:13:41 torrey Exp $ */
+
+#import <Cocoa/Cocoa.h>
+#import "XView.h"
+
+#include "fakeBoxRec.h"
+
+@interface XWindow : NSWindow
+{
+ XView *mView;
+}
+
+-(id) initWithContentRect:(NSRect)aRect
+ isRoot:(BOOL)isRoot;
+-(void) dealloc;
+
+-(char *) bits;
+-(void) getBits:(char **)bits
+ rowBytes:(int *)rowBytes
+ depth:(int *)depth
+ bitsPerPixel:(int *)bpp;
+
+-(void) refreshRects:(fakeBoxRec *)rectList
+ count:(int)count;
+
+-(void) orderWindow:(NSWindowOrderingMode)place
+ relativeTo:(int)otherWindowNumber;
+
+-(void) sendEvent:(NSEvent *)anEvent;
+-(BOOL) canBecomeMainWindow;
+-(BOOL) canBecomeKeyWindow;
+-(BOOL) useOptimizedDrawing;
+
+@end