KTextEditor
8#include <ktexteditor/range.h>
9#include <vimode/range.h>
11using namespace KateVi;
14 : Range(-1, -1, -1, -1, InclusiveMotion)
18Range::Range(
int slin,
int scol,
int elin,
int ecol, MotionType inc)
30 : Range(-1, -1, elin, ecol, inc)
35 : Range(-1, -1, c.line(), c.column(), mt)
40 : Range(c1.line(), c1.column(), c2.line(), c2.column(), mt)
44void Range::normalize()
63 startColumn = qMin(sc, ec);
64 endColumn = qMax(sc, ec);
69KTextEditor::Range Range::toEditorRange()
const
71 return KTextEditor::Range(startLine, startColumn, endLine, endColumn);
84 <<
" (" << range.startLine <<
", " << range.startColumn <<
")"
86 <<
" (" << range.endLine <<
", " << range.endColumn <<
")"
88 <<
" (" << (range.motionType == InclusiveMotion ?
"Inclusive" :
"Exclusive") <<
") (jump: " << (range.jump ?
"true" :
"false") <<
")";
The Cursor represents a position in a Document.
constexpr Range() noexcept=default
Default constructor.
QDebug operator<<(QDebug dbg, const DcrawInfoContainer &c)
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 21 2025 11:52:52 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.