]> git.saurik.com Git - wxWidgets.git/blame - include/wx/cocoa/dcmemory.h
PCH-less compilation fix
[wxWidgets.git] / include / wx / cocoa / dcmemory.h
CommitLineData
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
1b88201f 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 16
fea35690 17class WXDLLEXPORT wxMemoryDC: public wxDC, public wxMemoryDCBase
fb896a32
DE
18{
19 DECLARE_DYNAMIC_CLASS(wxMemoryDC)
fea35690 20
fb896a32 21public:
fea35690
VZ
22 wxMemoryDC() { Init(); }
23 wxMemoryDC(wxBitmap& bitmap) { Init(); SelectObject(bitmap); }
fb896a32 24 wxMemoryDC( wxDC *dc ); // Create compatible DC
d3c7fc99 25 virtual ~wxMemoryDC(void);
fea35690 26
fb896a32 27 virtual void DoGetSize(int *width, int *height) const;
fea35690
VZ
28 virtual void DoSelect(const wxBitmap& bitmap);
29
28f3fe51
DE
30protected:
31 wxBitmap m_selectedBitmap;
32 WX_NSImage m_cocoaNSImage;
fe8f7943
DE
33// DC stack
34 virtual bool CocoaLockFocus();
35 virtual bool CocoaUnlockFocus();
3e21fc05 36 virtual bool CocoaGetBounds(void *rectData);
2c23fe91
DE
37// Blitting
38 virtual bool CocoaDoBlitOnFocusedDC(wxCoord xdest, wxCoord ydest,
39 wxCoord width, wxCoord height, wxCoord xsrc, wxCoord ysrc,
40 int logicalFunc, bool useMask, wxCoord xsrcMask, wxCoord ysrcMask);
fea35690
VZ
41
42private:
43 void Init();
fb896a32
DE
44};
45
1b88201f
WS
46#endif
47 // __WX_COCOA_DCMEMORY_H__