]>
Commit | Line | Data |
---|---|---|
c801d85f | 1 | ///////////////////////////////////////////////////////////////////////////// |
80fdcdb9 | 2 | // Name: wx/gtk/dcmemory.h |
c801d85f KB |
3 | // Purpose: |
4 | // Author: Robert Roebling | |
6f65e337 | 5 | // RCS-ID: $Id$ |
dbf858b5 | 6 | // Copyright: (c) 1998 Robert Roebling |
65571936 | 7 | // Licence: wxWindows licence |
c801d85f KB |
8 | ///////////////////////////////////////////////////////////////////////////// |
9 | ||
3498362e PC |
10 | #ifndef _WX_GTK_DCMEMORY_H_ |
11 | #define _WX_GTK_DCMEMORY_H_ | |
c801d85f | 12 | |
888dde65 RR |
13 | #include "wx/dcmemory.h" |
14 | #include "wx/gtk/dcclient.h" | |
c801d85f | 15 | |
c801d85f | 16 | //----------------------------------------------------------------------------- |
888dde65 | 17 | // wxMemoryDCImpl |
c801d85f KB |
18 | //----------------------------------------------------------------------------- |
19 | ||
888dde65 | 20 | class WXDLLIMPEXP_CORE wxMemoryDCImpl : public wxWindowDCImpl |
c801d85f | 21 | { |
ec758a20 | 22 | public: |
888dde65 RR |
23 | wxMemoryDCImpl( wxMemoryDC *owner ); |
24 | wxMemoryDCImpl( wxMemoryDC *owner, wxBitmap& bitmap ); | |
25 | wxMemoryDCImpl( wxMemoryDC *owner, wxDC *dc ); | |
03647350 | 26 | |
888dde65 | 27 | virtual ~wxMemoryDCImpl(); |
c801d85f | 28 | |
41fbc841 RR |
29 | // these get reimplemented for mono-bitmaps to behave |
30 | // more like their Win32 couterparts. They now interpret | |
31 | // wxWHITE, wxWHITE_BRUSH and wxWHITE_PEN as drawing 0 | |
32 | // and everything else as drawing 1. | |
33 | virtual void SetPen( const wxPen &pen ); | |
34 | virtual void SetBrush( const wxBrush &brush ); | |
8ab40c52 | 35 | virtual void SetBackground( const wxBrush &brush ); |
41fbc841 RR |
36 | virtual void SetTextForeground( const wxColour &col ); |
37 | virtual void SetTextBackground( const wxColour &col ); | |
38 | ||
888dde65 | 39 | // overridden from wxDCImpl |
ab171e95 RR |
40 | virtual void DoGetSize( int *width, int *height ) const; |
41 | virtual wxBitmap DoGetAsBitmap(const wxRect *subrect) const; | |
8e72f2cd RD |
42 | virtual void* GetHandle() const; |
43 | ||
4f37154e | 44 | // overridden for wxMemoryDC Impl |
fea35690 VZ |
45 | virtual void DoSelect(const wxBitmap& bitmap); |
46 | ||
4f37154e RR |
47 | virtual const wxBitmap& GetSelectedBitmap() const; |
48 | virtual wxBitmap& GetSelectedBitmap(); | |
49 | ||
50 | private: | |
ab171e95 | 51 | wxBitmap m_selected; |
03647350 | 52 | |
fea35690 | 53 | void Init(); |
6f02a879 | 54 | |
888dde65 | 55 | DECLARE_ABSTRACT_CLASS(wxMemoryDCImpl) |
c801d85f KB |
56 | }; |
57 | ||
03647350 | 58 | #endif |
888dde65 RR |
59 | // _WX_GTK_DCMEMORY_H_ |
60 |