KTextEditor
cursor.cpp
Go to the documentation of this file.
129Cursor::~ Cursor( )
virtual SmartCursor * toSmartCursor() const
Returns this cursor as a SmartCursor, if it is one.
Definition: cursor.cpp:158
virtual bool isSmartCursor() const
Returns whether this cursor is a SmartCursor.
Definition: cursor.cpp:109
bool atStartOfDocument() const
Determine if this cursor is located at the start of a document.
Definition: cursor.cpp:153
virtual void setPosition(const Cursor &position)
Set the current cursor position to position.
Definition: cursor.cpp:96
bool atStartOfLine() const
Determine if this cursor is located at the start of a line.
Definition: cursor.cpp:148
virtual int line() const
Retrieve the line on which this cursor is situated.
Definition: cursor.cpp:62
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
void cursorChangedDirectly(const Cursor &from)
Definition: cursor.cpp:138
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
Range * range() const
Returns the range that this cursor belongs to, if any.
Definition: cursor.cpp:124
An object representing a section of text, from one Cursor to another.
Definition: range.h:55
A Cursor which is bound to a specific Document, and maintains its position.
Definition: smartcursor.h:66
KAction * copy(const QObject *recvr, const char *slot, QObject *parent)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.