From: Robin Dunn Date: Sat, 9 Apr 2005 20:07:46 +0000 (+0000) Subject: New methods added X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/88609ec9a8421a783bb92ad0eddf4ef3ddc4350e New methods added git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33457 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/wxPython/src/_notebook.i b/wxPython/src/_notebook.i index 3ab924fe1c..0745aab834 100644 --- a/wxPython/src/_notebook.i +++ b/wxPython/src/_notebook.i @@ -388,7 +388,10 @@ public: // returns true if we have wxCHB_TOP or wxCHB_BOTTOM style - bool IsVertical() const { return HasFlag(wxCHB_BOTTOM | wxCHB_TOP); } + bool IsVertical() const; + + // returns the choice control + wxChoice* GetChoiceCtrl() const; virtual bool DeleteAllPages(); }; diff --git a/wxPython/src/_vscroll.i b/wxPython/src/_vscroll.i index ff24d30bd3..f62371a5c2 100644 --- a/wxPython/src/_vscroll.i +++ b/wxPython/src/_vscroll.i @@ -197,6 +197,17 @@ public: // is this line currently visible? bool IsVisible(size_t line) const; + // this is the same as GetVisibleBegin(), exists to match + // GetLastVisibleLine() and for backwards compatibility only + size_t GetFirstVisibleLine() const; + + // get the last currently visible line + // + // this function is unsafe as it returns (size_t)-1 (i.e. a huge positive + // number) if the control is empty, use GetVisibleEnd() instead, this one + // is kept for backwards compatibility + size_t GetLastVisibleLine() const; + }; //---------------------------------------------------------------------------