]> git.saurik.com Git - wxWidgets.git/blame_incremental - include/wx/dcmemory.h
declare file-related APIs missing under Palm (pflib-missing.diff part of patch 1894861)
[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// RCS-ID: $Id$
9// Licence: wxWindows Licence
10/////////////////////////////////////////////////////////////////////////////
11
12#ifndef _WX_DCMEMORY_H_BASE_
13#define _WX_DCMEMORY_H_BASE_
14
15#include "wx/dc.h"
16#include "wx/bitmap.h"
17
18//-----------------------------------------------------------------------------
19// wxMemoryDC
20//-----------------------------------------------------------------------------
21
22class WXDLLIMPEXP_CORE wxMemoryDC: public wxDC
23{
24public:
25 wxMemoryDC();
26 wxMemoryDC( wxBitmap& bitmap );
27 wxMemoryDC( wxDC *dc );
28
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);
34
35 // get selected bitmap
36 const wxBitmap& GetSelectedBitmap() const;
37 wxBitmap& GetSelectedBitmap();
38
39private:
40 DECLARE_DYNAMIC_CLASS(wxMemoryDC)
41};
42
43
44#endif
45 // _WX_DCMEMORY_H_BASE_