-class wxDC {
-public:
-// wxDC(); **** abstract base class, can't instantiate.
- ~wxDC();
-
- void BeginDrawing();
-// %name(BlitXY)
- bool Blit(long xdest, long ydest,
- long width, long height,
- wxDC *source, long xsrc, long ysrc,
- int logicalFunc = wxCOPY, int useMask = FALSE);
-// bool Blit(const wxPoint& destPt, const wxSize& sz,
-// wxDC *source, const wxPoint& srcPt,
-// int logicalFunc = wxCOPY, int useMask = FALSE);
-
- void Clear();
- void CrossHair(long x, long y);
- void DestroyClippingRegion();
- long DeviceToLogicalX(long x);
- long DeviceToLogicalXRel(long x);
- long DeviceToLogicalY(long y);
- long DeviceToLogicalYRel(long y);
- void DrawArc(long x1, long y1, long x2, long y2, long xc, long yc);
- void DrawCircle(long x, long y, long radius);
- void DrawEllipse(long x, long y, long width, long height);
- void DrawEllipticArc(long x, long y, long width, long height, long start, long end);
- void DrawIcon(const wxIcon& icon, long x, long y);
- void DrawLine(long x1, long y1, long x2, long y2);
- void DrawLines(int PCOUNT, wxPoint* points, long xoffset=0, long yoffset=0);
- void DrawPolygon(int PCOUNT, wxPoint* points, long xoffset=0, long yoffset=0,
- int fill_style=wxODDEVEN_RULE);
- void DrawPoint(long x, long y);
- void DrawRectangle(long x, long y, long width, long height);
- void DrawRotatedText(const wxString& text, wxCoord x, wxCoord y, double angle);
- void DrawRoundedRectangle(long x, long y, long width, long height, long radius=20);
- void DrawSpline(int PCOUNT, wxPoint* points);
- void DrawText(const wxString& text, long x, long y);
- void EndDoc();
- void EndDrawing();
- void EndPage();
- void FloodFill(long x, long y, const wxColour& colour, int style=wxFLOOD_SURFACE);
- wxBrush& GetBackground();
- wxBrush& GetBrush();
- long GetCharHeight();
- long GetCharWidth();
- void GetClippingBox(long *OUTPUT, long *OUTPUT,
- long *OUTPUT, long *OUTPUT);
- wxFont& GetFont();
- int GetLogicalFunction();
- void GetLogicalScale(double *OUTPUT, double *OUTPUT);
- int GetMapMode();
- bool GetOptimization();
- wxPen& GetPen();
- %addmethods {
- %new wxColour* GetPixel(long x, long y) {
- wxColour* wc = new wxColour();
- self->GetPixel(x, y, wc);
- return wc;
- }
- }
- %name(GetSizeTuple)void GetSize(int* OUTPUT, int* OUTPUT);
- wxSize GetSize();
- wxSize GetSizeMM();
- wxColour& GetTextBackground();
- void GetTextExtent(const wxString& string, long *OUTPUT, long *OUTPUT);
- %name(GetFullTextExtent)void GetTextExtent(const wxString& string,
- long *OUTPUT, long *OUTPUT, long *OUTPUT, long* OUTPUT,
- const wxFont* font = NULL);
- wxColour& GetTextForeground();
- void GetUserScale(double *OUTPUT, double *OUTPUT);
- long LogicalToDeviceX(long x);
- long LogicalToDeviceXRel(long x);
- long LogicalToDeviceY(long y);
- long LogicalToDeviceYRel(long y);
- long MaxX();
- long MaxY();
- long MinX();
- long MinY();
- bool Ok();
- void SetDeviceOrigin(long x, long y);
- void SetBackground(const wxBrush& brush);
- void SetBackgroundMode(int mode);
- void SetClippingRegion(long x, long y, long width, long height);
- void SetPalette(const wxPalette& colourMap);
- void SetBrush(const wxBrush& brush);
- void SetFont(const wxFont& font);
- void SetLogicalFunction(int function);
- void SetLogicalScale(double x, double y);
- void SetMapMode(int mode);
- void SetOptimization(bool optimize);
- void SetPen(const wxPen& pen);
- void SetTextBackground(const wxColour& colour);
- void SetTextForeground(const wxColour& colour);
- void SetUserScale(double x_scale, double y_scale);
- bool StartDoc(const wxString& message);
- void StartPage();
-
-
-
- void DrawBitmap(const wxBitmap& bitmap, long x, long y,
- int useMask = FALSE);
-
- bool CanDrawBitmap();
- bool CanGetTextExtent();
- int GetDepth();
- wxSize GetPPI();
-
- void GetLogicalOrigin(int *OUTPUT, int *OUTPUT);
- void SetLogicalOrigin(int x, int y);
- void GetDeviceOrigin(int *OUTPUT, int *OUTPUT);
- void SetAxisOrientation(bool xLeftRight, bool yBottomUp);
-
- void CalcBoundingBox(int x, int y);
- void ResetBoundingBox();
-};
-
-
-//----------------------------------------------------------------------
-
-class wxMemoryDC : public wxDC {
-public:
- wxMemoryDC();
-
- void SelectObject(const wxBitmap& bitmap);
-}
-
-%new wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC);
-%{ // Alternate 'constructor'
- wxMemoryDC* wxMemoryDCFromDC(wxDC* oldDC) {
- return new wxMemoryDC(oldDC);
- }
-%}
-
-
-//---------------------------------------------------------------------------
-
-class wxScreenDC : public wxDC {
-public:
- wxScreenDC();
-
- %name(StartDrawingOnTopWin) bool StartDrawingOnTop(wxWindow* window);
- bool StartDrawingOnTop(wxRect* rect = NULL);
- bool EndDrawingOnTop();
-};
-
-//---------------------------------------------------------------------------
-
-class wxClientDC : public wxDC {
-public:
- wxClientDC(wxWindow* win);
-};
-
-//---------------------------------------------------------------------------
-
-class wxPaintDC : public wxDC {
-public:
- wxPaintDC(wxWindow* win);
-};
-
-//---------------------------------------------------------------------------
-
-class wxWindowDC : public wxDC {
-public:
- wxWindowDC(wxWindow* win);
-};
-
-//---------------------------------------------------------------------------
-
-#ifndef __WXMSW__
-class wxPostScriptDC : public wxDC {
-public:
- wxPostScriptDC(const wxString& output, bool interactive = TRUE, wxWindow* win = NULL);
-};
-#endif
-