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