1
0

PaintCanvas.h 827 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #ifndef NULLSOFT_WASABI_OSX_PAINTCANVAS_H
  2. #define NULLSOFT_WASABI_OSX_PAINTCANVAS_H
  3. #include <tataki/export.h>
  4. #include <tataki/canvas/canvas.h>
  5. #include <api/wnd/basewnd.h>
  6. class TATAKIAPI PaintCanvas : public Canvas
  7. {
  8. public:
  9. PaintCanvas();
  10. ~PaintCanvas();
  11. bool beginPaint(BaseWnd *wnd);
  12. protected:
  13. CGrafPtr qdcontext;
  14. };
  15. class TATAKIAPI PaintBltCanvas : public PaintCanvas
  16. {
  17. public:
  18. bool beginPaintNC(BaseWnd *wnd)
  19. {
  20. return beginPaint(wnd);
  21. }
  22. };
  23. #warning port PaintBltCanvas
  24. class TATAKIAPI WndCanvas : public Canvas
  25. {
  26. public:
  27. WndCanvas();
  28. virtual ~WndCanvas();
  29. // address client area
  30. int attachToClient(BaseWnd *basewnd);
  31. private:
  32. CGrafPtr qdcontext;
  33. };
  34. class TATAKIAPI TextInfoCanvas : public Canvas
  35. {
  36. public:
  37. TextInfoCanvas(BaseWnd *baseWnd);
  38. virtual ~TextInfoCanvas();
  39. };
  40. #endif