Loading...
Searching...
No Matches
juce::ScrollBar::Listener Class Referenceabstract

Detailed Description

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.

See also
ScrollBar::addListener, ScrollBar::removeListener
Inheritance diagram for juce::ScrollBar::Listener:

Public Member Functions

virtual ~Listener ()=default
 Destructor.
virtual void scrollBarMoved (ScrollBar *scrollBarThatHasMoved, double newRangeStart)=0
 Called when a ScrollBar is moved.

Constructors and Destructors

◆ ~Listener()

virtual juce::ScrollBar::Listener::~Listener ( )
virtualdefault

Destructor.

Member Functions

◆ scrollBarMoved()

virtual void juce::ScrollBar::Listener::scrollBarMoved ( ScrollBar * scrollBarThatHasMoved,
double newRangeStart )
pure virtual

Called when a ScrollBar is moved.

Parameters
scrollBarThatHasMovedthe bar that has moved
newRangeStartthe new range start of this bar

Implemented in juce::Viewport.

References juce::ScrollBar::ScrollBar().

linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram