]> git.saurik.com Git - wxWidgets.git/blame - include/wx/gtk/dcmemory.h
add wxScrollHelper::ShowScrollbars() (implemented for GTK only right now, generic...
[wxWidgets.git] / include / wx / gtk / dcmemory.h
CommitLineData
c801d85f
KB
1/////////////////////////////////////////////////////////////////////////////
2// Name: dcmemory.h
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 20class WXDLLIMPEXP_CORE wxMemoryDCImpl : public wxWindowDCImpl
c801d85f 21{
ec758a20 22public:
888dde65
RR
23 wxMemoryDCImpl( wxMemoryDC *owner );
24 wxMemoryDCImpl( wxMemoryDC *owner, wxBitmap& bitmap );
25 wxMemoryDCImpl( wxMemoryDC *owner, wxDC *dc );
ab171e95 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;
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
RR
50 wxBitmap m_selected;
51
fea35690 52 void Init();
6f02a879 53
888dde65 54 DECLARE_ABSTRACT_CLASS(wxMemoryDCImpl)
c801d85f
KB
55};
56
888dde65
RR
57#endif
58 // _WX_GTK_DCMEMORY_H_
59