KTextEditor
Go to the documentation of this file.
27 using namespace KTextEditor;
53 : m_start(new
Cursor(start))
54 , m_end(new
Cursor(start.line(), start.column() + width))
61 : m_start(new
Cursor(start))
62 , m_end(new
Cursor(endLine, endColumn))
74 Range::Range(
int startLine,
int startColumn,
int endLine,
int endColumn)
75 : m_start(new
Cursor(startLine, startColumn))
76 , m_end(new
Cursor(endLine, endColumn))
103 : m_start(new
Cursor(copy.start()))
157 return cursor >=
start() && cursor <
end();
175 else if (range.
end() >=
end())
184 return cursor ==
start() || cursor ==
end();
199 else if (
end() > range.
end())
214 else if (
end() < range.
end())
228 }
else if (c ==
m_end) {
241 return start().line() ==
end().line();
246 return end().column() - start().column();
251 return end().line() - start().line();
256 return start() ==
end();
264 if (
start() > cursor)
272 if (
end().line() < line)
275 if (
start().line() > line)
283 setRange(
Range(start().line(), column,
end().line(), column));
318 if (!isValid() || !range.
isValid() || *
this > range || *
this < range)
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sun Apr 28 2013 14:32:00 by
doxygen 1.8.1.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.