2002-02-05 11:34:33 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: dcmemory.h
|
|
|
|
// Purpose: wxMemoryDC class
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 17/09/98
|
|
|
|
// RCS-ID: $Id$
|
|
|
|
// Copyright: (c) Julian Smart
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
2002-02-05 11:34:33 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_DCMEMORY_H_
|
|
|
|
#define _WX_DCMEMORY_H_
|
|
|
|
|
2007-11-30 10:26:05 -05:00
|
|
|
#include "wx/dc.h"
|
|
|
|
#include "wx/dcmemory.h"
|
|
|
|
#include "wx/x11/dcclient.h"
|
2002-02-05 11:34:33 -05:00
|
|
|
|
2007-11-30 10:26:05 -05:00
|
|
|
class WXDLLIMPEXP_CORE wxMemoryDCImpl : public wxWindowDCImpl
|
2002-02-05 11:34:33 -05:00
|
|
|
{
|
|
|
|
public:
|
2007-11-30 10:26:05 -05:00
|
|
|
wxMemoryDCImpl( wxDC* owner );
|
|
|
|
wxMemoryDCImpl( wxDC* owner, wxBitmap& bitmap);
|
|
|
|
wxMemoryDCImpl( wxDC* owner, wxDC *dc );
|
|
|
|
virtual ~wxMemoryDCImpl();
|
|
|
|
|
|
|
|
virtual const wxBitmap& GetSelectedBitmap() const;
|
|
|
|
virtual wxBitmap& GetSelectedBitmap();
|
|
|
|
|
2002-02-11 15:41:24 -05:00
|
|
|
// implementation
|
|
|
|
wxBitmap m_selected;
|
|
|
|
|
2006-02-08 16:47:09 -05:00
|
|
|
protected:
|
2006-10-30 14:41:46 -05:00
|
|
|
virtual void DoGetSize( int *width, int *height ) const;
|
|
|
|
virtual void DoSelect(const wxBitmap& bitmap);
|
|
|
|
|
|
|
|
private:
|
|
|
|
void Init();
|
2006-02-08 16:47:09 -05:00
|
|
|
|
2007-11-30 10:26:05 -05:00
|
|
|
private:
|
|
|
|
DECLARE_CLASS(wxMemoryDCImpl)
|
2002-02-05 11:34:33 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_DCMEMORY_H_
|