Return the kind of cells span from wxGrid::GetCellSize().
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 27 Dec 2009 19:40:41 +0000 (19:40 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 27 Dec 2009 19:40:41 +0000 (19:40 +0000)
commitea99e8e31e4a66341a76d6aec692eead55c09b37
tree35330424bd45cdebdcf2a05fa65b10d99b7c1a6a
parent653351d1cc29b3746ff4a14975a7f95141867d72
Return the kind of cells span from wxGrid::GetCellSize().

Behaviour of GetCellSize() may be very surprising for the unwary as it can
return negative or null "size" of the cell.

Add CellSpan return value to allow the caller to check what kind of cell are
we dealing with easier.

Also document the new return value as well as the function (and matching
SetCellSize()) itself carefully as its behaviour is far from obvious.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@63000 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/generic/grid.h
interface/wx/grid.h
src/generic/grid.cpp