X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3f1af9204f1813a10e2c59a5f9b28a7eec630861..32a95f9f1a4a0ed0f569394e379f220666a8e47f:/include/wx/msw/dc.h diff --git a/include/wx/msw/dc.h b/include/wx/msw/dc.h index bba7bd5f81..07d81cb653 100644 --- a/include/wx/msw/dc.h +++ b/include/wx/msw/dc.h @@ -199,10 +199,14 @@ public: // Size in device units virtual void GetSize(int* width, int* height) const; - inline wxSize GetSize(void) const { int w, h; GetSize(&w, &h); return wxSize(w, h); } + inline wxSize GetSize() const { int w, h; GetSize(&w, &h); return wxSize(w, h); } // Size in mm - virtual void GetSizeMM(long* width, long* height) const ; + virtual void GetSizeMM(int* width, int* height) const ; + inline wxSize GetSizeMM() const { int w, h; GetSizeMM(&w, &h); return wxSize(w, h); } + + // Resolution in Pixels per inch + virtual wxSize GetPPI(void) const ; // Compatibility #if WXWIN_COMPATIBILITY @@ -351,7 +355,6 @@ protected: wxWindow * m_canvas; wxBitmap m_selectedBitmap; - wxString m_filename; // TRUE => DeleteDC() in dtor, FALSE => only ReleaseDC() it bool m_bOwnsDC; @@ -420,8 +423,8 @@ protected: #define MS_XDEV2LOGREL(x) DeviceToLogicalXRel(x) #define MS_YDEV2LOGREL(y) DeviceToLogicalYRel(y) -#define MM_POINTS 7 -#define MM_METRIC 8 +#define MM_POINTS 9 +#define MM_METRIC 10 extern int wxPageNumber;