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
|
2004-05-23 16:53:33 -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:
|
|
|
|
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 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
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __WX_COCOA_DCMEMORY_H__
|