]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/x11/dc.h
1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
19 #include "wx/gdicmn.h"
21 //-----------------------------------------------------------------------------
23 //-----------------------------------------------------------------------------
25 class WXDLLEXPORT wxDC
: public wxDCBase
31 // implement base class pure virtuals
32 // ----------------------------------
34 virtual wxSize
GetPPI() const;
37 virtual void DoSetClippingRegion(wxCoord x
, wxCoord y
,
38 wxCoord width
, wxCoord height
);
39 virtual void DoGetSizeMM(int* width
, int* height
) const;
42 wxCoord
XDEV2LOG(wxCoord x
) const { return DeviceToLogicalX(x
); }
43 wxCoord
XDEV2LOGREL(wxCoord x
) const { return DeviceToLogicalXRel(x
); }
44 wxCoord
YDEV2LOG(wxCoord y
) const { return DeviceToLogicalY(y
); }
45 wxCoord
YDEV2LOGREL(wxCoord y
) const { return DeviceToLogicalYRel(y
); }
46 wxCoord
XLOG2DEV(wxCoord x
) const { return LogicalToDeviceX(x
); }
47 wxCoord
XLOG2DEVREL(wxCoord x
) const { return LogicalToDeviceXRel(x
); }
48 wxCoord
YLOG2DEV(wxCoord y
) const { return LogicalToDeviceY(y
); }
49 wxCoord
YLOG2DEVREL(wxCoord y
) const { return LogicalToDeviceYRel(y
); }
52 DECLARE_ABSTRACT_CLASS(wxDC
)