Implement wxGrid selection blocks iterating interface
This commit is contained in:
committed by
Vadim Zeitlin
parent
8ebdf101b8
commit
f8015b13b1
@@ -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)
|
||||
|
Reference in New Issue
Block a user