KTextEditor
Go to the documentation of this file.
24 #ifndef KDELIBS_KTEXTEDITOR_RANGE_H
25 #define KDELIBS_KTEXTEDITOR_RANGE_H
90 Range(
const Cursor& start,
int endLine,
int endColumn);
100 Range(
int startLine,
int startColumn,
int endLine,
int endColumn);
118 virtual bool isValid()
const;
123 static Range invalid();
128 virtual bool isSmartRange()
const;
167 const Cursor& start()
const;
204 void setBothLines(
int line);
211 void setBothColumns(
int column);
218 virtual void setRange(
const Range& range);
239 virtual bool expandToRange(
const Range& range);
248 virtual bool confineToRange(
const Range& range);
257 bool onSingleLine()
const;
265 int numberOfLines()
const;
273 int columnWidth()
const;
281 bool isEmpty()
const;
300 bool contains(
const Range& range)
const;
309 bool contains(
const Cursor& cursor)
const;
318 bool containsLine(
int line)
const;
327 bool containsColumn(
int column)
const;
336 bool overlaps(
const Range& range)
const;
345 bool overlapsLine(
int line)
const;
357 bool overlapsColumn(
int column)
const;
372 int positionRelativeToCursor(
const Cursor& cursor)
const;
386 int positionRelativeToLine(
int line)
const;
397 bool boundaryAtCursor(
const Cursor& cursor)
const;
408 bool boundaryOnLine(
int line)
const;
419 bool boundaryOnColumn(
int column)
const;
453 { setRange(rhs);
return *
this; }
553 inline friend bool operator>(
const Range& r1,
const Range& r2)
571 inline friend QDebug operator<< (QDebug s,
const Range& range) {
573 s <<
"[" << range.
start() <<
" -> " << range.
end() <<
"]";
598 virtual void rangeChanged(
Cursor* cursor,
const Range& from);
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Apr 16 2013 19:18:00 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.