]>
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 wxX11DCImpl
: public wxDCImpl
28 wxX11DCImpl( wxDC
*owner
);
29 virtual ~wxX11DCImpl() { }
31 virtual wxSize
GetPPI() const;
34 virtual void DoSetClippingRegion(wxCoord x
, wxCoord y
,
35 wxCoord width
, wxCoord height
);
36 virtual void DoGetSizeMM(int* width
, int* height
) const;
39 wxCoord
XDEV2LOG(wxCoord x
) const { return DeviceToLogicalX(x
); }
40 wxCoord
XDEV2LOGREL(wxCoord x
) const { return DeviceToLogicalXRel(x
); }
41 wxCoord
YDEV2LOG(wxCoord y
) const { return DeviceToLogicalY(y
); }
42 wxCoord
YDEV2LOGREL(wxCoord y
) const { return DeviceToLogicalYRel(y
); }
43 wxCoord
XLOG2DEV(wxCoord x
) const { return LogicalToDeviceX(x
); }
44 wxCoord
XLOG2DEVREL(wxCoord x
) const { return LogicalToDeviceXRel(x
); }
45 wxCoord
YLOG2DEV(wxCoord y
) const { return LogicalToDeviceY(y
); }
46 wxCoord
YLOG2DEVREL(wxCoord y
) const { return LogicalToDeviceYRel(y
); }
49 DECLARE_CLASS(wxX11DCImpl
)