]> git.saurik.com Git - wxWidgets.git/blob - src/qt/dcmemory.cpp
More configure fixes
[wxWidgets.git] / src / qt / dcmemory.cpp
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: dcmemory.cpp
3 // Purpose:
4 // Author: Robert Roebling
5 // Created: 01/02/97
6 // RCS-ID: $Id$
7 // Copyright: (c) 1998 Robert Roebling, Julian Smart and Markus Holzem
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifdef __GNUG__
12 #pragma implementation "dcmemory.h"
13 #endif
14
15 #include "wx/dcmemory.h"
16
17 //-----------------------------------------------------------------------------
18 // wxMemoryDC
19 //-----------------------------------------------------------------------------
20
21 IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC,wxPaintDC)
22
23 wxMemoryDC::wxMemoryDC(void)
24 {
25 m_ok = FALSE;
26 };
27
28 wxMemoryDC::wxMemoryDC( wxDC *WXUNUSED(dc) )
29 {
30 m_ok = FALSE;
31 };
32
33 wxMemoryDC::~wxMemoryDC(void)
34 {
35 };
36
37 void wxMemoryDC::SelectObject( const wxBitmap& bitmap )
38 {
39 m_selected = bitmap;
40 if (m_selected.Ok())
41 {
42 }
43 else
44 {
45 m_ok = FALSE;
46 };
47 };
48
49 void wxMemoryDC::GetSize( int *width, int *height ) const
50 {
51 if (m_selected.Ok())
52 {
53 if (width) (*width) = m_selected.GetWidth();
54 if (height) (*height) = m_selected.GetHeight();
55 }
56 else
57 {
58 if (width) (*width) = 0;
59 if (height) (*height) = 0;
60 };
61 };
62
63