Added DoEraseBackground
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34086 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -36,6 +36,16 @@ public:
|
||||
|
||||
void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); }
|
||||
|
||||
bool DoEraseBackground(wxDC* dc) {
|
||||
#ifdef __WXMSW__
|
||||
return wxWindow::DoEraseBackground(dc->GetHDC());
|
||||
#else
|
||||
dc->SetBackground(wxBrush(GetBackgroundColour()));
|
||||
dc->Clear();
|
||||
return true;
|
||||
#endif
|
||||
}
|
||||
|
||||
DEC_PYCALLBACK_VOID_INT4(DoMoveWindow);
|
||||
DEC_PYCALLBACK_VOID_INT5(DoSetSize);
|
||||
DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize);
|
||||
@@ -120,7 +130,8 @@ public:
|
||||
void _setCallbackInfo(PyObject* self, PyObject* _class);
|
||||
|
||||
void SetBestSize(const wxSize& size);
|
||||
|
||||
bool DoEraseBackground(wxDC* dc);
|
||||
|
||||
void base_DoMoveWindow(int x, int y, int width, int height);
|
||||
void base_DoSetSize(int x, int y, int width, int height,
|
||||
int sizeFlags = wxSIZE_AUTO);
|
||||
|
Reference in New Issue
Block a user