]> git.saurik.com Git - wxWidgets.git/commitdiff
Added drag-shrinking.
authorStefan Neis <Stefan.Neis@t-online.de>
Thu, 3 Feb 2000 15:14:13 +0000 (15:14 +0000)
committerStefan Neis <Stefan.Neis@t-online.de>
Thu, 3 Feb 2000 15:14:13 +0000 (15:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5829 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/generic/grid.h

index 7102bf12b52b7dc1b888a24b48848f7316e2958e..f5bb92acc16b45f4eca55c7841f08bf8897e78a7 100644 (file)
@@ -666,11 +666,22 @@ public:
             *rightCol  = m_selectedBottomRight.GetCol();
         }
 
+
+    // This function returns the rectangle that encloses the block of cells
+    // limited by TopLeft and BottomRight cell in device coords and clipped
+    //  to the client size of the grid window.
+    //
+    wxRect BlockToDeviceRect( const wxGridCellCoords & TopLeft,
+                             const wxGridCellCoords & BottomRight );
+
     // This function returns the rectangle that encloses the selected cells
     // in device coords and clipped to the client size of the grid window.
     //
-    wxRect SelectionToDeviceRect();
-
+    wxRect SelectionToDeviceRect()
+        {
+           return BlockToDeviceRect( m_selectedTopLeft,
+                                     m_selectedBottomRight );
+       }
 
 
     // ------ For compatibility with previous wxGrid only...