X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/72cdf4c9b3ce92addf09cfb322f0c19bfb0f8744..0b06ac1f24a3e25aa88f813ac6d91452b907e993:/include/wx/generic/dcpsg.h diff --git a/include/wx/generic/dcpsg.h b/include/wx/generic/dcpsg.h index 387fda5ade..fb1b61bce2 100644 --- a/include/wx/generic/dcpsg.h +++ b/include/wx/generic/dcpsg.h @@ -79,13 +79,15 @@ public: void DoDrawSpline(wxList *points); bool DoBlit(wxCoord xdest, wxCoord ydest, wxCoord width, wxCoord height, - wxDC *source, wxCoord xsrc, wxCoord ysrc, int rop = wxCOPY, bool useMask = FALSE); + wxDC *source, wxCoord xsrc, wxCoord ysrc, int rop = wxCOPY, bool useMask = FALSE, + wxCoord xsrcMask = -1, wxCoord ysrcMask = -1); bool CanDrawBitmap() const { return TRUE; } void DoDrawIcon( const wxIcon& icon, wxCoord x, wxCoord y ); void DoDrawBitmap( const wxBitmap& bitmap, wxCoord x, wxCoord y, bool useMask=FALSE ); void DoDrawText(const wxString& text, wxCoord x, wxCoord y ); + void DoDrawRotatedText(const wxString& text, wxCoord x, wxCoord y, double angle); void Clear(); void SetFont( const wxFont& font ); @@ -106,7 +108,7 @@ public: wxCoord GetCharHeight() const; wxCoord GetCharWidth() const; - bool CanGetTextExtent() const { return FALSE; } + bool CanGetTextExtent() const { return TRUE; } void DoGetTextExtent(const wxString& string, wxCoord *x, wxCoord *y, wxCoord *descent = (wxCoord *) NULL, wxCoord *externalLeading = (wxCoord *) NULL, @@ -128,6 +130,12 @@ public: void SetPrintData(const wxPrintData& data) { m_printData = data; } virtual int GetDepth() const { return 24; } + + static void SetResolution(int ppi); + static int GetResolution(); + +private: + static float ms_PSScaleFactor; protected: