Change wx.DC inheritance hierarchy to match reality

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41609 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2006-10-03 21:30:57 +00:00
parent ce60dd8efe
commit 205d49f79e

View File

@@ -1448,6 +1448,23 @@ to some applications.", "");
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
%newgroup %newgroup
MustHaveApp(wxWindowDC);
DocStr(wxWindowDC,
"A wx.WindowDC must be constructed if an application wishes to paint on
the whole area of a window (client and decorations). This should
normally be constructed as a temporary stack object; don't store a
wx.WindowDC object.","");
class wxWindowDC : public wxDC {
public:
DocCtorStr(
wxWindowDC(wxWindow* win),
"Constructor. Pass the window on which you wish to paint.","");
};
//---------------------------------------------------------------------------
%newgroup
MustHaveApp(wxClientDC); MustHaveApp(wxClientDC);
DocStr(wxClientDC, DocStr(wxClientDC,
@@ -1462,7 +1479,7 @@ To draw on a window from within an EVT_PAINT handler, construct a
To draw on the whole window including decorations, construct a To draw on the whole window including decorations, construct a
`wx.WindowDC` object (Windows only). `wx.WindowDC` object (Windows only).
", ""); ", "");
class wxClientDC : public wxDC { class wxClientDC : public wxWindowDC {
public: public:
DocCtorStr( DocCtorStr(
wxClientDC(wxWindow* win), wxClientDC(wxWindow* win),
@@ -1489,7 +1506,7 @@ window. Attempts to draw outside this area do not appear.
To draw on a window from outside EVT_PAINT handlers, construct a To draw on a window from outside EVT_PAINT handlers, construct a
`wx.ClientDC` object. `wx.ClientDC` object.
",""); ","");
class wxPaintDC : public wxDC { class wxPaintDC : public wxClientDC {
public: public:
DocCtorStr( DocCtorStr(
wxPaintDC(wxWindow* win), wxPaintDC(wxWindow* win),
@@ -1499,23 +1516,6 @@ public:
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------
%newgroup %newgroup
MustHaveApp(wxWindowDC);
DocStr(wxWindowDC,
"A wx.WindowDC must be constructed if an application wishes to paint on
the whole area of a window (client and decorations). This should
normally be constructed as a temporary stack object; don't store a
wx.WindowDC object.","");
class wxWindowDC : public wxDC {
public:
DocCtorStr(
wxWindowDC(wxWindow* win),
"Constructor. Pass the window on which you wish to paint.","");
};
//---------------------------------------------------------------------------
%newgroup
MustHaveApp(wxMirrorDC); MustHaveApp(wxMirrorDC);
DocStr(wxMirrorDC, DocStr(wxMirrorDC,