1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/dcmemory.h
3 // Purpose: wxMemoryDCImpl class
4 // Author: David Elliott
8 // Copyright: (c) 2003 David Elliott
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef __WX_COCOA_DCMEMORY_H__
13 #define __WX_COCOA_DCMEMORY_H__
15 #include "wx/cocoa/dc.h"
17 #include "wx/dcmemory.h"
19 class WXDLLIMPEXP_CORE wxMemoryDCImpl
: public wxCocoaDCImpl
21 DECLARE_DYNAMIC_CLASS(wxMemoryDCImpl
)
24 wxMemoryDCImpl(wxMemoryDC
*owner
)
25 : wxCocoaDCImpl(owner
)
27 wxMemoryDCImpl(wxMemoryDC
*owner
, wxBitmap
& bitmap
)
28 : wxCocoaDCImpl(owner
)
30 owner
->SelectObject(bitmap
);
32 wxMemoryDCImpl(wxMemoryDC
*owner
, wxDC
*dc
); // Create compatible DC
33 virtual ~wxMemoryDCImpl(void);
35 virtual void DoGetSize(int *width
, int *height
) const;
36 virtual void DoSelect(const wxBitmap
& bitmap
);
39 wxBitmap m_selectedBitmap
;
40 WX_NSImage m_cocoaNSImage
;
42 virtual bool CocoaLockFocus();
43 virtual bool CocoaUnlockFocus();
44 virtual bool CocoaGetBounds(void *rectData
);
46 virtual bool CocoaDoBlitOnFocusedDC(wxCoord xdest
, wxCoord ydest
,
47 wxCoord width
, wxCoord height
, wxCoord xsrc
, wxCoord ysrc
,
48 int logicalFunc
, bool useMask
, wxCoord xsrcMask
, wxCoord ysrcMask
);
55 // __WX_COCOA_DCMEMORY_H__