]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/x11/dcmemory.h
Applied rowspan patch #15276 (dghart)
[wxWidgets.git] / include / wx / x11 / dcmemory.h
... / ...
CommitLineData
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/x11/dcmemory.h
3// Purpose: wxMemoryDC class
4// Author: Julian Smart
5// Modified by:
6// Created: 17/09/98
7// RCS-ID: $Id$
8// Copyright: (c) Julian Smart
9// Licence: wxWindows licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_DCMEMORY_H_
13#define _WX_DCMEMORY_H_
14
15#include "wx/dc.h"
16#include "wx/dcmemory.h"
17#include "wx/x11/dcclient.h"
18
19class WXDLLIMPEXP_CORE wxMemoryDCImpl : public wxWindowDCImpl
20{
21public:
22 wxMemoryDCImpl( wxDC* owner );
23 wxMemoryDCImpl( wxDC* owner, wxBitmap& bitmap);
24 wxMemoryDCImpl( wxDC* owner, wxDC *dc );
25 virtual ~wxMemoryDCImpl();
26
27 virtual const wxBitmap& GetSelectedBitmap() const;
28 virtual wxBitmap& GetSelectedBitmap();
29
30 // implementation
31 wxBitmap m_selected;
32
33protected:
34 virtual void DoGetSize( int *width, int *height ) const;
35 virtual void DoSelect(const wxBitmap& bitmap);
36
37private:
38 void Init();
39
40private:
41 DECLARE_CLASS(wxMemoryDCImpl)
42};
43
44#endif
45// _WX_DCMEMORY_H_