Pages
API Documentation
On this page

KTextEditor::MovingRangeFeedback Class

A 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)
  • Group: MovingRangeFeedback is part of kte_group_moving_classes

List of all members, including inherited members

Public Functions

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.

We use cookies to personalize content and to analyze our traffic. Please decide if you are willing to accept cookies from our website.