KTextEditor
katetextrange.h
48 * @param insertBehavior Define whether the range should expand when text is inserted adjacent to the range.
51 TextRange(TextBuffer &buffer, KTextEditor::Range range, InsertBehaviors insertBehavior, EmptyBehavior emptyBehavior = AllowEmpty);
162 auto startCursor = KTextEditor::Cursor(startInternal().lineInternal(), startInternal().columnInternal());
163 auto endCursor = KTextEditor::Cursor(endInternal().lineInternal(), endInternal().columnInternal());
168 * Convert this clever range into a dumb one. Equal to toRange, allowing to use implicit conversion.
177 * Gets the active view for this range. Might be already invalid, internally only used for pointer comparisons.
236 * This will trigger evaluation if feedback must be send again (for example if mouse is already inside range).
300 * @param oldLineRange line range of this range before changing of cursors, needed to add/remove range from m_ranges in blocks, required!
void setRange(const KTextEditor::Cursor &start, const KTextEditor::Cursor &end)
This is an overloaded member function, provided for convenience. It differs from the above function o...
Definition: katetextrange.h:107
const KTextEditor::MovingCursor & end() const override
Retrieve end cursor of this range, read-only.
Definition: katetextrange.h:134
const TextCursor & endInternal() const
Nonvirtual version of end(), which is faster.
Definition: katetextrange.h:143
Q_SCRIPTABLE Q_NOREPLY void start()
An object representing lines from a start line to an end line.
Definition: linerange.h:37
EmptyBehavior emptyBehavior() const override
Will this range invalidate itself if it becomes empty?
Definition: katetextrange.h:80
An object representing a section of text, from one Cursor to another.
Definition: include/ktexteditor/range.h:44
KTextEditor::LineRange toLineRange() const
Hides parent's impl of toLineRange() and uses non-virtual functions internally.
Definition: katetextrange.h:151
KTextEditor::Attribute::Ptr attribute() const override
Gets the active Attribute for this range.
Definition: katetextrange.h:201
const KTextEditor::Range toRange() const
Convert this clever range into a dumb one.
Definition: katetextrange.h:160
The KTextEditor namespace contains all the public API that is required to use the KTextEditor compone...
Definition: katetextblock.h:22
const KTextEditor::MovingCursor & start() const override
Retrieve start cursor of this range, read-only.
Definition: katetextrange.h:116
A class which provides notifications of state changes to a MovingRange.
Definition: movingrangefeedback.h:35
KTextEditor::MovingRangeFeedback * feedback() const override
Gets the active MovingRangeFeedback for this range.
Definition: katetextrange.h:229
A range that is bound to a specific Document, and maintains its position.
Definition: movingrange.h:144
const TextCursor & startInternal() const
Non-virtual version of start(), which is faster.
Definition: katetextrange.h:125
KTextEditor::View * view() const override
Gets the active view for this range.
Definition: katetextrange.h:181
virtual void setRange(const KTextEditor::Range &range)=0
Set the range of this range.
A Cursor which is bound to a specific Document, and maintains its position.
Definition: movingcursor.h:54
bool attributeOnlyForViews() const override
Is this range's attribute only visible in views, not for example prints? Default is false.
Definition: katetextrange.h:248
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Mar 22 2023 03:54:39 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Wed Mar 22 2023 03:54:39 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.