19#ifndef GRIDCELLCOORDSCONTAINER_HPP
20#define GRIDCELLCOORDSCONTAINER_HPP
84 for (
size_t n = 1; n <
m_array.size(); n++)
170 for (
size_t n = 0; n <
m_array.size(); n++)
204 return contains(wxGridCellCoords(row, col));
A class to simplify the access to different types of grid cell coords. Especially useful in the conte...
wxGridCellCoordsContainer(const wxArrayInt &selectedRowsOrCols, int otherDim, bool rowsSelected=true)
Construct a wxGridCellCoordsContainer from a set of indices for complete rows or columns.
const wxGridCellsExtent & getExtent() const
Get the maximal needed enclosing box in terms of wxGridCellCoordinates.
wxGridCellCoordsContainer()=default
Construct an empty wxGridCellCoordsContainer.
wxGridCellCoordsArray m_array
bool isSparse() const
Returns true, if the contained coordinates form a sparse matrix.
wxGridCellCoordsContainer(const wxGridCellCoords &topleft, const wxGridCellCoords &bottomright)
Construct a wxGridCellCoordsContainer from an upperleft and a lowerright coordinate pair.
bool contains(const wxGridCellCoords &cell) const
Does this wxGridCellCoordsContainer contain the passed coordinates?
wxGridCellsExtent m_extent
const wxGridCellCoordsArray & getArray() const
Get a reference to the internal wxGridCellCoordsArray (only available, if the contained coordinates f...
bool isBlock() const
Returns true, if the contained coordinates actually form a contigious block.
bool columnsSelected() const
Returns true, if the contained coordinates originated from complete columns.
wxGridCellCoordsContainer(const wxGridCellCoordsArray &selected)
Construct a wxGridCellCoordsContainer from a list of selected grid coordinates.
bool contains(int row, int col) const
Does this wxGridCellCoordsContainer contain the passed coordinates?
size_t getRows() const
Get the number of enclosed rows.
size_t getCols() const
Get the number of enclosed columns.
A simple structure to define the needed grid space to enclose all cells contained in the wxGridCellCo...
wxGridCellCoords m_topleft
wxGridCellCoords m_bottomright