KTextEditor
movingcursor.h
Go to the documentation of this file.
77 StayOnInsert = 0x0,
79 };
85 Wrap = 0x0,
87 };
A Cursor which is bound to a specific Document, and maintains its position.
Definition: movingcursor.h:67
const Cursor toCursor() const
Convert this clever cursor into a dumb one.
Definition: movingcursor.h:271
friend bool operator>(const MovingCursor &c1, const MovingCursor &c2)
Greater than operator.
Definition: movingcursor.h:312
bool isValid() const
Returns whether the current position of this cursor is a valid position, i.e.
Definition: movingcursor.h:171
friend bool operator!=(const MovingCursor &c1, const MovingCursor &c2)
Inequality operator.
Definition: movingcursor.h:302
virtual Document * document() const =0
Gets the document to which this cursor is bound.
virtual void setInsertBehavior(InsertBehavior insertBehavior)=0
Set insert behavior.
virtual void setPosition(const KTextEditor::Cursor &position)=0
Set the current cursor position to position.
friend bool operator<(const MovingCursor &c1, const MovingCursor &c2)
Less than operator.
Definition: movingcursor.h:332
friend bool operator==(const MovingCursor &c1, const MovingCursor &c2)
Equality operator.
Definition: movingcursor.h:293
virtual MovingRange * range() const =0
Get range this cursor belongs to, if any.
bool isValidTextPosition() const
Check whether the current position of this cursor is a valid text position.
Definition: movingcursor.h:180
virtual int column() const =0
Retrieve the column on which this cursor is situated.
InsertBehavior
Insert behavior of this cursor, should it stay if text is insert at its position or should it move.
Definition: movingcursor.h:76
friend bool operator>=(const MovingCursor &c1, const MovingCursor &c2)
Greater than or equal to operator.
Definition: movingcursor.h:322
virtual int line() const =0
Retrieve the line on which this cursor is situated.
friend bool operator<=(const MovingCursor &c1, const MovingCursor &c2)
Less than or equal to operator.
Definition: movingcursor.h:342
virtual InsertBehavior insertBehavior() const =0
Get current insert behavior.
A range that is bound to a specific Document, and maintains its position.
Definition: movingrange.h:123
CopyJob * move(const KUrl &src, const KUrl &dest, JobFlags flags=DefaultFlags)
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.