#include <QicsSpan.h>
Public Member Functions | |
| QicsSpan () | |
| QicsSpan (int begin_row, int begin_col, int nrows, int ncols) | |
| QicsRegion | toRegion (bool visual) const |
| int | row (void) const |
| int | vrow (void) const |
| int | column (void) const |
| int | vcolumn (void) const |
| int | col (void) const |
| int | height (void) const |
| int | width (void) const |
| bool | isValid (void) const |
| bool | containsCell (int row, int col) const |
| bool | intersects (const QicsSpan &s) const |
| QDomElement | toDomXml (QString tag, QDomDocument *doc) const |
| void | configureFromDomXml (const QDomElement &e) |
Static Public Member Functions | |
| static QicsSpan | fromRegion (const QicsRegion ®) |
Private Attributes | |
| int | _row |
| int | _col |
| int | _nrows |
| int | _ncols |
| int | _vrow |
| int | _vcol |
Friends | |
| class | QicsSpanManager |
A QicsSpan specifies a rectangular region of a QicsTable. It begins at a particular cell (row(), column()) and spans for a given number of rows (height()) and columns (width()).
| QicsSpan::QicsSpan | ( | ) | [inline] |
Constructs an empty, invalid span.
| QicsSpan::QicsSpan | ( | int | begin_row, | |
| int | begin_col, | |||
| int | nrows, | |||
| int | ncols | |||
| ) | [inline] |
Constructs a new span object. The span extends from row begin_row, column begin_col to row begin_row+nrows-1, column begin_col+width-1.
| QicsRegion QicsSpan::toRegion | ( | bool | visual | ) | const [inline] |
Converts itself to QicsRegion.
| static QicsSpan QicsSpan::fromRegion | ( | const QicsRegion & | reg | ) | [inline, static] |
Creates QicsSpan from QicsRegion reg.
References QicsRegion::startColumn(), and QicsRegion::startRow().
| int QicsSpan::row | ( | void | ) | const [inline] |
Returns the starting row of the span.
| int QicsSpan::vrow | ( | void | ) | const [inline] |
Returns the starting visual row of the span.
| int QicsSpan::column | ( | void | ) | const [inline] |
Returns the starting column of the span.
| int QicsSpan::vcolumn | ( | void | ) | const [inline] |
Returns the starting visual column of the span.
| int QicsSpan::col | ( | void | ) | const [inline] |
Returns the starting column of the span.
| int QicsSpan::height | ( | void | ) | const [inline] |
Returns the height of the span.
| int QicsSpan::width | ( | void | ) | const [inline] |
Returns the width of the span.
| bool QicsSpan::isValid | ( | void | ) | const [inline] |
| bool QicsSpan::containsCell | ( | int | row, | |
| int | col | |||
| ) | const [inline] |
Returns true if the cell (row, col) is in the span.
| bool QicsSpan::intersects | ( | const QicsSpan & | s | ) | const |
Returns true if the span s intesects me
| QDomElement QicsSpan::toDomXml | ( | QString | tag, | |
| QDomDocument * | doc | |||
| ) | const [inline] |
Store settings to QDoomElement.
| void QicsSpan::configureFromDomXml | ( | const QDomElement & | e | ) | [inline] |
Restore settings from QDoomElement.