projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add a special macro for comparing time_t values to fix unit test compilation on platf...
[wxWidgets.git]
/
include
/
wx
/
gtk
/
dcmemory.h
diff --git
a/include/wx/gtk/dcmemory.h
b/include/wx/gtk/dcmemory.h
index e950326b954e34f11b5e0b5cb95d59c45e290afd..ff470015c82cedf04f4023ad7fd2d06901131946 100644
(file)
--- a/
include/wx/gtk/dcmemory.h
+++ b/
include/wx/gtk/dcmemory.h
@@
-7,29
+7,24
@@
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifndef _
_GTKDCMEMORYH_
_
-#define _
_GTKDCMEMORYH_
_
+#ifndef _
WX_GTK_DCMEMORY_H
_
+#define _
WX_GTK_DCMEMORY_H
_
-#include "wx/d
efs
.h"
-#include "wx/dcclient.h"
+#include "wx/d
cmemory
.h"
+#include "wx/
gtk/
dcclient.h"
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
-//
classes
+//
wxMemoryDCImpl
//-----------------------------------------------------------------------------
//-----------------------------------------------------------------------------
-class WXDLLIMPEXP_CORE wxMemoryDC;
-
-//-----------------------------------------------------------------------------
-// wxMemoryDC
-//-----------------------------------------------------------------------------
-
-class WXDLLIMPEXP_CORE wxMemoryDC : public wxWindowDC
+class WXDLLIMPEXP_CORE wxMemoryDCImpl : public wxWindowDCImpl
{
public:
{
public:
- wxMemoryDC();
- wxMemoryDC( wxDC *dc ); // Create compatible DC
- ~wxMemoryDC();
- virtual void SelectObject( const wxBitmap& bitmap );
+ wxMemoryDCImpl( wxMemoryDC *owner );
+ wxMemoryDCImpl( wxMemoryDC *owner, wxBitmap& bitmap );
+ wxMemoryDCImpl( wxMemoryDC *owner, wxDC *dc );
+
+ virtual ~wxMemoryDCImpl();
// these get reimplemented for mono-bitmaps to behave
// more like their Win32 couterparts. They now interpret
// these get reimplemented for mono-bitmaps to behave
// more like their Win32 couterparts. They now interpret
@@
-41,15
+36,24
@@
public:
virtual void SetTextForeground( const wxColour &col );
virtual void SetTextBackground( const wxColour &col );
virtual void SetTextForeground( const wxColour &col );
virtual void SetTextBackground( const wxColour &col );
- // implementation
- wxBitmap m_selected;
+ // overridden from wxDCImpl
+ virtual void DoGetSize( int *width, int *height ) const;
+ virtual wxBitmap DoGetAsBitmap(const wxRect *subrect) const;
+
+ // overridden for wxMemoryDC Impl
+ virtual void DoSelect(const wxBitmap& bitmap);
-protected:
- void DoGetSize( int *width, int *height ) const;
+ virtual const wxBitmap& GetSelectedBitmap() const;
+ virtual wxBitmap& GetSelectedBitmap();
+
+private:
+ wxBitmap m_selected;
+
+ void Init();
- DECLARE_
DYNAMIC_CLASS(wxMemoryDC
)
+ DECLARE_
ABSTRACT_CLASS(wxMemoryDCImpl
)
};
};
-#endif
- // _
_GTKDCMEMORYH_
_
+#endif
+ // _
WX_GTK_DCMEMORY_H
_