]> git.saurik.com Git - wxWidgets.git/commitdiff
New methods added
authorRobin Dunn <robin@alldunn.com>
Sat, 9 Apr 2005 20:07:46 +0000 (20:07 +0000)
committerRobin Dunn <robin@alldunn.com>
Sat, 9 Apr 2005 20:07:46 +0000 (20:07 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33457 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/_notebook.i
wxPython/src/_vscroll.i

index 3ab924fe1c3303986194963bf00c9191cfd84cf3..0745aab834a4f8a89c47e3ec28d22d0f63b580ee 100644 (file)
@@ -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();
 };
index ff24d30bd3912ca9a1eaccc2ce6755bf465353d3..f62371a5c264dc190a6e4ca7d84ff3772ec6ab7f 100644 (file)
@@ -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;
+
 };
 
 //---------------------------------------------------------------------------