2005-05-04 14:57:50 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/dcmemory.h
|
|
|
|
// Purpose: wxMemoryDC base header
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created:
|
|
|
|
// Copyright: (c) Julian Smart
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Licence: wxWindows Licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-08-14 20:23:28 -04:00
|
|
|
#ifndef _WX_DCMEMORY_H_BASE_
|
|
|
|
#define _WX_DCMEMORY_H_BASE_
|
1998-05-20 10:01:55 -04:00
|
|
|
|
2007-09-23 07:27:41 -04:00
|
|
|
#include "wx/dc.h"
|
2006-10-30 15:51:19 -05:00
|
|
|
#include "wx/bitmap.h"
|
2006-01-24 19:18:12 -05:00
|
|
|
|
2007-09-23 07:27:41 -04:00
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
// wxMemoryDC
|
|
|
|
//-----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
class WXDLLIMPEXP_CORE wxMemoryDC: public wxDC
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
wxMemoryDC();
|
|
|
|
wxMemoryDC( wxBitmap& bitmap );
|
|
|
|
wxMemoryDC( wxDC *dc );
|
|
|
|
|
|
|
|
// select the given bitmap to draw on it
|
|
|
|
void SelectObject(wxBitmap& bmp);
|
|
|
|
|
|
|
|
// select the given bitmap for read-only
|
|
|
|
void SelectObjectAsSource(const wxBitmap& bmp);
|
|
|
|
|
|
|
|
// get selected bitmap
|
|
|
|
const wxBitmap& GetSelectedBitmap() const;
|
|
|
|
wxBitmap& GetSelectedBitmap();
|
|
|
|
|
|
|
|
private:
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxMemoryDC)
|
|
|
|
};
|
|
|
|
|
|
|
|
|
1998-05-20 10:01:55 -04:00
|
|
|
#endif
|
1998-08-14 20:23:28 -04:00
|
|
|
// _WX_DCMEMORY_H_BASE_
|