KTextEditor::MovingRangeFeedback Class
class KTextEditor::MovingRangeFeedbackA class which provides notifications of state changes to a MovingRange. More...
Header: | #include <KTextEditor/MovingRangeFeedback> |
CMake: | find_package(KF6 REQUIRED COMPONENTS TextEditor) target_link_libraries(mytarget PRIVATE KF6::TextEditor) |
Since: | 4.5 |
Public Functions
MovingRangeFeedback() | |
virtual | ~MovingRangeFeedback() |
virtual void | caretEnteredRange(KTextEditor::MovingRange *range, KTextEditor::View *view) |
virtual void | caretExitedRange(KTextEditor::MovingRange *range, KTextEditor::View *view) |
virtual void | mouseEnteredRange(KTextEditor::MovingRange *range, KTextEditor::View *view) |
virtual void | mouseExitedRange(KTextEditor::MovingRange *range, KTextEditor::View *view) |
virtual void | rangeEmpty(KTextEditor::MovingRange *range) |
virtual void | rangeInvalid(KTextEditor::MovingRange *range) |
Detailed Description
This class provides notifications of changes to the position or contents of a MovingRange.
Before destruction, you must unregister the feedback class from any range using it.
Member Function Documentation
MovingRangeFeedback::MovingRangeFeedback()
Default constructor
[virtual noexcept]
MovingRangeFeedback::~MovingRangeFeedback()
Virtual destructor
[virtual]
void MovingRangeFeedback::caretEnteredRange(KTextEditor::MovingRange *range, KTextEditor::View *view)
The caret on view entered range.
range is the pointer to the range which generated the notification.
view is the view over which the mouse moved to generate the notification
[virtual]
void MovingRangeFeedback::caretExitedRange(KTextEditor::MovingRange *range, KTextEditor::View *view)
The caret on view exited range.
range is the pointer to the range which generated the notification.
view is the view over which the mouse moved to generate the notification
[virtual]
void MovingRangeFeedback::mouseEnteredRange(KTextEditor::MovingRange *range, KTextEditor::View *view)
The mouse cursor on view entered range.
range is a pointer to the range which generated the notification.
view is the view over which the mouse moved to generate the notification
[virtual]
void MovingRangeFeedback::mouseExitedRange(KTextEditor::MovingRange *range, KTextEditor::View *view)
The mouse cursor on view exited range.
range is the pointer to the range which generated the notification.
view is the view over which the mouse moved to generate the notification
[virtual]
void MovingRangeFeedback::rangeEmpty(KTextEditor::MovingRange *range)
The range is now empty (ie. the start and end cursors are the same). If the range has invalidateIfEmpty set, this will never be emitted, but instead rangeInvalid is triggered. You may delete the range inside this method, but don't alter the range here (for example by using setRange).
range is a pointer to the range which generated the notification.
[virtual]
void MovingRangeFeedback::rangeInvalid(KTextEditor::MovingRange *range)
The range is now invalid (ie. the start and end cursors are invalid). You may delete the range inside this method, but don't alter the range here (for example by using setRange).
range is a pointer to the range which generated the notification.