okteta
KHEUI::CoordRange Class Reference
#include <coordrange.h>

Detailed Description
describes a range in the buffercoord
Definition at line 50 of file coordrange.h.
Public Member Functions | |
| CoordRange () | |
| CoordRange (const KHE::KSection &Pos, const KHE::KSection &Lines) | |
| CoordRange (const Coord &SC, const Coord &EC) | |
| bool | includesLine (int Line) const |
| int | lines () const |
| CoordRange & | operator= (const CoordRange &S) |
| bool | operator== (const CoordRange &S) const |
| int | width (int LineLength) const |
| ~CoordRange () | |
Constructor & Destructor Documentation
| KHEUI::CoordRange::CoordRange | ( | const KHE::KSection & | Pos, | |
| const KHE::KSection & | Lines | |||
| ) | [inline] |
- Parameters:
-
Pos start and end pos
- Parameters:
-
Lines start and end line
Definition at line 94 of file coordrange.h.
| KHEUI::CoordRange::CoordRange | ( | ) | [inline] |
Definition at line 96 of file coordrange.h.
| KHEUI::CoordRange::~CoordRange | ( | ) | [inline] |
Definition at line 97 of file coordrange.h.
Member Function Documentation
| bool KHEUI::CoordRange::includesLine | ( | int | Line | ) | const [inline] |
tests if the given line is included by the range.
If the range is invalid or the line < 0 the behaviour is undefined.
- Parameters:
-
Line index of line
- Returns:
trueif Line is included, otherwisefalse
Definition at line 105 of file coordrange.h.
| int KHEUI::CoordRange::lines | ( | ) | const [inline] |
calculates the number of lines that are covered by the range.
If the range is invalid the behaviour is undefined.
- Returns:
- number of lines covered
Definition at line 104 of file coordrange.h.
| CoordRange & KHEUI::CoordRange::operator= | ( | const CoordRange & | S | ) | [inline] |
Definition at line 101 of file coordrange.h.
| bool KHEUI::CoordRange::operator== | ( | const CoordRange & | S | ) | const [inline] |
Definition at line 99 of file coordrange.h.
calculates the number of coords that are covered if a line has the given length.
If the range is invalid the behaviour is undefined.
- Parameters:
-
LineLength
- Returns:
- the number of points covered if a line has a length of LineLength.
Definition at line 103 of file coordrange.h.
The documentation for this class was generated from the following file:
KDE 4.2 API Reference