From: Stefan Neis Date: Thu, 3 Feb 2000 15:14:13 +0000 (+0000) Subject: Added drag-shrinking. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/c3baf426f87f90b82ea5a610371001e63e106d99?ds=sidebyside Added drag-shrinking. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5829 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/generic/grid.h b/include/wx/generic/grid.h index 7102bf12b5..f5bb92acc1 100644 --- a/include/wx/generic/grid.h +++ b/include/wx/generic/grid.h @@ -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...