2003-03-21 14:51:47 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/cocoa/dcmemory.h
|
|
|
|
// Purpose: wxMemoryDC class
|
|
|
|
// Author: David Elliott
|
|
|
|
// Modified by:
|
|
|
|
// Created: 2003/03/16
|
2003-07-21 16:55:50 -04:00
|
|
|
// RCS-ID: $Id$
|
2003-03-21 14:51:47 -05:00
|
|
|
// Copyright: (c) 2003 David Elliott
|
2006-10-17 10:44:52 -04:00
|
|
|
// Licence: wxWindows licence
|
2003-03-21 14:51:47 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef __WX_COCOA_DCMEMORY_H__
|
|
|
|
#define __WX_COCOA_DCMEMORY_H__
|
|
|
|
|
2003-07-21 16:55:50 -04:00
|
|
|
#include "wx/dc.h"
|
2003-03-21 14:51:47 -05:00
|
|
|
|
|
|
|
class WXDLLEXPORT wxMemoryDC: public wxDC
|
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxMemoryDC)
|
|
|
|
public:
|
2006-10-13 14:48:36 -04:00
|
|
|
wxMemoryDC( const wxBitmap& bitmap = wxNullBitmap );
|
2003-03-21 14:51:47 -05:00
|
|
|
wxMemoryDC( wxDC *dc ); // Create compatible DC
|
2006-09-05 16:47:48 -04:00
|
|
|
virtual ~wxMemoryDC(void);
|
2003-03-21 14:51:47 -05:00
|
|
|
virtual void SelectObject(const wxBitmap& bitmap);
|
|
|
|
virtual void DoGetSize(int *width, int *height) const;
|
2003-07-21 16:55:50 -04:00
|
|
|
protected:
|
|
|
|
wxBitmap m_selectedBitmap;
|
|
|
|
WX_NSImage m_cocoaNSImage;
|
2003-07-21 13:06:02 -04:00
|
|
|
// DC stack
|
|
|
|
virtual bool CocoaLockFocus();
|
|
|
|
virtual bool CocoaUnlockFocus();
|
2005-01-17 16:30:53 -05:00
|
|
|
virtual bool CocoaGetBounds(void *rectData);
|
2003-07-22 13:40:52 -04:00
|
|
|
// Blitting
|
|
|
|
virtual bool CocoaDoBlitOnFocusedDC(wxCoord xdest, wxCoord ydest,
|
|
|
|
wxCoord width, wxCoord height, wxCoord xsrc, wxCoord ysrc,
|
|
|
|
int logicalFunc, bool useMask, wxCoord xsrcMask, wxCoord ysrcMask);
|
2003-03-21 14:51:47 -05:00
|
|
|
};
|
|
|
|
|
2006-10-17 10:44:52 -04:00
|
|
|
#endif
|
|
|
|
// __WX_COCOA_DCMEMORY_H__
|