]>
Commit | Line | Data |
---|---|---|
83df96d6 | 1 | ///////////////////////////////////////////////////////////////////////////// |
80fdcdb9 | 2 | // Name: wx/x11/dc.h |
83df96d6 JS |
3 | // Purpose: wxDC class |
4 | // Author: Julian Smart | |
5 | // Modified by: | |
6 | // Created: 17/09/98 | |
83df96d6 | 7 | // Copyright: (c) Julian Smart |
65571936 | 8 | // Licence: wxWindows licence |
83df96d6 JS |
9 | ///////////////////////////////////////////////////////////////////////////// |
10 | ||
11 | #ifndef _WX_DC_H_ | |
12 | #define _WX_DC_H_ | |
13 | ||
83df96d6 JS |
14 | #include "wx/pen.h" |
15 | #include "wx/brush.h" | |
16 | #include "wx/icon.h" | |
17 | #include "wx/font.h" | |
18 | #include "wx/gdicmn.h" | |
19 | ||
83df96d6 JS |
20 | //----------------------------------------------------------------------------- |
21 | // wxDC | |
22 | //----------------------------------------------------------------------------- | |
23 | ||
53a2db12 | 24 | class WXDLLIMPEXP_CORE wxX11DCImpl : public wxDCImpl |
83df96d6 | 25 | { |
83df96d6 | 26 | public: |
2b77c3fc RR |
27 | wxX11DCImpl( wxDC *owner ); |
28 | virtual ~wxX11DCImpl() { } | |
d16b634f | 29 | |
83df96d6 | 30 | virtual wxSize GetPPI() const; |
d16b634f | 31 | |
83df96d6 | 32 | protected: |
83df96d6 JS |
33 | virtual void DoSetClippingRegion(wxCoord x, wxCoord y, |
34 | wxCoord width, wxCoord height); | |
83df96d6 | 35 | virtual void DoGetSizeMM(int* width, int* height) const; |
d16b634f | 36 | |
04ab8b6d RR |
37 | // implementation |
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); } | |
3cd0b8c5 RR |
46 | |
47 | private: | |
2b77c3fc | 48 | DECLARE_CLASS(wxX11DCImpl) |
83df96d6 JS |
49 | }; |
50 | ||
51 | #endif | |
52 | // _WX_DC_H_ |