]> git.saurik.com Git - wxWidgets.git/blame - include/wx/x11/dc.h
Only compile wxStd{Input,Output}Stream if wxUSE_STREAMS==1.
[wxWidgets.git] / include / wx / x11 / dc.h
CommitLineData
83df96d6
JS
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
65571936 9// Licence: wxWindows licence
83df96d6
JS
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_DC_H_
13#define _WX_DC_H_
14
83df96d6
JS
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
83df96d6
JS
21//-----------------------------------------------------------------------------
22// wxDC
23//-----------------------------------------------------------------------------
24
53a2db12 25class WXDLLIMPEXP_CORE wxX11DCImpl : public wxDCImpl
83df96d6 26{
83df96d6 27public:
2b77c3fc
RR
28 wxX11DCImpl( wxDC *owner );
29 virtual ~wxX11DCImpl() { }
d16b634f 30
83df96d6 31 virtual wxSize GetPPI() const;
d16b634f 32
83df96d6 33protected:
83df96d6
JS
34 virtual void DoSetClippingRegion(wxCoord x, wxCoord y,
35 wxCoord width, wxCoord height);
83df96d6 36 virtual void DoGetSizeMM(int* width, int* height) const;
d16b634f 37
04ab8b6d
RR
38 // implementation
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); }
3cd0b8c5
RR
47
48private:
2b77c3fc 49 DECLARE_CLASS(wxX11DCImpl)
83df96d6
JS
50};
51
52#endif
53// _WX_DC_H_