KTextEditor
movingrange.h
Go to the documentation of this file.
A Cursor which is bound to a specific Document, and maintains its position.
Definition movingcursor.h:67
A class which provides notifications of state changes to a MovingRange.
Definition movingrangefeedback.h:49
virtual EmptyBehavior emptyBehavior() const =0
Will this range invalidate itself if it becomes empty?
bool containsColumn(int column) const
Check whether the range contains column.
Definition movingrange.h:422
virtual void setAttribute(Attribute::Ptr attribute)=0
Sets the currently active attribute for this range.
virtual const MovingCursor & start() const =0
Retrieve start cursor of this range, read-only.
virtual void setAttributeOnlyForViews(bool onlyForViews)=0
Set if this range's attribute is only visible in views, not for example prints.
bool isEmpty() const
Returns true if this range contains no characters, ie.
Definition movingrange.h:371
virtual void setInsertBehaviors(InsertBehaviors insertBehaviors)=0
Set insert behaviors.
bool overlapsColumn(int column) const
Check to see if this range overlaps column; that is, if column is between start()....
Definition movingrange.h:456
virtual void setView(View *view)=0
Sets the currently active view for this range.
bool contains(const Cursor &cursor) const
Check to see if cursor is contained within this range, ie >= start() and < end().
Definition movingrange.h:400
bool containsLine(int line) const
Returns true if this range wholly encompasses line.
Definition movingrange.h:411
virtual const MovingCursor & end() const =0
Retrieve end cursor of this range, read-only.
virtual MovingRangeFeedback * feedback() const =0
Gets the active MovingRangeFeedback for this range.
bool overlapsLine(int line) const
Check whether the range overlaps at least part of line.
Definition movingrange.h:442
virtual Attribute::Ptr attribute() const =0
Gets the active Attribute for this range.
virtual void setRange(const KTextEditor::Range &range)=0
Set the range of this range.
virtual void setFeedback(MovingRangeFeedback *feedback)=0
Sets the currently active MovingRangeFeedback for this range.
virtual void setZDepth(qreal zDepth)=0
Set the current Z-depth of this range.
virtual Document * document() const =0
Gets the document to which this range is bound.
bool contains(const Range &range) const
Check whether the this range wholly encompasses range.
Definition movingrange.h:389
virtual bool attributeOnlyForViews() const =0
Is this range's attribute only visible in views, not for example prints?
virtual void setEmptyBehavior(EmptyBehavior emptyBehavior)=0
Set if this range will invalidate itself if it becomes empty.
virtual qreal zDepth() const =0
Gets the current Z-depth of this range.
virtual InsertBehaviors insertBehaviors() const =0
Get current insert behaviors.
bool onSingleLine() const
Check whether the start() and end() cursors of this range are on the same line.
Definition movingrange.h:467
InsertBehavior
Determine how the range reacts to characters inserted immediately outside the range.
Definition movingrange.h:129
@ DoNotExpand
Don't expand to encapsulate new characters in either direction. This is the default.
Definition movingrange.h:131
@ ExpandRight
Expand to encapsulate new characters to the right of the range.
Definition movingrange.h:135
@ ExpandLeft
Expand to encapsulate new characters to the left of the range.
Definition movingrange.h:133
An object representing a section of text, from one Cursor to another.
Definition range.h:55
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 17 2025 00:00:00 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.