]> git.saurik.com Git - wxWidgets.git/blame - include/wx/dcmemory.h
Don't duplicate event sending code in wxGTK wxListBox.
[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
8// RCS-ID: $Id$
9// Licence: wxWindows Licence
10/////////////////////////////////////////////////////////////////////////////
11
34138703
JS
12#ifndef _WX_DCMEMORY_H_BASE_
13#define _WX_DCMEMORY_H_BASE_
c801d85f 14
ab171e95 15#include "wx/dc.h"
c319bc47 16#include "wx/bitmap.h"
e45689df 17
ab171e95
RR
18//-----------------------------------------------------------------------------
19// wxMemoryDC
20//-----------------------------------------------------------------------------
21
ab171e95
RR
22class WXDLLIMPEXP_CORE wxMemoryDC: public wxDC
23{
24public:
25 wxMemoryDC();
26 wxMemoryDC( wxBitmap& bitmap );
27 wxMemoryDC( wxDC *dc );
03647350 28
ab171e95
RR
29 // select the given bitmap to draw on it
30 void SelectObject(wxBitmap& bmp);
31
32 // select the given bitmap for read-only
33 void SelectObjectAsSource(const wxBitmap& bmp);
03647350 34
ab171e95
RR
35 // get selected bitmap
36 const wxBitmap& GetSelectedBitmap() const;
37 wxBitmap& GetSelectedBitmap();
38
39private:
40 DECLARE_DYNAMIC_CLASS(wxMemoryDC)
41};
03647350 42
ab171e95 43
c801d85f 44#endif
34138703 45 // _WX_DCMEMORY_H_BASE_