KTextEditor
katetextlayout.cpp
42 return realCursor.line() == line() && realCursor.column() >= startCol() && (!wrap() || realCursor.column() < endCol());
56 qCDebug(LOG_KTE) << "KateTextLayout: " << m_lineLayout << " valid " << isValid() << " line " << m_lineLayout->line() << " (" << line() << ") cols ["
57 << startCol() << " -> " << endCol() << "] x [" << startX() << " -> " << endX() << " off " << m_lineLayout->shiftX << "] wrap " << wrap();
82 return m_lineLayout && m_lineLayout->isValid() && m_viewLine >= 0 && m_viewLine < m_lineLayout->viewLineCount();
constexpr int column() const noexcept
Retrieve the column on which this cursor is situated.
Definition cursor.h:192
constexpr int line() const noexcept
Retrieve the line on which this cursor is situated.
Definition cursor.h:174
This class represents one visible line of text; with dynamic wrapping, many KateTextLayouts can be ne...
Definition katetextlayout.h:21
KTextEditor::Cursor end(bool indicateEOL=false) const
Return the end position of this text line.
Definition katetextlayout.cpp:151
int endCol(bool indicateEOL=false) const
Return the end column of this text line.
Definition katetextlayout.cpp:136
int viewLine() const
Return the index of this visual line inside the document line (KateLineLayout).
Definition katetextlayout.cpp:103
bool isValid(QStringView ifopt)
bool operator<(const PosRange< Trait > &l, const PosRange< Trait > &r)
QTextLine lineAt(int i) const const
qreal naturalTextWidth() const const
int textLength() const const
int textStart() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:11:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:11:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.