]>
git.saurik.com Git - wxWidgets.git/blob - src/x11/dc.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/x11/dc.cpp
4 // Author: Julian Smart
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 // for compilers that support precompilation, includes "wx.h".
13 #include "wx/wxprec.h"
18 #include "wx/dcmemory.h"
21 IMPLEMENT_ABSTRACT_CLASS(wxDC
, wxObject
)
23 //-----------------------------------------------------------------------------
25 //-----------------------------------------------------------------------------
32 m_font
= *wxNORMAL_FONT
;
33 m_brush
= *wxWHITE_BRUSH
;
35 m_backgroundMode
= wxTRANSPARENT
;
38 void wxDC::DoSetClippingRegion( wxCoord x
, wxCoord y
, wxCoord width
, wxCoord height
)
44 m_clipY2
= y
+ height
;
47 void wxDC::DoGetSizeMM( int* width
, int* height
) const
53 *width
= int( double(w
) / (m_scaleX
*m_mm_to_pix_x
) );
55 *height
= int( double(h
) / (m_scaleY
*m_mm_to_pix_y
) );
58 // Resolution in pixels per logical inch
59 wxSize
wxDC::GetPPI() const
61 // TODO (should probably be pure virtual)