1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/dcmemory.h
3 // Purpose: wxMemoryDCImpl class
4 // Author: David Elliott
7 // Copyright: (c) 2003 David Elliott
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef __WX_COCOA_DCMEMORY_H__
12 #define __WX_COCOA_DCMEMORY_H__
14 #include "wx/cocoa/dc.h"
16 #include "wx/dcmemory.h"
18 class WXDLLIMPEXP_CORE wxMemoryDCImpl
: public wxCocoaDCImpl
20 DECLARE_DYNAMIC_CLASS(wxMemoryDCImpl
)
23 wxMemoryDCImpl(wxMemoryDC
*owner
)
24 : wxCocoaDCImpl(owner
)
26 wxMemoryDCImpl(wxMemoryDC
*owner
, wxBitmap
& bitmap
)
27 : wxCocoaDCImpl(owner
)
29 owner
->SelectObject(bitmap
);
31 wxMemoryDCImpl(wxMemoryDC
*owner
, wxDC
*dc
); // Create compatible DC
32 virtual ~wxMemoryDCImpl(void);
34 virtual void DoGetSize(int *width
, int *height
) const;
35 virtual void DoSelect(const wxBitmap
& bitmap
);
38 wxBitmap m_selectedBitmap
;
39 WX_NSImage m_cocoaNSImage
;
41 virtual bool CocoaLockFocus();
42 virtual bool CocoaUnlockFocus();
43 virtual bool CocoaGetBounds(void *rectData
);
45 virtual bool CocoaDoBlitOnFocusedDC(wxCoord xdest
, wxCoord ydest
,
46 wxCoord width
, wxCoord height
, wxCoord xsrc
, wxCoord ysrc
,
47 wxRasterOperationMode logicalFunc
, bool useMask
, wxCoord xsrcMask
, wxCoord ysrcMask
);
54 // __WX_COCOA_DCMEMORY_H__