okteta
Okteta::Coord Class Reference
#include <coord.h>
Public Member Functions | |
| Coord () | |
| Coord (LinePosition pos, Line line) | |
| Coord (const Coord &other) | |
| ~Coord () | |
| void | goCLeft (LinePosition maxPos) |
| void | goCRight (LinePosition maxPos) |
| void | goDown () |
| void | goDown (LineSize lines) |
| void | goLeft () |
| void | goLeft (LinePositionSize positions) |
| void | goLineEnd (LinePosition lastPos, const Coord &other) |
| void | goLineStart (const Coord &other) |
| void | goRight () |
| void | goRight (LinePositionSize positions) |
| void | gotoEndOfPreviousLine (LinePosition lastPos) |
| void | gotoStart () |
| void | gotoStartOfNextLine () |
| void | goUp () |
| void | goUp (LineSize lines) |
| Address | indexByLineWidth (LinePositionSize lineWidth) const |
| bool | isAbove (Line line) const |
| bool | isAtStart () const |
| bool | isBeforeLineEnd (LinePosition maxPos) const |
| bool | isBehindLineStart () const |
| bool | isBelow (Line line) const |
| bool | isLaterInLineThan (const Coord &other) const |
| bool | isPriorInLineThan (const Coord &other) const |
| bool | isValid () const |
| Line | line () const |
| bool | operator!= (const Coord &other) const |
| bool | operator< (const Coord &other) const |
| bool | operator<= (const Coord &other) const |
| Coord & | operator= (const Coord &other) |
| bool | operator== (const Coord &other) const |
| bool | operator> (const Coord &other) const |
| bool | operator>= (const Coord &other) const |
| LinePosition | pos () const |
| void | set (LinePosition pos, Line line) |
| void | setByIndexNWidth (Address index, LinePositionSize lineWidth) |
| void | setLine (Line line) |
| void | setPos (LinePosition pos) |
Static Public Member Functions | |
| static Coord | fromIndex (Address index, LinePositionSize lineWidth) |
Detailed Description
a class which represents a coord in a 2-dim.
system
It consists of a line number and a position in the line. The coord starts at (0,0). Line numbers increase downwards, positions to the right. With any of both at a negative number the coord is invalid. The index at coord(0,0) is 0.
Constructor & Destructor Documentation
|
inline |
Member Function Documentation
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
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
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.
KDE API Reference