]>
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"
16 #include "wx/x11/dc.h"
19 #include "wx/dcmemory.h"
22 IMPLEMENT_ABSTRACT_CLASS(wxX11DCImpl
, wxDCImpl
)
24 //-----------------------------------------------------------------------------
26 //-----------------------------------------------------------------------------
28 wxX11DCImpl::wxX11DCImpl( wxDC
*owner
) :
34 m_font
= *wxNORMAL_FONT
;
35 m_brush
= *wxWHITE_BRUSH
;
37 m_backgroundMode
= wxTRANSPARENT
;
40 void wxX11DCImpl::DoSetClippingRegion( wxCoord x
, wxCoord y
, wxCoord width
, wxCoord height
)
46 m_clipY2
= y
+ height
;
49 void wxX11DCImpl::DoGetSizeMM( int* width
, int* height
) const
55 *width
= int( double(w
) / (m_scaleX
*m_mm_to_pix_x
) );
57 *height
= int( double(h
) / (m_scaleY
*m_mm_to_pix_y
) );
60 // Resolution in pixels per logical inch
61 wxSize
wxX11DCImpl::GetPPI() const
63 // TODO (should probably be pure virtual)