]>
git.saurik.com Git - wxWidgets.git/blob - src/x11/dc.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: src/x11/dc.cpp
4 // Author: Julian Smart
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 // for compilers that support precompilation, includes "wx.h".
12 #include "wx/wxprec.h"
15 #include "wx/x11/dc.h"
18 #include "wx/dcmemory.h"
21 IMPLEMENT_ABSTRACT_CLASS(wxX11DCImpl
, wxDCImpl
)
23 //-----------------------------------------------------------------------------
25 //-----------------------------------------------------------------------------
27 wxX11DCImpl::wxX11DCImpl( wxDC
*owner
) :
33 m_font
= *wxNORMAL_FONT
;
34 m_brush
= *wxWHITE_BRUSH
;
36 m_backgroundMode
= wxTRANSPARENT
;
39 void wxX11DCImpl::DoSetClippingRegion( wxCoord x
, wxCoord y
, wxCoord width
, wxCoord height
)
45 m_clipY2
= y
+ height
;
48 void wxX11DCImpl::DoGetSizeMM( int* width
, int* height
) const
54 *width
= int( double(w
) / (m_scaleX
*m_mm_to_pix_x
) );
56 *height
= int( double(h
) / (m_scaleY
*m_mm_to_pix_y
) );
59 // Resolution in pixels per logical inch
60 wxSize
wxX11DCImpl::GetPPI() const
62 // TODO (should probably be pure virtual)