ICS

QicsTable Documentation Set

QicsSpan Class Reference

A lightweight, rectangle-like object that refers to a span of cells. More...

#include <QicsSpan.h>

List of all members.

Public Member Functions

 QicsSpan ()
 QicsSpan (int begin_row, int begin_col, int nrows, int ncols)
QicsRegion toRegion () const
int row (void) const
int column (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)

Private Attributes

int _row
int _col
int _nrows
int _ncols

Friends

class QicsSpanManager


Detailed Description

A lightweight, rectangle-like object that refers to a span of cells.

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()).


Constructor & Destructor Documentation

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.


Member Function Documentation

QicsRegion QicsSpan::toRegion (  )  const [inline]

Converts itself to QicsRegion

Since:
2.3

int QicsSpan::row ( void   )  const [inline]

Returns the starting row of the span.

int QicsSpan::column ( void   )  const [inline]

Returns the starting 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]

Returns true if the span is valid (row() and col() are non-negative and height() and width() are greater than 0), or false otherwise.

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.


The documentation for this class was generated from the following file:

All trademarks and copyrights on this page are properties of their respective owners.
The rest is copyright 1999-2006 Integrated Computer Solutions, Inc.