]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/vscroll.h
added selecting-while-dragging
[wxWidgets.git] / include / wx / vscroll.h
index 6d830f6417f2286dab8f44621a62f767c90fe0c2..8ba386cc2f833be04660a3d632547d3e29b8991d 100644 (file)
@@ -98,6 +98,9 @@ public:
     int HitTest(wxCoord x, wxCoord y) const;
     int HitTest(const wxPoint& pt) const { return HitTest(pt.x, pt.y); }
 
+    // recalculate all our parameters and redisplay all lines
+    virtual void RefreshAll();
+
 
     // accessors
     // ---------
@@ -143,8 +146,8 @@ protected:
     void OnScroll(wxScrollWinEvent& event);
 
     // find the index of the line we need to show at the top of the window such
-    // that the last line shown is the given one
-    size_t FindFirstFromBottom(size_t lineLast);
+    // that the last (fully or partially) visible line is the given one
+    size_t FindFirstFromBottom(size_t lineLast, bool fullyVisible = false);
 
     // get the total height of the lines between lineMin (inclusive) and
     // lineMax (exclusive)