X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/880715c9a941c58e5f702ff340aac7138b27f6ed..5f2502393e042e6e2c871ff94b7ccaf7a78b264d:/wxPython/src/_scrolbar.i diff --git a/wxPython/src/_scrolbar.i b/wxPython/src/_scrolbar.i index 2cdd183639..a02af38c63 100644 --- a/wxPython/src/_scrolbar.i +++ b/wxPython/src/_scrolbar.i @@ -20,6 +20,8 @@ MAKE_CONST_WXSTRING(ScrollBarNameStr); //--------------------------------------------------------------------------- %newgroup +MustHaveApp(wxScrollBar); + class wxScrollBar : public wxControl { public: %pythonAppend wxScrollBar "self._setOORInfo(self)" @@ -31,7 +33,7 @@ public: long style = wxSB_HORIZONTAL, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxPyScrollBarNameStr); - %name(PreScrollBar)wxScrollBar(); + %RenameCtor(PreScrollBar, wxScrollBar()); bool Create(wxWindow* parent, wxWindowID id = -1, const wxPoint& pos = wxDefaultPosition, @@ -49,12 +51,21 @@ public: bool IsVertical() const { return (m_windowStyle & wxVERTICAL) != 0; } virtual void SetThumbPosition(int viewStart); - virtual void SetScrollbar(int position, int thumbSize, - int range, int pageSize, - bool refresh = True); + + DocDeclStr( + virtual void , SetScrollbar(int position, int thumbSize, + int range, int pageSize, + bool refresh = true), + "", ""); + static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); + + %property(PageSize, GetPageSize, doc="See `GetPageSize`"); + %property(Range, GetRange, doc="See `GetRange`"); + %property(ThumbPosition, GetThumbPosition, SetThumbPosition, doc="See `GetThumbPosition` and `SetThumbPosition`"); + %property(ThumbSize, GetThumbSize, doc="See `GetThumbSize`"); }; //---------------------------------------------------------------------------