winamp/Src/Wasabi/api/wnd/platform/osx/PaintCanvas.h
2024-09-24 14:54:57 +02:00

45 lines
760 B
C++

#ifndef NULLSOFT_WASABI_OSX_PAINTCANVAS_H
#define NULLSOFT_WASABI_OSX_PAINTCANVAS_H
#include <tataki/canvas/canvas.h>
#include <api/wnd/basewnd.h>
class PaintCanvas : public Canvas
{
public:
PaintCanvas();
~PaintCanvas();
bool beginPaint(BaseWnd *wnd);
protected:
CGrafPtr qdcontext;
};
class PaintBltCanvas : public PaintCanvas
{
public:
bool beginPaintNC(BaseWnd *wnd)
{
return beginPaint(wnd);
}
};
#warning port PaintBltCanvas
class WndCanvas : public Canvas
{
public:
WndCanvas();
virtual ~WndCanvas();
// address client area
int attachToClient(BaseWnd *basewnd);
private:
CGrafPtr qdcontext;
};
class TextInfoCanvas : public Canvas
{
public:
TextInfoCanvas(BaseWnd *baseWnd);
virtual ~TextInfoCanvas();
};
#endif