Kate
katetextcursor.h
Go to the documentation of this file.
47 // this is a friend, because this is needed to efficiently transfer cursors from on to an other block
58 TextCursor (TextBuffer &buffer, TextRange *range, const KTextEditor::Cursor &position, InsertBehavior insertBehavior);
67 TextCursor (TextBuffer &buffer, const KTextEditor::Cursor &position, InsertBehavior insertBehavior);
78 void setInsertBehavior (InsertBehavior insertBehavior) { m_moveOnInsert = insertBehavior == MoveOnInsert; }
114 void setPosition (int line, int column) { KTextEditor::MovingCursor::setPosition (line, column); }
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:114
int column() const
Retrieve the column on which this cursor is situated.
Definition: katetextcursor.h:141
TextBlock * block() const
Get block this cursor belongs to, if any.
Definition: katetextcursor.h:165
int lineInternal() const
Non-virtual version of line(), which is faster.
Definition: katetextcursor.h:127
InsertBehavior
int lineInBlock() const
Get offset into block this cursor belongs to, if any.
Definition: katetextcursor.h:171
Kate::TextRange * kateRange() const
Get range this cursor belongs to, if any.
Definition: katetextcursor.h:159
void setInsertBehavior(InsertBehavior insertBehavior)
Set insert behavior.
Definition: katetextcursor.h:78
virtual void setPosition(const KTextEditor::Cursor &position)=0
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-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:52 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.