A class for receiving events from a ScrollBar. More...
Inherited by CodeEditorComponent, and Viewport [private].
Public Member Functions | |
| virtual | ~Listener () |
| Destructor. | |
| virtual void | scrollBarMoved (ScrollBar *scrollBarThatHasMoved, double newRangeStart)=0 |
| Called when a ScrollBar is moved. | |
A class for receiving events from a ScrollBar.
You can register a ScrollBar::Listener with a ScrollBar using the ScrollBar::addListener() method, and it will be called when the bar's position changes.
| virtual ScrollBar::Listener::~Listener | ( | ) | [virtual] |
Destructor.
| virtual void ScrollBar::Listener::scrollBarMoved | ( | ScrollBar * | scrollBarThatHasMoved, |
| double | newRangeStart | ||
| ) | [pure virtual] |
Called when a ScrollBar is moved.
| scrollBarThatHasMoved | the bar that has moved |
| newRangeStart | the new range start of this bar |
Implemented in Viewport, and CodeEditorComponent.