KTextEditor
cursor.h
constexpr friend bool operator<(Cursor c1, Cursor c2) noexcept
Less than operator.
Definition cursor.h:341
constexpr friend bool operator>(Cursor c1, Cursor c2) noexcept
Greater than operator.
Definition cursor.h:317
friend Cursor & operator-=(Cursor &c1, Cursor c2) noexcept
Subtraction assignment operator.
Definition cursor.h:278
constexpr friend bool operator==(Cursor c1, Cursor c2) noexcept
Equality operator.
Definition cursor.h:294
constexpr int column() const noexcept
Retrieve the column on which this cursor is situated.
Definition cursor.h:192
constexpr bool atStartOfLine() const noexcept
Determine if this cursor is located at the start of a line (= at column 0).
Definition cursor.h:210
void setPosition(Cursor position) noexcept
Set the current cursor position to position.
Definition cursor.h:150
constexpr friend bool operator!=(Cursor c1, Cursor c2) noexcept
Inequality operator.
Definition cursor.h:305
constexpr friend Cursor operator-(Cursor c1, Cursor c2) noexcept
Subtraction operator.
Definition cursor.h:267
friend Cursor & operator+=(Cursor &c1, Cursor c2) noexcept
Addition assignment operator.
Definition cursor.h:253
constexpr bool isValid() const noexcept
Returns whether the current position of this cursor is a valid position (line + column must both be >...
Definition cursor.h:102
constexpr bool atStartOfDocument() const noexcept
Determine if this cursor is located at the start of a document (= at position (0, 0)).
Definition cursor.h:219
static constexpr Cursor start() noexcept
Returns a cursor representing the start of any document - i.e., line 0, column 0.
Definition cursor.h:120
constexpr friend Cursor operator+(Cursor c1, Cursor c2) noexcept
Addition operator.
Definition cursor.h:242
constexpr friend bool operator>=(Cursor c1, Cursor c2) noexcept
Greater than or equal to operator.
Definition cursor.h:329
void setPosition(int line, int column) noexcept
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition cursor.h:164
constexpr friend bool operator<=(Cursor c1, Cursor c2) noexcept
Less than or equal to operator.
Definition cursor.h:353
void position(int &line, int &column) const noexcept
Get both the line and column of the cursor position.
Definition cursor.h:229
constexpr int line() const noexcept
Retrieve the line on which this cursor is situated.
Definition cursor.h:174
constexpr Cursor() noexcept=default
The default constructor creates a cursor at position (0, 0).
The KTextEditor namespace contains all the public API that is required to use the KTextEditor compone...
Definition katetextblock.h:18
KTEXTEDITOR_EXPORT size_t qHash(KTextEditor::Cursor cursor, size_t seed=0) noexcept
QHash function for KTextEditor::Cursor.
Definition ktexteditor.cpp:76
Range
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:56 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:01:56 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.