KTextEditor
katetextcursor.h
33 // this is a friend, because this is needed to efficiently transfer cursors from on to an other block
41 * Construct a text cursor with given range as parent, private, used by TextRange constructor only.
44 * @param position wanted cursor position, if not valid for given buffer, will lead to invalid cursor
47 TextCursor(TextBuffer *buffer, TextRange *range, const KTextEditor::Cursor position, InsertBehavior insertBehavior);
53 * @param position wanted cursor position, if not valid for given buffer, will lead to invalid cursor
56 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:133
int column() const override
Retrieve the column on which this cursor is situated.
Definition katetextcursor.h:137
KTextEditor::MovingRange * range() const override
Get range this cursor belongs to, if any.
Definition katetextcursor.cpp:109
int lineInternal() const
Non-virtual version of line(), which is faster.
Definition katetextcursor.h:125
Kate::TextRange * kateRange() const
Get range this cursor belongs to, if any.
Definition katetextcursor.h:161
KTextEditor::Document * document() const override
Gets the document to which this cursor is bound.
Definition katetextcursor.cpp:104
InsertBehavior insertBehavior() const override
Get current insert behavior.
Definition katetextcursor.h:76
void setInsertBehavior(InsertBehavior insertBehavior) override
Set insert behavior.
Definition katetextcursor.h:67
void setPosition(const TextCursor &position)
Fast way to set the current cursor position to position.
Definition katetextcursor.cpp:43
int columnInternal() const
Non-virtual version of column(), which is faster.
Definition katetextcursor.h:146
int lineInBlock() const
Get offset into block this cursor belongs to, if any.
Definition katetextcursor.h:170
int line() const override
Retrieve the line on which this cursor is situated.
Definition katetextcursor.h:115
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:11:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:11:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.