3 typedef uint32_t CocoaColor;
5 @interface EcereView : NSView
8 // Reference to the Ecere Window class via pointer. Used for callbacks.
9 EcereWindowRef _ecereWindow;
11 // Foreground and background draw color.
12 CocoaColor _foreground;
13 CocoaColor _background;
17 NSOpenGLContext *_context;
18 NSOpenGLPixelFormat *_pixelformat;
20 - (EcereView*)initWithEcereWindow:(EcereWindowRef)ecereWindow;
21 - (NSOpenGLContext*)openGLContext;
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;