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