KTextEditor

movingrangefeedback.h
1 /*
2  SPDX-FileCopyrightText: 2010 Christoph Cullmann <[email protected]>
3 
4  Based on code of the SmartCursor/Range by:
5  SPDX-FileCopyrightText: 2003-2005 Hamish Rodda <[email protected]>
6 
7  SPDX-License-Identifier: LGPL-2.0-or-later
8 */
9 
10 #ifndef KTEXTEDITOR_MOVINGRANGEFEEDBACK_H
11 #define KTEXTEDITOR_MOVINGRANGEFEEDBACK_H
12 
13 #include <ktexteditor_export.h>
14 
15 namespace KTextEditor
16 {
17 class View;
18 class MovingRange;
19 
35 class KTEXTEDITOR_EXPORT MovingRangeFeedback
36 {
37 public:
42 
46  virtual ~MovingRangeFeedback();
47 
55  virtual void rangeEmpty(MovingRange *range);
56 
63  virtual void rangeInvalid(MovingRange *range);
64 
71  virtual void mouseEnteredRange(MovingRange *range, View *view);
72 
79  virtual void mouseExitedRange(MovingRange *range, View *view);
80 
87  virtual void caretEnteredRange(MovingRange *range, View *view);
88 
95  virtual void caretExitedRange(MovingRange *range, View *view);
96 
97 private:
101  class MovingRangeFeedbackPrivate *const d = nullptr;
102 };
103 
104 }
105 
106 #endif
void rangeInvalid(KTextEditor::MovingRange *movingRange) override
The range is now invalid (ie.
MovingRangeFeedback()
Default constructor.
A class which provides notifications of state changes to a MovingRange.
A range that is bound to a specific Document, and maintains its position.
Definition: movingrange.h:143
virtual void mouseEnteredRange(MovingRange *range, View *view)
The mouse cursor on view entered range.
void rangeEmpty(KTextEditor::MovingRange *movingRange) override
The range is now empty (ie.
virtual void mouseExitedRange(MovingRange *range, View *view)
The mouse cursor on view exited range.
virtual void caretExitedRange(MovingRange *range, View *view)
The caret on view exited range.
The KTextEditor namespace contains all the public API that is required to use the KTextEditor compone...
virtual ~MovingRangeFeedback()
Virtual destructor.
virtual void caretEnteredRange(MovingRange *range, View *view)
The caret on view entered range.
A text widget with KXMLGUIClient that represents a Document.
Definition: view.h:143
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Aug 12 2020 22:57:37 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.