4362b8d35f5ed82fc673167dcaaaf7c763db773d
[sdk] / ecere / src / gui / drivers / cocoa / EcereView.h
1 #include <stdint.h>
2
3 typedef uint32_t CocoaColor;
4
5 @interface EcereView : NSView
6 {
7 @private
8     // Reference to the Ecere Window class via pointer. Used for callbacks.
9     EcereWindowRef _ecereWindow;
10     
11     // Foreground and background draw color.
12     CocoaColor _foreground;
13     CocoaColor _background;
14     
15     int lockCount;
16     
17     NSOpenGLContext *_context;
18     NSOpenGLPixelFormat *_pixelformat;
19 }
20 - (EcereView*)initWithEcereWindow:(EcereWindowRef)ecereWindow;
21 - (NSOpenGLContext*)openGLContext;
22 - (void)lockFOcus;
23 - (void)makeCurrentContext;
24 - (void)flushOpenGLBuffer;
25 - (EcereWindowRef)ecereWindow;
26 - (void)setEcereWindow:(EcereWindowRef)ecereWindow;
27 - (CocoaColor)foreground;
28 - (void)setForeground:(CocoaColor)color;
29 - (CocoaColor)background;
30 - (void)setBackground:(CocoaColor)color;
31 @end
32
33