]> git.saurik.com Git - wxWidgets.git/commitdiff
Add missing Calc[Un]ScrolledPosition overloads taking a wxPoint.
authorRobin Dunn <robin@alldunn.com>
Sat, 14 Jul 2012 21:36:38 +0000 (21:36 +0000)
committerRobin Dunn <robin@alldunn.com>
Sat, 14 Jul 2012 21:36:38 +0000 (21:36 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72086 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

interface/wx/scrolwin.h

index 8a9b9093098712ab03ecaa5a2b640fe028b803c2..2ddfe65021941afea328d3a0d74b14feb9b62216 100644 (file)
@@ -183,7 +183,6 @@ public:
                long style = wxHSCROLL | wxVSCROLL,
                const wxString& name = "scrolledWindow");
 
-
     /**
         Translates the logical coordinates to the device ones. For example, if
         a window is scrolled 10 pixels to the bottom, the device coordinates of
@@ -199,6 +198,7 @@ public:
         @see CalcUnscrolledPosition()
     */
     void CalcScrolledPosition(int x, int y, int* xx, int* yy) const;
+    wxPoint CalcScrolledPosition(const wxPoint& pt) const;
 
     /**
         Translates the device coordinates to the logical ones. For example, if
@@ -215,6 +215,7 @@ public:
         @see CalcScrolledPosition()
     */
     void CalcUnscrolledPosition(int x, int y, int* xx, int* yy) const;
+    wxPoint CalcUnscrolledPosition(const wxPoint& pt) const;
 
     /**
         Creates the window for two-step construction. Derived classes