okteta
coord.h
Go to the documentation of this file.
198 inline Coord& Coord::operator=( const Coord& other ) { mPos = other.mPos; mLine = other.mLine; return *this; }
201 inline bool Coord::operator==( const Coord& other ) const { return mPos == other.mPos && mLine == other.mLine; }
static Coord fromIndex(Address index, LinePositionSize lineWidth)
constructs a section by width
Definition: coord.h:190
bool isPriorInLineThan(const Coord &other) const
tests if the coord is prior in the same line than the given coord.
Definition: coord.h:288
void goLineStart(const Coord &other)
sets the position to the start of the line or if the line is the same as that of the given coord to t...
Definition: coord.h:266
bool isBeforeLineEnd(LinePosition maxPos) const
Definition: coord.h:302
void goCRight(LinePosition maxPos)
moves the coord one position to the right, or if the position has already reached or passed maxPos to...
Definition: coord.h:231
void setByIndexNWidth(Address index, LinePositionSize lineWidth)
set the coord by calculating it for an index with a given line width
Definition: coord.h:217
void gotoEndOfPreviousLine(LinePosition lastPos)
Definition: coord.h:253
void goCLeft(LinePosition maxPos)
moves the coord one position to the left, or if the position is already at the line start to the give...
Definition: coord.h:238
void goLineEnd(LinePosition lastPos, const Coord &other)
sets the position to the given pos or if the line is the same as that of the given coord to the posit...
Definition: coord.h:271
Address indexByLineWidth(LinePositionSize lineWidth) const
calculates the index the coord is at with a given line width If the coord is invalid the result is un...
Definition: coord.h:282
bool isLaterInLineThan(const Coord &other) const
tests if the coord is later in the same line than the given coord.
Definition: coord.h:293
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:04:07 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:07 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.