KTextEditor
movingrange.h
154 DoNotExpand = 0x0,
156 ExpandLeft = 0x1,
158 ExpandRight = 0x2
226 * Gets the active view for this range. Might be already invalid, internally only used for pointer comparisons.
280 * This will trigger evaluation if feedback must be send again (for example if mouse is already inside range).
292 * Defined depths for common kind of ranges use in editor components implementing this interface,
363 * Convert this clever range into a dumb one. Equal to toRange, allowing to use implicit conversion.
virtual const MovingCursor & start() const =0
Retrieve start cursor of this range, read-only.
bool overlapsColumn(int column) const
Check to see if this range overlaps column; that is, if column is between start()....
Definition: movingrange.h:504
Q_SCRIPTABLE Q_NOREPLY void start()
bool overlapsLine(int line) const
Check whether the range overlaps at least part of line.
Definition: movingrange.h:489
QFlags< InsertBehavior > InsertBehaviors
Stores a combination of InsertBehavior values.
Definition: movingrange.h:161
QDebug & space()
An object representing lines from a start line to an end line.
Definition: linerange.h:37
An object representing a section of text, from one Cursor to another.
Definition: include/ktexteditor/range.h:44
bool containsColumn(int column) const
Check whether the range contains column.
Definition: movingrange.h:468
bool onSingleLine() const
Check whether the start() and end() cursors of this range are on the same line.
Definition: movingrange.h:516
constexpr Cursor end() const Q_DECL_NOEXCEPT
Get the end position of this range.
Definition: include/ktexteditor/range.h:181
friend QDebug operator<<(QDebug s, const MovingRange &range)
qDebug() stream operator.
Definition: movingrange.h:402
The KTextEditor namespace contains all the public API that is required to use the KTextEditor compone...
Definition: katetextblock.h:22
friend QDebug operator<<(QDebug s, const MovingRange *range)
qDebug() stream operator.
Definition: movingrange.h:386
virtual const MovingCursor & end() const =0
Retrieve end cursor of this range, read-only.
bool isEmpty() const
Returns true if this range contains no characters, ie.
Definition: movingrange.h:413
bool containsLine(int line) const
Returns true if this range wholly encompasses line.
Definition: movingrange.h:456
InsertBehavior
Determine how the range reacts to characters inserted immediately outside the range.
Definition: movingrange.h:152
A class which provides notifications of state changes to a MovingRange.
Definition: movingrangefeedback.h:35
constexpr Cursor start() const Q_DECL_NOEXCEPT
Get the start position of this range.
Definition: include/ktexteditor/range.h:171
int numberOfLines() const Q_DECL_NOEXCEPT
Returns the number of lines separating the start() and end() positions.
Definition: movingrange.h:527
A range that is bound to a specific Document, and maintains its position.
Definition: movingrange.h:144
bool contains(const Cursor &cursor) const
Check to see if cursor is contained within this range, ie >= start() and < end().
Definition: movingrange.h:444
A Cursor which is bound to a specific Document, and maintains its position.
Definition: movingcursor.h:54
bool contains(const Range &range) const
Check whether the this range wholly encompasses range.
Definition: movingrange.h:432
LineRange toLineRange() const Q_DECL_NOEXCEPT
Convert this MovingRange to a simple LineRange.
Definition: movingrange.h:375
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Dec 9 2023 03:50:17 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Dec 9 2023 03:50:17 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.