romlib
1.0
|
00001 #include <extern.h> 00002 #include <wx/wx.h> 00003 00004 class _EXTERN_ rom_DC 00005 { 00006 public: 00007 00008 rom_DC(wxDC& _dc):DC(_dc){} 00009 00010 int GetLogPixelsX() const throw() 00011 { 00012 return DC.GetPPI().GetWidth(); 00013 } 00014 00015 int GetLogPixelsY() const throw() 00016 { 00017 return DC.GetPPI().GetHeight(); 00018 } 00019 00020 private: 00021 00022 wxDC& DC; 00023 };