1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/cocoa/dcmemory.h
3 // Purpose: wxMemoryDC 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__
17 class WXDLLEXPORT wxMemoryDC
: public wxDC
19 DECLARE_DYNAMIC_CLASS(wxMemoryDC
)
22 wxMemoryDC( wxDC
*dc
); // Create compatible DC
24 virtual void SelectObject(const wxBitmap
& bitmap
);
25 virtual void DoGetSize(int *width
, int *height
) const;
29 wxBitmap m_selectedBitmap
;
30 WX_NSImage m_cocoaNSImage
;
32 virtual bool CocoaLockFocus();
33 virtual bool CocoaUnlockFocus();
35 virtual bool CocoaDoBlitOnFocusedDC(wxCoord xdest
, wxCoord ydest
,
36 wxCoord width
, wxCoord height
, wxCoord xsrc
, wxCoord ysrc
,
37 int logicalFunc
, bool useMask
, wxCoord xsrcMask
, wxCoord ysrcMask
);
40 #endif // __WX_COCOA_DCMEMORY_H__