]> git.saurik.com Git - wxWidgets.git/blame - include/wx/cocoa/dcmemory.h
Remove wxRTTI macro for wxComboBox from Motif port.
[wxWidgets.git] / include / wx / cocoa / dcmemory.h
CommitLineData
fb896a32
DE
1/////////////////////////////////////////////////////////////////////////////
2// Name: wx/cocoa/dcmemory.h
938156b2 3// Purpose: wxMemoryDCImpl class
fb896a32
DE
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
938156b2 15#include "wx/cocoa/dc.h"
fb896a32 16
938156b2
DE
17#include "wx/dcmemory.h"
18
53a2db12 19class WXDLLIMPEXP_CORE wxMemoryDCImpl: public wxCocoaDCImpl
fb896a32 20{
938156b2 21 DECLARE_DYNAMIC_CLASS(wxMemoryDCImpl)
fea35690 22
fb896a32 23public:
938156b2
DE
24 wxMemoryDCImpl(wxMemoryDC *owner)
25 : wxCocoaDCImpl(owner)
26 { Init(); }
27 wxMemoryDCImpl(wxMemoryDC *owner, wxBitmap& bitmap)
28 : wxCocoaDCImpl(owner)
29 { Init();
30 owner->SelectObject(bitmap);
31 }
32 wxMemoryDCImpl(wxMemoryDC *owner, wxDC *dc ); // Create compatible DC
33 virtual ~wxMemoryDCImpl(void);
fea35690 34
fb896a32 35 virtual void DoGetSize(int *width, int *height) const;
fea35690
VZ
36 virtual void DoSelect(const wxBitmap& bitmap);
37
28f3fe51
DE
38protected:
39 wxBitmap m_selectedBitmap;
40 WX_NSImage m_cocoaNSImage;
fe8f7943
DE
41// DC stack
42 virtual bool CocoaLockFocus();
43 virtual bool CocoaUnlockFocus();
3e21fc05 44 virtual bool CocoaGetBounds(void *rectData);
2c23fe91
DE
45// Blitting
46 virtual bool CocoaDoBlitOnFocusedDC(wxCoord xdest, wxCoord ydest,
47 wxCoord width, wxCoord height, wxCoord xsrc, wxCoord ysrc,
89efaf2b 48 wxRasterOperationMode logicalFunc, bool useMask, wxCoord xsrcMask, wxCoord ysrcMask);
fea35690
VZ
49
50private:
51 void Init();
fb896a32
DE
52};
53
1b88201f
WS
54#endif
55 // __WX_COCOA_DCMEMORY_H__