PaintCanvas.h 760 B

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