1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Julian Smart
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
18 #include "wx/gdicmn.h"
20 //-----------------------------------------------------------------------------
22 //-----------------------------------------------------------------------------
24 class WXDLLIMPEXP_CORE wxX11DCImpl
: public wxDCImpl
27 wxX11DCImpl( wxDC
*owner
);
28 virtual ~wxX11DCImpl() { }
30 virtual wxSize
GetPPI() const;
33 virtual void DoSetClippingRegion(wxCoord x
, wxCoord y
,
34 wxCoord width
, wxCoord height
);
35 virtual void DoGetSizeMM(int* width
, int* height
) const;
38 wxCoord
XDEV2LOG(wxCoord x
) const { return DeviceToLogicalX(x
); }
39 wxCoord
XDEV2LOGREL(wxCoord x
) const { return DeviceToLogicalXRel(x
); }
40 wxCoord
YDEV2LOG(wxCoord y
) const { return DeviceToLogicalY(y
); }
41 wxCoord
YDEV2LOGREL(wxCoord y
) const { return DeviceToLogicalYRel(y
); }
42 wxCoord
XLOG2DEV(wxCoord x
) const { return LogicalToDeviceX(x
); }
43 wxCoord
XLOG2DEVREL(wxCoord x
) const { return LogicalToDeviceXRel(x
); }
44 wxCoord
YLOG2DEV(wxCoord y
) const { return LogicalToDeviceY(y
); }
45 wxCoord
YLOG2DEVREL(wxCoord y
) const { return LogicalToDeviceYRel(y
); }
48 DECLARE_CLASS(wxX11DCImpl
)