]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/dcmemory.h
Don't define __STRICT_ANSI__, we should build both with and without it.
[wxWidgets.git] / include / wx / dcmemory.h
... / ...
CommitLineData
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
21class WXDLLIMPEXP_CORE wxMemoryDC: public wxDC
22{
23public:
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
38private:
39 DECLARE_DYNAMIC_CLASS(wxMemoryDC)
40};
41
42
43#endif
44 // _WX_DCMEMORY_H_BASE_