KTextEditor
Go to the documentation of this file.
24 #ifndef KDELIBS_KTEXTEDITOR_MOVINGCURSOR_H
25 #define KDELIBS_KTEXTEDITOR_MOVINGCURSOR_H
97 virtual void setInsertBehavior (InsertBehavior insertBehavior) = 0;
103 virtual InsertBehavior insertBehavior ()
const = 0;
109 virtual Document *document ()
const = 0;
128 virtual int line()
const = 0;
134 virtual int column()
const = 0;
172 return line() >= 0 && column() >= 0;
181 return isValid() && line() < document()->lines() && column() <= document()->lineLength(line());
192 void setPosition (
int line,
int column);
198 void setLine(
int line);
204 void setColumn(
int column);
211 bool atStartOfLine()
const;
218 bool atEndOfLine()
const;
225 bool atStartOfDocument()
const;
233 bool atEndOfDocument()
const;
251 bool gotoPreviousLine();
264 bool move(
int chars, WrapBehavior wrapBehavior = Wrap);
303 {
return !(c1 == c2); }
333 {
return !(c1 >= c2); }
343 {
return !(c1 > c2); }
351 inline friend QDebug operator<< (QDebug s,
const MovingCursor *cursor) {
353 s.nospace() <<
"(" << cursor->
line() <<
", " << cursor->
column() <<
")";
355 s.nospace() <<
"(null cursor)";
365 inline friend QDebug operator<< (QDebug s,
const MovingCursor &cursor) {
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Fri Jul 12 2013 08:57:36 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.