okteta
#include <coordrange.h>
Public Member Functions | |
CoordRange (const Coord &start, const Coord &end) | |
CoordRange (const LinePositionRange &posRange, const LineRange &lineRange) | |
CoordRange () | |
~CoordRange () | |
bool | includesLine (Line line) const |
LineSize | lines () const |
CoordRange & | operator= (const CoordRange &other) |
bool | operator== (const CoordRange &other) const |
Size | width (LinePositionSize lineWidth) const |
Public Member Functions inherited from KDE::Range< T > | |
Range (T S, T E) | |
Range () | |
~Range () | |
T | end () const |
bool | endsBefore (T Value) const |
bool | endsBefore (const Range &R) const |
bool | endsBehind (T Value) const |
bool | endsBehind (const Range &R) const |
void | extendEndTo (T Limit) |
void | extendStartTo (T Limit) |
void | extendTo (const Range &Limit) |
bool | includes (T Value) const |
bool | includes (const Range &R) const |
bool | includesInside (T Value) const |
bool | includesInside (const Range &R) const |
bool | isEmpty () const |
bool | isValid () const |
void | moveBy (T D) |
void | moveEndBy (T D) |
void | moveStartBy (T D) |
Range & | operator= (const Range &R) |
bool | operator== (const Range &R) const |
bool | overlaps (const Range &R) const |
void | restrictEndTo (T Limit) |
void | restrictStartTo (T Limit) |
void | restrictTo (const Range &Limit) |
void | set (T S, T E) |
void | set (const Range &R) |
void | setEnd (T E) |
void | setStart (T S) |
T | start () const |
bool | startsBefore (T Value) const |
bool | startsBefore (const Range &R) const |
bool | startsBehind (T Value) const |
bool | startsBehind (const Range &R) const |
void | unset () |
Additional Inherited Members | |
Protected Member Functions inherited from KDE::Range< T > | |
const T | null () const |
Protected Attributes inherited from KDE::Range< T > | |
T | End |
T | Start |
Detailed Description
describes a range in the buffercoord
Definition at line 51 of file coordrange.h.
Constructor & Destructor Documentation
- Parameters
-
start start coord end end coord
Definition at line 94 of file coordrange.h.
|
inline |
- Parameters
-
posRange start and end pos lineRange start and end line
Definition at line 95 of file coordrange.h.
|
inline |
Definition at line 97 of file coordrange.h.
|
inline |
Definition at line 99 of file coordrange.h.
Member Function Documentation
|
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
true
if Line is included, otherwisefalse
Definition at line 107 of file coordrange.h.
|
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 106 of file coordrange.h.
|
inline |
Definition at line 101 of file coordrange.h.
|
inline |
Definition at line 103 of file coordrange.h.
|
inline |
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
-
lineWidth
- Returns
- the number of points covered if a line has a length of LineLength.
Definition at line 105 of file coordrange.h.
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:13 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.