]> git.saurik.com Git - wxWidgets.git/commitdiff
Add wx.ListBox.HitTest
authorRobin Dunn <robin@alldunn.com>
Fri, 10 Mar 2006 00:26:28 +0000 (00:26 +0000)
committerRobin Dunn <robin@alldunn.com>
Fri, 10 Mar 2006 00:26:28 +0000 (00:26 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37946 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/src/_listbox.i

index 565dea0bd12b8cc096c12738b911f9d4b0c3b173..ef426b07a030d028d1b6e8fc6828172f7739741e 100644 (file)
@@ -106,6 +106,8 @@ public:
     // return True if this listbox is sorted
     bool IsSorted() const;
 
+    // return the index of the item at this position or wxNOT_FOUND
+    int HitTest(const wxPoint& pt) const;
 
     %extend {
         void SetItemForegroundColour(int item, const wxColour& c) {
@@ -170,9 +172,6 @@ public:
     int GetItemHeight();
 #endif
 
-    // return the index of the item at this position or wxNOT_FOUND
-    int HitTest(const wxPoint& pt) const;
-    %Rename(HitTestXY, int, HitTest(wxCoord x, wxCoord y) const);
 };
 
 //---------------------------------------------------------------------------