aboutsummaryrefslogtreecommitdiff
path: root/Src/tataki/canvas/mac/PaintCanvas.h
blob: 583795086247a0026d7e23da7e2cca4cc299cc9d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#ifndef NULLSOFT_WASABI_OSX_PAINTCANVAS_H
#define NULLSOFT_WASABI_OSX_PAINTCANVAS_H

#include <tataki/export.h>
#include <tataki/canvas/canvas.h>
#include <api/wnd/basewnd.h>

class TATAKIAPI PaintCanvas : public Canvas
{
public:
  PaintCanvas();
  ~PaintCanvas();
  bool beginPaint(BaseWnd *wnd);
protected:
  CGrafPtr qdcontext;
};

class TATAKIAPI PaintBltCanvas : public PaintCanvas
{
public:
  bool beginPaintNC(BaseWnd *wnd)
  {
    return beginPaint(wnd);
  }
};
#warning port PaintBltCanvas
class TATAKIAPI WndCanvas : public Canvas 
{
public:
  WndCanvas();
  virtual ~WndCanvas();
  
  // address client area
  int attachToClient(BaseWnd *basewnd);

private:
  CGrafPtr qdcontext;
};

class TATAKIAPI TextInfoCanvas : public Canvas 
{
public:
  TextInfoCanvas(BaseWnd *baseWnd);
  virtual ~TextInfoCanvas();
};
#endif