KTextEditor
katetextcursor.cpp
18TextCursor::TextCursor(TextBuffer *buffer, const KTextEditor::Cursor position, InsertBehavior insertBehavior)
26TextCursor::TextCursor(TextBuffer *buffer, TextRange *range, KTextEditor::Cursor position, InsertBehavior insertBehavior)
89 if (!oldBlock || position.line() < startLine || position.line() >= startLine + oldBlock->lines()) {
constexpr int column() const noexcept
Retrieve the column on which this cursor is situated.
Definition cursor.h:192
constexpr bool isValid() const noexcept
Returns whether the current position of this cursor is a valid position (line + column must both be >...
Definition cursor.h:102
constexpr int line() const noexcept
Retrieve the line on which this cursor is situated.
Definition cursor.h:174
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:131
void removeCursor(Kate::TextCursor *cursor)
Remove cursor from this block.
Definition katetextblock.h:191
void insertCursor(Kate::TextCursor *cursor)
Insert cursor into this block.
Definition katetextblock.h:179
KTextEditor::MovingRange * range() const override
Get range this cursor belongs to, if any.
Definition katetextcursor.cpp:109
KTextEditor::Document * document() const override
Gets the document to which this cursor is bound.
Definition katetextcursor.cpp:104
void setPosition(const TextCursor &position)
Fast way to set the current cursor position to position.
Definition katetextcursor.cpp:43
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 Sat Dec 21 2024 17:01:55 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:55 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.