KTextEditor
cursor.cpp
Go to the documentation of this file.
bool atStartOfDocument() const
Determine if this cursor is located at the start of a document.
Definition: cursor.cpp:153
void position(int &line, int &column) const
Get both the line and column of the cursor position.
Definition: cursor.cpp:119
static Cursor start()
Returns a cursor representing the start of any document - i.e., line 0, column 0. ...
Definition: cursor.cpp:57
virtual bool isSmartCursor() const
Returns whether this cursor is a SmartCursor.
Definition: cursor.cpp:109
void cursorChangedDirectly(const Cursor &from)
Definition: cursor.cpp:138
virtual bool isValid() const
Returns whether the current position of this cursor is a valid position (line + column must both be >...
Definition: cursor.cpp:47
Range * range() const
Returns the range that this cursor belongs to, if any.
Definition: cursor.cpp:124
A Cursor which is bound to a specific Document, and maintains its position.
Definition: smartcursor.h:65
An object representing a section of text, from one Cursor to another.
Definition: range.h:54
virtual int line() const
Retrieve the line on which this cursor is situated.
Definition: cursor.cpp:62
virtual void setPosition(const Cursor &position)
Set the current cursor position to position.
Definition: cursor.cpp:96
virtual SmartCursor * toSmartCursor() const
Returns this cursor as a SmartCursor, if it is one.
Definition: cursor.cpp:158
bool atStartOfLine() const
Determine if this cursor is located at the start of a line.
Definition: cursor.cpp:148
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.