KTextEditor
katetextcursor.h
34 // this is a friend, because this is needed to efficiently transfer cursors from on to an other block
45 TextCursor(TextBuffer &buffer, TextRange *range, const KTextEditor::Cursor &position, InsertBehavior insertBehavior);
54 TextCursor(TextBuffer &buffer, const KTextEditor::Cursor &position, InsertBehavior insertBehavior);
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
TextBlock * block() const
Get block this cursor belongs to, if any.
Definition: katetextcursor.h:171
A Cursor which is bound to a specific Document, and maintains its position.
Definition: movingcursor.h:54
A range that is bound to a specific Document, and maintains its position.
Definition: movingrange.h:144
int lineInternal() const
Non-virtual version of line(), which is faster.
Definition: katetextcursor.h:123
InsertBehavior
Insert behavior of this cursor, should it stay if text is insert at its position or should it move...
Definition: movingcursor.h:64
A KParts derived class representing a text document.
Definition: document.h:185
int lineInBlock() const
Get offset into block this cursor belongs to, if any.
Definition: katetextcursor.h:180
InsertBehavior insertBehavior() const override
Get current insert behavior.
Definition: katetextcursor.h:74
QCA_EXPORT void init()
Kate::TextRange * kateRange() const
Get range this cursor belongs to, if any.
Definition: katetextcursor.h:162
int column() const override
Retrieve the column on which this cursor is situated.
Definition: katetextcursor.h:138
void setInsertBehavior(InsertBehavior insertBehavior) override
Set insert behavior.
Definition: katetextcursor.h:65
Definition: katetextblock.cpp:12
virtual void setPosition(const KTextEditor::Cursor &position)=0
Set the current cursor position to position.
int columnInternal() const
Non-virtual version of column(), which is faster.
Definition: katetextcursor.h:147
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Jan 27 2021 22:56:55 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Wed Jan 27 2021 22:56:55 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.