KTextEditor
katetextline.h
62 enum Flags { flagAutoWrapped = 1, flagFoldingStartAttribute = 2, flagFoldingEndAttribute = 4, flagLineModified = 8, flagLineSavedOnDisk = 16 };
Attribute(int _offset=0, int _length=0, int _attributeValue=0)
Attribute constructor.
Definition katetextline.h:36
int attribute(int pos) const
Gets the attribute at the given position use KRenderer::attributes to get the KTextAttribute for this...
Definition katetextline.cpp:181
const QString & text() const
Accessor to the text contained in this line.
Definition katetextline.h:83
bool endsWith(const QString &match) const
Returns true, if the line ends with match, otherwise returns false.
Definition katetextline.h:286
const QList< Attribute > & attributesList() const
Accessor to attributes.
Definition katetextline.h:327
void setHighlightingState(const KSyntaxHighlighting::State &val)
Sets the syntax highlight context number.
Definition katetextline.h:304
bool markedAsFoldingEndAttribute() const
Is on this line a folding end per attribute?
Definition katetextline.h:200
int virtualLength(int tabWidth) const
Returns the text length with each tab expanded into tabWidth characters.
Definition katetextline.cpp:152
int indentDepth(int tabWidth) const
Returns the indentation depth with each tab expanded into tabWidth characters.
Definition katetextline.cpp:59
QString string(int column, int length) const
Returns the substring with length beginning at the given column.
Definition katetextline.h:237
int previousNonSpaceChar(int pos) const
Find the position of the previous char that is not a space.
Definition katetextline.cpp:35
bool isAutoWrapped() const
Returns true, if the line was automagically wrapped, otherwise returns false.
Definition katetextline.h:226
bool startsWith(const QString &match) const
Returns true, if the line starts with match, otherwise returns false.
Definition katetextline.h:278
int lastChar() const
Returns the position of the last non-whitespace character.
Definition katetextline.cpp:17
void clearMarkedAsFoldingStartAndEnd()
Clear folding start and end status.
Definition katetextline.h:173
const KSyntaxHighlighting::State & highlightingState() const
context stack
Definition katetextline.h:295
void markAsFoldingStartAttribute()
Mark as folding start line of an attribute based folding.
Definition katetextline.h:191
int firstChar() const
Returns the position of the first non-whitespace character.
Definition katetextline.cpp:12
void markAsFoldingEndAttribute()
Mark as folding end line of an attribute based folding.
Definition katetextline.h:208
void addAttribute(const Attribute &attribute)
Add attribute to this line.
Definition katetextline.cpp:169
int toVirtualColumn(int column, int tabWidth) const
Returns the column with each tab expanded into tabWidth characters.
Definition katetextline.cpp:105
bool matchesAt(int column, const QString &match) const
Returns true, if match equals to the text at position column, otherwise returns false.
Definition katetextline.cpp:80
int nextNonSpaceChar(int pos) const
Find the position of the next char that is not a space.
Definition katetextline.cpp:22
bool markedAsFoldingStartAttribute() const
Is on this line a folding start per attribute?
Definition katetextline.h:183
int fromVirtualColumn(int column, int tabWidth) const
Returns the "real" column where each tab only counts one character.
Definition katetextline.cpp:126
const QChar at(qsizetype position) const const
bool endsWith(QChar c, Qt::CaseSensitivity cs) const const
qsizetype length() const const
QString mid(qsizetype position, qsizetype n) const const
bool startsWith(QChar c, Qt::CaseSensitivity cs) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:17:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:17:27 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.