X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/07dd19d4e5d6d94bea21b0c7aed00ac71dff12f3..d0ee33f5c6908b4ac5e1364381f0ef00942e3936:/wxPython/src/_pycontrol.i diff --git a/wxPython/src/_pycontrol.i b/wxPython/src/_pycontrol.i index 486242bbb7..70bdedaeca 100644 --- a/wxPython/src/_pycontrol.i +++ b/wxPython/src/_pycontrol.i @@ -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); @@ -65,6 +75,8 @@ public: DEC_PYCALLBACK_BOOL_(HasTransparentBackground); + DEC_PYCALLBACK_VOID_(OnInternalIdle); + PYPRIVATE; }; @@ -98,7 +110,9 @@ IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours); IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes); IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, HasTransparentBackground); - %} + +IMP_PYCALLBACK_VOID_(wxPyControl, wxControl, OnInternalIdle); +%} // And now the one for SWIG to see MustHaveApp(wxPyControl); @@ -120,7 +134,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); @@ -154,6 +169,9 @@ public: bool base_ShouldInheritColours() const; wxVisualAttributes base_GetDefaultAttributes(); + + void base_OnInternalIdle(); + };