KTextEditor
movingcursor.h
67 };
75 };
272 * Convert this clever cursor into a dumb one. Equal to toCursor, allowing to use implicit conversion.
A Cursor which is bound to a specific Document, and maintains its position.
Definition movingcursor.h:55
const Cursor toCursor() const
Convert this clever cursor into a dumb one.
Definition movingcursor.h:266
friend bool operator>(const MovingCursor &c1, const MovingCursor &c2)
Greater than operator.
Definition movingcursor.h:317
bool isValid() const
Returns whether the current position of this cursor is a valid position, i.e.
Definition movingcursor.h:159
friend bool operator!=(const MovingCursor &c1, const MovingCursor &c2)
Inequality operator.
Definition movingcursor.h:305
virtual Document * document() const =0
Gets the document to which this cursor is bound.
virtual void setInsertBehavior(InsertBehavior insertBehavior)=0
Set insert behavior.
friend bool operator<(const MovingCursor &c1, const MovingCursor &c2)
Less than operator.
Definition movingcursor.h:341
MovingCursor & operator=(const MovingCursor &)=delete
no assignment operator, no copying around clever cursors.
friend bool operator==(const MovingCursor &c1, const MovingCursor &c2)
Equality operator.
Definition movingcursor.h:294
virtual MovingRange * range() const =0
Get range this cursor belongs to, if any.
virtual int column() const =0
Retrieve the column on which this cursor is situated.
InsertBehavior
Insert behavior of this cursor, should it stay if text is insert at its position or should it move.
Definition movingcursor.h:64
friend bool operator>=(const MovingCursor &c1, const MovingCursor &c2)
Greater than or equal to operator.
Definition movingcursor.h:329
virtual int line() const =0
Retrieve the line on which this cursor is situated.
friend bool operator<=(const MovingCursor &c1, const MovingCursor &c2)
Less than or equal to operator.
Definition movingcursor.h:353
virtual InsertBehavior insertBehavior() const =0
Get current insert behavior.
virtual void setPosition(KTextEditor::Cursor position)=0
Set the current cursor position to position.
MovingCursor(const MovingCursor &)=delete
no copy constructor, don't allow this to be copied.
A range that is bound to a specific Document, and maintains its position.
Definition movingrange.h:133
The KTextEditor namespace contains all the public API that is required to use the KTextEditor compone...
Definition katetextblock.h:18
KTEXTEDITOR_EXPORT QDebug operator<<(QDebug s, const MovingCursor *cursor)
qDebug() stream operator.
Definition movingapi.cpp:156
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:11:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:11:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.