From 88609ec9a8421a783bb92ad0eddf4ef3ddc4350e Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sat, 9 Apr 2005 20:07:46 +0000 Subject: [PATCH] New methods added git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33457 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- wxPython/src/_notebook.i | 5 ++++- wxPython/src/_vscroll.i | 11 +++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) 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; + }; //--------------------------------------------------------------------------- -- 2.47.2