gearmulator

Emulation of classic VA synths of the late 90s/2000s that are based on Motorola 56300 family DSPs
Log | Files | Refs | Submodules | README | LICENSE

gridviewport.h (430B)


      1 #pragma once
      2 
      3 #include "juce_gui_basics/juce_gui_basics.h"
      4 
      5 namespace jucePluginEditorLib::patchManager
      6 {
      7 	class Grid;
      8 
      9 	class GridViewport : public juce::Viewport
     10 	{
     11 	public:
     12 		GridViewport(Grid& _grid);
     13 
     14 		void visibleAreaChanged(const juce::Rectangle<int>& _area) override;
     15 
     16 		std::pair<int, int> getItemRangeFromArea(const juce::Rectangle<int>& _area) const;
     17 
     18 		int getVisibleRowCount() const;
     19 
     20 	private:
     21 		Grid& m_grid;
     22 	};
     23 }