1998-05-20 10:12:05 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2001-04-08 21:22:48 -04:00
|
|
|
// Name: wx/msw/dcmemory.h
|
1998-05-20 10:12:05 -04:00
|
|
|
// Purpose: wxMemoryDC class
|
|
|
|
// Author: Julian Smart
|
|
|
|
// Modified by:
|
|
|
|
// Created: 01/02/97
|
|
|
|
// RCS-ID: $Id$
|
1998-08-07 19:52:45 -04:00
|
|
|
// Copyright: (c) Julian Smart
|
2004-05-23 16:53:33 -04:00
|
|
|
// Licence: wxWindows licence
|
1998-05-20 10:12:05 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
1998-08-07 19:52:45 -04:00
|
|
|
#ifndef _WX_DCMEMORY_H_
|
|
|
|
#define _WX_DCMEMORY_H_
|
1998-05-20 10:12:05 -04:00
|
|
|
|
2003-08-09 08:38:21 -04:00
|
|
|
#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
|
1998-05-20 10:12:05 -04:00
|
|
|
#pragma interface "dcmemory.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "wx/dcclient.h"
|
|
|
|
|
1999-10-18 11:14:52 -04:00
|
|
|
class WXDLLEXPORT wxMemoryDC : public wxDC
|
1998-05-20 10:12:05 -04:00
|
|
|
{
|
1999-10-18 11:14:52 -04:00
|
|
|
public:
|
|
|
|
wxMemoryDC();
|
|
|
|
wxMemoryDC(wxDC *dc); // Create compatible DC
|
1998-05-20 10:12:05 -04:00
|
|
|
|
1999-10-18 11:14:52 -04:00
|
|
|
virtual void SelectObject(const wxBitmap& bitmap);
|
|
|
|
|
2001-04-08 21:22:48 -04:00
|
|
|
protected:
|
|
|
|
// override some base class virtuals
|
|
|
|
virtual void DoDrawRectangle(wxCoord x, wxCoord y, wxCoord width, wxCoord height);
|
1999-10-18 11:14:52 -04:00
|
|
|
virtual void DoGetSize(int* width, int* height) const;
|
|
|
|
|
2001-04-08 21:22:48 -04:00
|
|
|
// create DC compatible with the given one or screen if dc == NULL
|
|
|
|
bool CreateCompatible(wxDC *dc);
|
|
|
|
|
|
|
|
// initialize the newly created DC
|
|
|
|
void Init();
|
|
|
|
|
1999-10-18 11:14:52 -04:00
|
|
|
private:
|
2003-07-21 20:24:07 -04:00
|
|
|
DECLARE_DYNAMIC_CLASS_NO_COPY(wxMemoryDC)
|
1998-05-20 10:12:05 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
1998-08-07 19:52:45 -04:00
|
|
|
// _WX_DCMEMORY_H_
|