Vital
Loading...
Searching...
No Matches
ModulationViewport Class Reference

A specialized viewport for the modulation matrix allowing for scroll listeners. More...

#include <modulation_matrix.h>

Inheritance diagram for ModulationViewport:

Classes

class  Listener
 A listener interface for responding to scrolling events in the modulation viewport. More...
 

Public Member Functions

void mouseWheelMove (const MouseEvent &e, const MouseWheelDetails &wheel) override
 Handles mouse wheel movement, notifying listeners before and after scrolling.
 
void addListener (Listener *listener)
 Adds a listener to be notified of scrolling changes.
 
void visibleAreaChanged (const Rectangle< int > &visible_area) override
 Called when the visible area changes, updating listeners with the new scroll position.
 

Detailed Description

A specialized viewport for the modulation matrix allowing for scroll listeners.

Member Function Documentation

◆ addListener()

void ModulationViewport::addListener ( Listener * listener)
inline

Adds a listener to be notified of scrolling changes.

Parameters
listenerThe listener to add.

◆ mouseWheelMove()

void ModulationViewport::mouseWheelMove ( const MouseEvent & e,
const MouseWheelDetails & wheel )
inlineoverride

Handles mouse wheel movement, notifying listeners before and after scrolling.

Parameters
eThe mouse event.
wheelDetails about the wheel movement.

◆ visibleAreaChanged()

void ModulationViewport::visibleAreaChanged ( const Rectangle< int > & visible_area)
inlineoverride

Called when the visible area changes, updating listeners with the new scroll position.

Parameters
visible_areaThe new visible area.

The documentation for this class was generated from the following file: