Kate
documentcursor.cpp
Go to the documentation of this file.
26 DocumentCursor::DocumentCursor(KTextEditor::Document* document)
34 DocumentCursor::DocumentCursor(KTextEditor::Document* document, const KTextEditor::Cursor& position)
DocumentCursor & operator=(const DocumentCursor &other)
Assignment operator.
Definition: documentcursor.cpp:56
void makeValid()
Make sure the cursor position is at a valid text position according to the following rules...
Definition: documentcursor.cpp:91
bool isValidTextPosition() const
Check whether the current position of this cursor is a valid text position.
Definition: documentcursor.h:176
bool atStartOfDocument() const
Determine if this cursor is located at line 0 and column 0.
Definition: documentcursor.cpp:137
A Cursor which is bound to a specific Document.
Definition: documentcursor.h:69
bool move(int chars, WrapBehavior wrapBehavior=Wrap)
Moves the cursor chars character forward or backwards.
Definition: documentcursor.cpp:171
bool atEndOfDocument() const
Determine if this cursor is located at the end of the last line in the document.
Definition: documentcursor.cpp:142
bool gotoNextLine()
Moves the cursor to the next line and sets the column to 0.
Definition: documentcursor.cpp:147
bool gotoPreviousLine()
Moves the cursor to the previous line and sets the column to 0.
Definition: documentcursor.cpp:159
bool atStartOfLine() const
Determine if this cursor is located at column 0 of a valid text line.
Definition: documentcursor.cpp:127
const Cursor & toCursor() const
Convert this clever cursor into a dumb one.
Definition: documentcursor.cpp:238
bool isValid() const
Returns whether the current position of this cursor is a valid position, i.e.
Definition: documentcursor.h:166
int line() const
Retrieve the line on which this cursor is situated.
Definition: documentcursor.cpp:77
int column() const
Retrieve the column on which this cursor is situated.
Definition: documentcursor.cpp:82
WrapBehavior
Wrap behavior for end of line treatement used in move().
Definition: documentcursor.h:78
bool atEndOfLine() const
Determine if this cursor is located at the end of the current line.
Definition: documentcursor.cpp:132
Document * document() const
Gets the document to which this cursor is bound.
Definition: documentcursor.cpp:63
void setPosition(const KTextEditor::Cursor &position)
Set the current cursor position to position.
Definition: documentcursor.cpp:68
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:57 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:57 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.