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

xtLcd.h (761B)


      1 #pragma once
      2 
      3 #include <array>
      4 #include <cstdint>
      5 #include <string>
      6 #include <vector>
      7 
      8 #include "jucePluginEditorLib/lcd.h"
      9 
     10 namespace xtJucePlugin
     11 {
     12 	class Controller;
     13 
     14 	class XtLcd final : public jucePluginEditorLib::Lcd
     15 	{
     16 	public:
     17 		explicit XtLcd(Component& _parent, Controller& _controller);
     18 		~XtLcd() override;
     19 
     20 		void refresh();
     21 		void setText(const std::array<uint8_t, 80> &_text);
     22 
     23 		bool getOverrideText(std::vector<std::vector<uint8_t>>& _lines) override;
     24 		const uint8_t* getCharacterData(uint8_t _character) const override;
     25 
     26 		void setCurrentParameter(const std::string& _name, const std::string& _value);
     27 
     28 	private:
     29 		std::array<uint8_t, 80> m_currentText;
     30 		Controller& m_controller;
     31 		std::string m_paramName;
     32 		std::string m_paramValue;
     33 	};
     34 }