]> git.saurik.com Git - wxWidgets.git/blame - include/wx/dcmemory.h
wxMessageBox off the main thread lost result code.
[wxWidgets.git] / include / wx / dcmemory.h
CommitLineData
99d80019
JS
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
99d80019
JS
8// Licence: wxWindows Licence
9/////////////////////////////////////////////////////////////////////////////
10
34138703
JS
11#ifndef _WX_DCMEMORY_H_BASE_
12#define _WX_DCMEMORY_H_BASE_
c801d85f 13
ab171e95 14#include "wx/dc.h"
c319bc47 15#include "wx/bitmap.h"
e45689df 16
ab171e95
RR
17//-----------------------------------------------------------------------------
18// wxMemoryDC
19//-----------------------------------------------------------------------------
20
ab171e95
RR
21class WXDLLIMPEXP_CORE wxMemoryDC: public wxDC
22{
23public:
24 wxMemoryDC();
25 wxMemoryDC( wxBitmap& bitmap );
26 wxMemoryDC( wxDC *dc );
03647350 27
ab171e95
RR
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);
03647350 33
ab171e95
RR
34 // get selected bitmap
35 const wxBitmap& GetSelectedBitmap() const;
36 wxBitmap& GetSelectedBitmap();
37
38private:
39 DECLARE_DYNAMIC_CLASS(wxMemoryDC)
40};
03647350 41
ab171e95 42
c801d85f 43#endif
34138703 44 // _WX_DCMEMORY_H_BASE_