KTextEditor
katetextcursor.h
34 // this is a friend, because this is needed to efficiently transfer cursors from on to an other block
39 * Construct a text cursor with given range as parent, private, used by TextRange constructor only.
42 * @param position wanted cursor position, if not valid for given buffer, will lead to invalid cursor
45 TextCursor(TextBuffer &buffer, TextRange *range, const KTextEditor::Cursor position, InsertBehavior insertBehavior);
51 * @param position wanted cursor position, if not valid for given buffer, will lead to invalid cursor
54 TextCursor(TextBuffer &buffer, const KTextEditor::Cursor position, InsertBehavior insertBehavior);
int columnInternal() const
Non-virtual version of column(), which is faster.
Definition: katetextcursor.h:147
InsertBehavior
Insert behavior of this cursor, should it stay if text is insert at its position or should it move.
Definition: movingcursor.h:64
int lineInternal() const
Non-virtual version of line(), which is faster.
Definition: katetextcursor.h:123
int lineInBlock() const
Get offset into block this cursor belongs to, if any.
Definition: katetextcursor.h:180
void setInsertBehavior(InsertBehavior insertBehavior) override
Set insert behavior.
Definition: katetextcursor.h:65
void setPosition(int line, int column)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: katetextcursor.h:107
int column() const override
Retrieve the column on which this cursor is situated.
Definition: katetextcursor.h:138
A range that is bound to a specific Document, and maintains its position.
Definition: movingrange.h:144
virtual void setPosition(const KTextEditor::Cursor &position)=0
Set the current cursor position to position.
Kate::TextRange * kateRange() const
Get range this cursor belongs to, if any.
Definition: katetextcursor.h:162
A Cursor which is bound to a specific Document, and maintains its position.
Definition: movingcursor.h:54
InsertBehavior insertBehavior() const override
Get current insert behavior.
Definition: katetextcursor.h:74
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 6 2023 03:55:36 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 6 2023 03:55:36 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.