]> git.saurik.com Git - wxWidgets.git/blob - include/wx/dcmemory.h
Fix wxOSX warnings about int-to-void* casts.
[wxWidgets.git] / include / wx / dcmemory.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/dcmemory.h
3 // Purpose: wxMemoryDC base header
4 // Author: Julian Smart
5 // Modified by:
6 // Created:
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows Licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_DCMEMORY_H_BASE_
12 #define _WX_DCMEMORY_H_BASE_
13
14 #include "wx/dc.h"
15 #include "wx/bitmap.h"
16
17 //-----------------------------------------------------------------------------
18 // wxMemoryDC
19 //-----------------------------------------------------------------------------
20
21 class WXDLLIMPEXP_CORE wxMemoryDC: public wxDC
22 {
23 public:
24 wxMemoryDC();
25 wxMemoryDC( wxBitmap& bitmap );
26 wxMemoryDC( wxDC *dc );
27
28 // select the given bitmap to draw on it
29 void SelectObject(wxBitmap& bmp);
30
31 // select the given bitmap for read-only
32 void SelectObjectAsSource(const wxBitmap& bmp);
33
34 // get selected bitmap
35 const wxBitmap& GetSelectedBitmap() const;
36 wxBitmap& GetSelectedBitmap();
37
38 private:
39 DECLARE_DYNAMIC_CLASS(wxMemoryDC)
40 };
41
42
43 #endif
44 // _WX_DCMEMORY_H_BASE_