]> git.saurik.com Git - wxWidgets.git/blob - include/wx/x11/dc.h
added support for 2 extra mouse buttons (patch 1757630)
[wxWidgets.git] / include / wx / x11 / dc.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: dc.h
3 // Purpose: wxDC class
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 17/09/98
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_DC_H_
13 #define _WX_DC_H_
14
15 #include "wx/pen.h"
16 #include "wx/brush.h"
17 #include "wx/icon.h"
18 #include "wx/font.h"
19 #include "wx/gdicmn.h"
20
21 //-----------------------------------------------------------------------------
22 // wxDC
23 //-----------------------------------------------------------------------------
24
25 class WXDLLEXPORT wxDC : public wxDCBase
26 {
27 public:
28 wxDC();
29 virtual ~wxDC() { }
30
31 // implement base class pure virtuals
32 // ----------------------------------
33
34 virtual wxSize GetPPI() const;
35
36 protected:
37 virtual void DoSetClippingRegion(wxCoord x, wxCoord y,
38 wxCoord width, wxCoord height);
39 virtual void DoGetSizeMM(int* width, int* height) const;
40
41 // implementation
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); }
50
51 private:
52 DECLARE_ABSTRACT_CLASS(wxDC)
53 };
54
55 #endif
56 // _WX_DC_H_