projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
accessor functions for wxAuiMDIParentFrame
[wxWidgets.git]
/
include
/
wx
/
x11
/
dcmemory.h
diff --git
a/include/wx/x11/dcmemory.h
b/include/wx/x11/dcmemory.h
index a9d5ebd7f7d2f479b6078a6877ee5b36187b44f3..0a86134f666633ffadf4c858984e6e11e71b4fc2 100644
(file)
--- a/
include/wx/x11/dcmemory.h
+++ b/
include/wx/x11/dcmemory.h
@@
-14,19
+14,23
@@
#include "wx/dcclient.h"
#include "wx/dcclient.h"
-class WXDLLIMPEXP_CORE wxMemoryDC : public wxWindowDC
+class WXDLLIMPEXP_CORE wxMemoryDC : public wxWindowDC
, public wxMemoryDCBase
{
public:
{
public:
- wxMemoryDC();
+ wxMemoryDC() { Init(); }
+ wxMemoryDC(wxBitmap& bitmap) { Init(); SelectObject(bitmap); }
wxMemoryDC( wxDC *dc ); // Create compatible DC
virtual ~wxMemoryDC();
wxMemoryDC( wxDC *dc ); // Create compatible DC
virtual ~wxMemoryDC();
- virtual void SelectObject( const wxBitmap& bitmap );
// implementation
wxBitmap m_selected;
protected:
// implementation
wxBitmap m_selected;
protected:
- void DoGetSize( int *width, int *height ) const;
+ virtual void DoGetSize( int *width, int *height ) const;
+ virtual void DoSelect(const wxBitmap& bitmap);
+
+private:
+ void Init();
DECLARE_DYNAMIC_CLASS(wxMemoryDC)
};
DECLARE_DYNAMIC_CLASS(wxMemoryDC)
};