2004-10-19 09:40:30 -04:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/palmos/dcmemory.h
|
|
|
|
// Purpose: wxMemoryDC class
|
2005-01-18 16:14:27 -05:00
|
|
|
// Author: William Osborne - minimal working wxPalmOS port
|
2004-10-19 09:40:30 -04:00
|
|
|
// Modified by:
|
|
|
|
// Created: 10/13/04
|
2005-01-18 16:14:27 -05:00
|
|
|
// RCS-ID: $Id$
|
2004-10-19 09:40:30 -04:00
|
|
|
// Copyright: (c) William Osborne
|
|
|
|
// Licence: wxWindows licence
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef _WX_DCMEMORY_H_
|
|
|
|
#define _WX_DCMEMORY_H_
|
|
|
|
|
2007-12-14 20:25:56 -05:00
|
|
|
#include "wx/dcmemory.h"
|
|
|
|
#include "wx/palmos/dc.h"
|
2004-10-19 09:40:30 -04:00
|
|
|
|
2008-03-26 11:06:00 -04:00
|
|
|
class WXDLLIMPEXP_CORE wxMemoryDCImpl: public wxPalmDCImpl
|
2004-10-19 09:40:30 -04:00
|
|
|
{
|
|
|
|
public:
|
2007-12-14 20:25:56 -05:00
|
|
|
wxMemoryDCImpl( wxMemoryDC *owner );
|
|
|
|
wxMemoryDCImpl( wxMemoryDC *owner, wxBitmap& bitmap );
|
|
|
|
wxMemoryDCImpl( wxMemoryDC *owner, wxDC *dc ); // Create compatible DC
|
2004-10-19 09:40:30 -04:00
|
|
|
|
|
|
|
// override some base class virtuals
|
|
|
|
virtual void DoGetSize(int* width, int* height) const;
|
2006-10-30 14:41:46 -05:00
|
|
|
virtual void DoSelect(const wxBitmap& bitmap);
|
2004-10-19 09:40:30 -04:00
|
|
|
|
2007-12-14 20:25:56 -05:00
|
|
|
virtual wxBitmap DoGetAsBitmap(const wxRect* subrect) const;
|
|
|
|
|
|
|
|
protected:
|
2004-10-19 09:40:30 -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();
|
|
|
|
|
2007-12-14 20:25:56 -05:00
|
|
|
DECLARE_CLASS(wxMemoryDCImpl)
|
2009-02-08 06:45:59 -05:00
|
|
|
wxDECLARE_NO_COPY_CLASS(wxMemoryDCImpl);
|
2004-10-19 09:40:30 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
// _WX_DCMEMORY_H_
|