]>
Commit | Line | Data |
---|---|---|
1 | ///////////////////////////////////////////////////////////////////////////// | |
2 | // Name: wx/cocoa/dcmemory.h | |
3 | // Purpose: wxMemoryDC class | |
4 | // Author: David Elliott | |
5 | // Modified by: | |
6 | // Created: 2003/03/16 | |
7 | // RCS-ID: $Id$ | |
8 | // Copyright: (c) 2003 David Elliott | |
9 | // Licence: wxWindows licence | |
10 | ///////////////////////////////////////////////////////////////////////////// | |
11 | ||
12 | #ifndef __WX_COCOA_DCMEMORY_H__ | |
13 | #define __WX_COCOA_DCMEMORY_H__ | |
14 | ||
15 | #include "wx/dc.h" | |
16 | ||
17 | class WXDLLEXPORT wxMemoryDC: public wxDC | |
18 | { | |
19 | DECLARE_DYNAMIC_CLASS(wxMemoryDC) | |
20 | public: | |
21 | wxMemoryDC( const wxBitmap& bitmap = wxNullBitmap ); | |
22 | wxMemoryDC( wxDC *dc ); // Create compatible DC | |
23 | virtual ~wxMemoryDC(void); | |
24 | virtual void SelectObject(const wxBitmap& bitmap); | |
25 | virtual void DoGetSize(int *width, int *height) const; | |
26 | protected: | |
27 | wxBitmap m_selectedBitmap; | |
28 | WX_NSImage m_cocoaNSImage; | |
29 | // DC stack | |
30 | virtual bool CocoaLockFocus(); | |
31 | virtual bool CocoaUnlockFocus(); | |
32 | virtual bool CocoaGetBounds(void *rectData); | |
33 | // Blitting | |
34 | virtual bool CocoaDoBlitOnFocusedDC(wxCoord xdest, wxCoord ydest, | |
35 | wxCoord width, wxCoord height, wxCoord xsrc, wxCoord ysrc, | |
36 | int logicalFunc, bool useMask, wxCoord xsrcMask, wxCoord ysrcMask); | |
37 | }; | |
38 | ||
39 | #endif | |
40 | // __WX_COCOA_DCMEMORY_H__ |