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