KTextEditor
movingcursor.cpp
Go to the documentation of this file.
virtual int column() const =0
Retrieve the column on which this cursor is situated.
KAction * back(const QObject *recvr, const char *slot, QObject *parent)
bool atEndOfLine() const
Determine if this cursor is located at the end of the current line.
Definition: movingcursor.cpp:60
virtual Cursor documentEnd() const =0
End position of the document.
bool gotoPreviousLine()
Moves the cursor to the previous line and sets the column to 0.
Definition: movingcursor.cpp:84
bool atEndOfDocument() const
Determine if this cursor is located at the end of the last line in the document.
Definition: movingcursor.cpp:64
bool isValidTextPosition() const
Check whether the current position of this cursor is a valid text position.
Definition: movingcursor.h:180
bool atStartOfDocument() const
Determine if this cursor is located at line 0 and column 0.
Definition: movingcursor.cpp:68
const Cursor toCursor() const
Convert this clever cursor into a dumb one.
Definition: movingcursor.h:271
bool isValid() const
Returns whether the current position of this cursor is a valid position, i.e.
Definition: movingcursor.h:171
KGuiItem ok()
virtual int line() const
Retrieve the line on which this cursor is situated.
Definition: cursor.cpp:62
virtual int line() const =0
Retrieve the line on which this cursor is situated.
bool atStartOfLine() const
Determine if this cursor is located at column 0 of a valid text line.
Definition: movingcursor.cpp:56
virtual void setPosition(const Cursor &position)
Set the current cursor position to position.
Definition: cursor.cpp:96
bool gotoNextLine()
Moves the cursor to the next line and sets the column to 0.
Definition: movingcursor.cpp:72
virtual int lineLength(int line) const =0
Get the length of a given line in characters.
bool move(int chars, WrapBehavior wrapBehavior=Wrap)
Moves the cursor chars character forward or backwards.
Definition: movingcursor.cpp:96
virtual void setPosition(const KTextEditor::Cursor &position)=0
Set the current cursor position to position.
virtual Document * document() const =0
Gets the document to which this cursor is bound.
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.