Fl_Osc_Roller.H (1004B)
1 /* 2 ZynAddSubFX - a software synthesizer 3 4 Fl_Osc_Roller.H - OSC Powered Roller 5 Copyright (C) 2016 Mark McCurry 6 7 This program is free software; you can redistribute it and/or 8 modify it under the terms of the GNU General Public License 9 as published by the Free Software Foundation; either version 2 10 of the License, or (at your option) any later version. 11 */ 12 #pragma once 13 #include <FL/Fl_Roller.H> 14 #include "Fl_Osc_Widget.H" 15 16 class Fl_Osc_Roller:public Fl_Roller, Fl_Osc_Widget 17 { 18 19 public: 20 Fl_Osc_Roller(int X, int Y, int W, int H, const char *label = NULL); 21 virtual ~Fl_Osc_Roller(void); 22 void init(const char *path); 23 //void OSC_value(float); 24 void OSC_value(char) override; 25 using Fl_Osc_Widget::OSC_value; 26 27 //Refetch parameter information 28 void update(void); 29 void callback(Fl_Callback *cb, void *p = NULL); 30 31 void cb(void); 32 private: 33 std::string name; 34 std::pair<Fl_Callback*, void*> cb_data; 35 };