KTextEditor
Go to the documentation of this file.
24 #ifndef KDELIBS_KTEXTEDITOR_CURSOR_H
25 #define KDELIBS_KTEXTEDITOR_CURSOR_H
77 Cursor(
int line,
int column);
100 virtual bool isValid()
const;
105 virtual bool isSmartCursor()
const;
135 virtual void setPosition(
const Cursor& position);
145 void setPosition(
int line,
int column);
151 virtual int line()
const;
157 virtual void setLine(
int line);
169 virtual void setColumn(
int column);
175 bool atStartOfLine()
const;
181 bool atStartOfDocument()
const;
188 void position (
int &line,
int &column)
const;
194 Range* range()
const;
203 { setPosition(cursor);
return *
this; }
263 {
return !(c1 == c2); }
293 {
return !(c1 >= c2); }
303 {
return !(c1 > c2); }
308 inline friend QDebug operator<< (QDebug s,
const Cursor& cursor) {
310 s.nospace() <<
"(" << cursor.
line() <<
", " << cursor.
column() <<
")";
312 s.nospace() <<
"(null cursor)";
324 virtual void setRange(
Range* range);
331 void cursorChangedDirectly(
const Cursor& from);
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Mon Jul 15 2013 05:15:46 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.