X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c3f93e04f50bd24dd9eb78173461aef928d469f9..c9e13cbb59851e1cb85a824d0e9cb990fc853dbe:/wxPython/src/_notebook.i diff --git a/wxPython/src/_notebook.i b/wxPython/src/_notebook.i index b87ca2a0ab..dff56eeefa 100644 --- a/wxPython/src/_notebook.i +++ b/wxPython/src/_notebook.i @@ -27,7 +27,8 @@ enum { wxBK_BOTTOM, wxBK_LEFT, wxBK_RIGHT, - wxBK_ALIGN_MASK + wxBK_ALIGN_MASK, + wxBK_BUTTONBAR }; @@ -106,10 +107,17 @@ public: // returns true if we have wxCHB_TOP or wxCHB_BOTTOM style bool IsVertical() const; + // Sets/gets the margin around the controller + void SetControlMargin(int margin); + int GetControlMargin() const; + // set/get option to shrink to fit current page void SetFitToCurrentPage(bool fit); bool GetFitToCurrentPage() const; + // returns the sizer containing the control, if any + wxSizer* GetControlSizer() const; + // remove one page from the control and delete it virtual bool DeletePage(size_t n); @@ -143,6 +151,12 @@ public: // cycle thru the pages void AdvanceSelection(bool forward = true); + DocDeclAStr( + virtual int, HitTest(const wxPoint& pt, long* OUTPUT) const, + "HitTest(Point pt) -> (tab, where)", + "Returns the page/tab which is hit, and flags indicating where using +wx.NB_HITTEST flags.", ""); + static wxVisualAttributes GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); }; @@ -183,7 +197,7 @@ enum { wxNB_HITTEST_ONICON = 2, // on icon wxNB_HITTEST_ONLABEL = 4, // on label wxNB_HITTEST_ONITEM = wxNB_HITTEST_ONICON | wxNB_HITTEST_ONLABEL, - + wxNB_HITTEST_ONPAGE = 8 }; @@ -225,14 +239,6 @@ public: // set the size of the tabs for wxNB_FIXEDWIDTH controls virtual void SetTabSize(const wxSize& sz); - // hit test, returns which tab is hit and, optionally, where (icon, label) - // (not implemented on all platforms) - DocDeclAStr( - virtual int, HitTest(const wxPoint& pt, long* OUTPUT) const, - "HitTest(Point pt) -> (tab, where)", - "Returns the tab which is hit, and flags indicating where using -wx.NB_HITTEST flags.", ""); - // implement some base class functions virtual wxSize CalcSizeFromPage(const wxSize& sizePage) const;