2
* mdc_canvas_view_macosx.h
5
* Created by Alfredo Kojima on 07/Mar/5.
6
* Copyright 2007 MySQL AB. All rights reserved.
10
#ifndef _MDC_CANVAS_MANAGER_MACOSX_H_
11
#define _MDC_CANVAS_MANAGER_MACOSX_H_
13
#include "mdc_canvas_view.h"
14
#include <cairo-quartz.h>
15
#include <OpenGL/gl.h>
19
class QuartzCanvasView : public CanvasView
22
QuartzCanvasView(CGContextRef cgContext, int width, int height);
23
virtual ~QuartzCanvasView();
25
void reset_context(CGContextRef cgContext);
27
virtual bool has_gl() const { return false; }
28
virtual void begin_repaint(int, int, int, int);
29
virtual void end_repaint();
31
// virtual bool initialize();
32
virtual void update_view_size(int width, int height);
35
CGContextRef _cgContext;
43
#endif /* _MDC_CANVAS_MANAGER_MACOSX_H_ */