KTextEditor
documentcursor.h
67 };
296 * 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.
Definition documentcursor.h:56
friend bool operator<=(DocumentCursor c1, DocumentCursor c2)
Less than or equal to operator.
Definition documentcursor.h:387
friend bool operator<(DocumentCursor c1, DocumentCursor c2)
Less than operator.
Definition documentcursor.h:375
friend bool operator==(DocumentCursor c1, DocumentCursor c2)
Equality operator.
Definition documentcursor.h:328
Document * document() const
Gets the document to which this cursor is bound.
Definition documentcursor.h:104
friend QDebug operator<<(QDebug s, const DocumentCursor *cursor)
qDebug() stream operator.
Definition documentcursor.h:398
DocumentCursor & operator=(const DocumentCursor &other)
Assignment operator.
Definition documentcursor.h:311
int column() const
Retrieve the column on which this cursor is situated.
Definition documentcursor.h:134
friend bool operator>=(DocumentCursor c1, DocumentCursor c2)
Greater than or equal to operator.
Definition documentcursor.h:363
friend bool operator!=(DocumentCursor c1, DocumentCursor c2)
Inequality operator.
Definition documentcursor.h:339
void setPosition(KTextEditor::Cursor position)
Set the current cursor position to position.
Definition documentcursor.h:116
bool isValid() const
Check if the current position of this cursor is a valid position, i.e.
Definition documentcursor.h:165
bool isValidTextPosition() const
Check if this cursor is currently at a valid text position.
Definition documentcursor.h:181
friend QDebug operator<<(QDebug s, const DocumentCursor &cursor)
qDebug() stream operator.
Definition documentcursor.h:414
DocumentCursor()=delete
no default constructor, as we need a document.
friend bool operator>(DocumentCursor c1, DocumentCursor c2)
Greater than operator.
Definition documentcursor.h:351
The KTextEditor namespace contains all the public API that is required to use the KTextEditor compone...
Definition katetextblock.h:18
QDebug & nospace()
QDebug & space()
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.