KTextEditor
katetextcursor.h
33 // this is a friend, because this is needed to efficiently transfer cursors from on to an other block
40 * Construct a text cursor with given range as parent, private, used by TextRange constructor only.
43 * @param position wanted cursor position, if not valid for given buffer, will lead to invalid cursor
46 TextCursor(TextBuffer &buffer, TextRange *range, const KTextEditor::Cursor position, InsertBehavior insertBehavior);
52 * @param position wanted cursor position, if not valid for given buffer, will lead to invalid cursor
55 TextCursor(TextBuffer &buffer, const KTextEditor::Cursor position, InsertBehavior insertBehavior);
A Cursor which is bound to a specific Document, and maintains its position.
Definition movingcursor.h:55
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 range that is bound to a specific Document, and maintains its position.
Definition movingrange.h:145
int column() const override
Retrieve the column on which this cursor is situated.
Definition katetextcursor.h:136
KTextEditor::MovingRange * range() const override
Get range this cursor belongs to, if any.
Definition katetextcursor.cpp:123
int lineInternal() const
Non-virtual version of line(), which is faster.
Definition katetextcursor.h:124
Kate::TextRange * kateRange() const
Get range this cursor belongs to, if any.
Definition katetextcursor.h:160
KTextEditor::Document * document() const override
Gets the document to which this cursor is bound.
Definition katetextcursor.cpp:118
InsertBehavior insertBehavior() const override
Get current insert behavior.
Definition katetextcursor.h:75
void setInsertBehavior(InsertBehavior insertBehavior) override
Set insert behavior.
Definition katetextcursor.h:66
void setPosition(const TextCursor &position)
Fast way to set the current cursor position to position.
Definition katetextcursor.cpp:48
int columnInternal() const
Non-virtual version of column(), which is faster.
Definition katetextcursor.h:145
int lineInBlock() const
Get offset into block this cursor belongs to, if any.
Definition katetextcursor.h:169
int line() const override
Retrieve the line on which this cursor is situated.
Definition katetextcursor.h:114
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:15:43 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:15:43 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.