KTextEditor
range.cpp
Go to the documentation of this file.
142 return (line > start().line() || (line == start().line() && !start().column())) && line < end().line();
virtual SmartRange * toSmartRange() const
Returns this range as a SmartRange, if it is one.
Definition: range.cpp:291
int positionRelativeToCursor(const Cursor &cursor) const
Determine where cursor is positioned in relationship to this range.
Definition: range.cpp:259
A Range which is bound to a specific Document, and maintains its position.
Definition: smartrange.h:94
bool boundaryOnLine(int line) const
Check whether line is on the same line as either of the start() or end() boundaries.
Definition: range.cpp:187
virtual void setRange(const Range &range)
Set the start and end cursors to range.start() and range.end() respectively.
Definition: range.cpp:126
virtual bool confineToRange(const Range &range)
Confine this range if necessary to fit within range.
Definition: range.cpp:192
virtual void rangeChanged(Cursor *cursor, const Range &from)
Notify this range that one or both of the cursors' position has changed directly. ...
Definition: range.cpp:222
int columnWidth() const
Returns the number of columns separating the start() and end() positions.
Definition: range.cpp:244
bool containsColumn(int column) const
Check whether the range contains column.
Definition: range.cpp:165
virtual bool isValid() const
Returns whether the current position of this cursor is a valid position (line + column must both be >...
Definition: cursor.cpp:47
bool boundaryAtCursor(const Cursor &cursor) const
Check whether cursor is located at either of the start() or end() boundaries.
Definition: range.cpp:182
An object representing a section of text, from one Cursor to another.
Definition: range.h:54
Range encompass(const Range &range) const
Returns the smallest range which encompasses this range and the supplied range.
Definition: range.cpp:324
bool onSingleLine() const
Check whether this range is wholly contained within one line, ie.
Definition: range.cpp:239
bool overlapsLine(int line) const
Check whether the range overlaps at least part of line.
Definition: range.cpp:145
virtual bool expandToRange(const Range &range)
Expand this range if necessary to contain range.
Definition: range.cpp:207
virtual int line() const
Retrieve the line on which this cursor is situated.
Definition: cursor.cpp:62
bool overlapsColumn(int column) const
Check to see if this range overlaps column; that is, if column is between start().column() and end().column().
Definition: range.cpp:150
bool containsLine(int line) const
Returns true if this range wholly encompasses line.
Definition: range.cpp:140
virtual bool isSmartRange() const
Returns whether this range is a SmartRange.
Definition: range.cpp:286
int numberOfLines() const
Returns the number of lines separating the start() and end() positions.
Definition: range.cpp:249
Range intersect(const Range &range) const
Intersects this range with another, returning the shared area of the two ranges.
Definition: range.cpp:316
bool contains(const Range &range) const
Check whether the this range wholly encompasses range.
Definition: range.cpp:160
bool isEmpty() const
Returns true if this range contains no characters, ie.
Definition: range.cpp:254
const KShortcut & end()
int positionRelativeToLine(int line) const
Determine where line is positioned in relationship to this range.
Definition: range.cpp:270
bool overlaps(const Range &range) const
Check whether the this range overlaps with range.
Definition: range.cpp:170
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:41 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 22:31:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.