]>
Commit | Line | Data |
---|---|---|
fb896a32 DE |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/cocoa/dcmemory.h | |
3 | // Purpose: wxMemoryDC class | |
4 | // Author: David Elliott | |
5 | // Modified by: | |
6 | // Created: 2003/03/16 | |
28f3fe51 | 7 | // RCS-ID: $Id$ |
fb896a32 | 8 | // Copyright: (c) 2003 David Elliott |
65571936 | 9 | // Licence: wxWindows licence |
fb896a32 DE |
10 | ///////////////////////////////////////////////////////////////////////////// |
11 | ||
12 | #ifndef __WX_COCOA_DCMEMORY_H__ | |
13 | #define __WX_COCOA_DCMEMORY_H__ | |
14 | ||
28f3fe51 | 15 | #include "wx/dc.h" |
fb896a32 DE |
16 | |
17 | class WXDLLEXPORT wxMemoryDC: public wxDC | |
18 | { | |
19 | DECLARE_DYNAMIC_CLASS(wxMemoryDC) | |
20 | public: | |
21 | wxMemoryDC(void); | |
22 | wxMemoryDC( wxDC *dc ); // Create compatible DC | |
23 | ~wxMemoryDC(void); | |
24 | virtual void SelectObject(const wxBitmap& bitmap); | |
25 | virtual void DoGetSize(int *width, int *height) const; | |
bf428459 DE |
26 | |
27 | virtual void Clear(); | |
28f3fe51 DE |
28 | protected: |
29 | wxBitmap m_selectedBitmap; | |
30 | WX_NSImage m_cocoaNSImage; | |
fe8f7943 DE |
31 | // DC stack |
32 | virtual bool CocoaLockFocus(); | |
33 | virtual bool CocoaUnlockFocus(); | |
2c23fe91 DE |
34 | // Blitting |
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); | |
fb896a32 DE |
38 | }; |
39 | ||
40 | #endif // __WX_COCOA_DCMEMORY_H__ |