2003-03-21 19:51:47 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
// Name: wx/cocoa/dcmemory.h
|
|
|
|
// Purpose: wxMemoryDC class
|
|
|
|
// Author: David Elliott
|
|
|
|
// Modified by:
|
|
|
|
// Created: 2003/03/16
|
2003-07-21 20:55:50 +00:00
|
|
|
// RCS-ID: $Id$
|
2003-03-21 19:51:47 +00:00
|
|
|
// Copyright: (c) 2003 David Elliott
|
2004-05-23 20:53:33 +00:00
|
|
|
// Licence: wxWindows licence
|
2003-03-21 19:51:47 +00:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifndef __WX_COCOA_DCMEMORY_H__
|
|
|
|
#define __WX_COCOA_DCMEMORY_H__
|
|
|
|
|
2003-07-21 20:55:50 +00:00
|
|
|
#include "wx/dc.h"
|
2003-03-21 19:51:47 +00:00
|
|
|
|
|
|
|
class WXDLLEXPORT wxMemoryDC: public wxDC
|
|
|
|
{
|
|
|
|
DECLARE_DYNAMIC_CLASS(wxMemoryDC)
|
|
|
|
public:
|
|
|
|
wxMemoryDC(void);
|
|
|
|
wxMemoryDC( wxDC *dc ); // Create compatible DC
|
|
|
|
~wxMemoryDC(void);
|
|
|
|
virtual void SelectObject(const wxBitmap& bitmap);
|
|
|
|
virtual void DoGetSize(int *width, int *height) const;
|
2003-07-21 20:55:50 +00:00
|
|
|
protected:
|
|
|
|
wxBitmap m_selectedBitmap;
|
|
|
|
WX_NSImage m_cocoaNSImage;
|
2003-07-21 17:06:02 +00:00
|
|
|
// DC stack
|
|
|
|
virtual bool CocoaLockFocus();
|
|
|
|
virtual bool CocoaUnlockFocus();
|
2005-01-17 21:30:53 +00:00
|
|
|
virtual bool CocoaGetBounds(void *rectData);
|
2003-07-22 17:40:52 +00: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 19:51:47 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __WX_COCOA_DCMEMORY_H__
|