~ubuntu-branches/ubuntu/quantal/mysql-workbench/quantal

« back to all changes in this revision

Viewing changes to library/canvas/src/mdc_canvas_view_macosx.h

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2012-03-01 21:57:30 UTC
  • Revision ID: package-import@ubuntu.com-20120301215730-o7y8av8y38n162ro
Tags: upstream-5.2.38+dfsg
ImportĀ upstreamĀ versionĀ 5.2.38+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  mdc_canvas_view_macosx.h
 
3
 *  mdcanvas
 
4
 *
 
5
 *  Created by Alfredo Kojima on 07/Mar/5.
 
6
 *  Copyright 2007 MySQL AB. All rights reserved.
 
7
 *
 
8
 */
 
9
 
 
10
#ifndef _MDC_CANVAS_MANAGER_MACOSX_H_
 
11
#define _MDC_CANVAS_MANAGER_MACOSX_H_
 
12
 
 
13
#include "mdc_canvas_view.h"
 
14
#include <cairo-quartz.h>
 
15
#include <OpenGL/gl.h>
 
16
 
 
17
namespace mdc {
 
18
  
 
19
class QuartzCanvasView : public CanvasView 
 
20
{
 
21
public:
 
22
  QuartzCanvasView(CGContextRef cgContext, int width, int height);
 
23
  virtual ~QuartzCanvasView();
 
24
  
 
25
  void reset_context(CGContextRef cgContext);
 
26
  
 
27
  virtual bool has_gl() const { return false; }
 
28
  virtual void begin_repaint(int, int, int, int);
 
29
  virtual void end_repaint();
 
30
  
 
31
//  virtual bool initialize();
 
32
  virtual void update_view_size(int width, int height);
 
33
  
 
34
protected:
 
35
  CGContextRef _cgContext;
 
36
};
 
37
 
 
38
 
 
39
 
 
40
};
 
41
 
 
42
 
 
43
#endif /* _MDC_CANVAS_MANAGER_MACOSX_H_ */