Implement wxGrid selection blocks iterating interface

This commit is contained in:
Ilya Sinitsyn
2020-03-27 03:23:45 +07:00
committed by Vadim Zeitlin
parent 8ebdf101b8
commit f8015b13b1
5 changed files with 168 additions and 0 deletions

View File

@@ -10231,6 +10231,15 @@ bool wxGrid::IsInSelection( int row, int col ) const
return m_selection && m_selection->IsInSelection(row, col);
}
wxGridSelectionRange wxGrid::GetSelectionRange() const
{
if ( !m_selection )
return wxGridSelectionRange();
wxVectorGridBlockCoords& blocks = m_selection->GetBlocks();
return wxGridSelectionRange(blocks.begin(), blocks.end());
}
wxGridCellCoordsArray wxGrid::GetSelectedCells() const
{
if (!m_selection)