LMMS
Loading...
Searching...
No Matches
Fl_Osc_Choice.H
Go to the documentation of this file.
1/*
2 ZynAddSubFX - a software synthesizer
3
4 Fl_Osc_Choice.H - OSC Powered Dropdown Choice
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_Choice.H>
14#include "Fl_Osc_Widget.H"
15#include <string>
16
17class Fl_Osc_Choice:public Fl_Choice, public Fl_Osc_Widget
18{
19
20 public:
21 Fl_Osc_Choice(int X, int Y, int W, int H, const char *label = NULL);
22 virtual ~Fl_Osc_Choice(void);
23 //Base is for braindead choices that don't actually start at zero
24 void init(std::string path, int base =0);
25
26
27 //void OSC_value(float);
28 void OSC_value(int);
29 void OSC_value(char);
30
31 //Refetch parameter information
32 void update(void);
33 void callback(Fl_Callback *cb, void *p = NULL);
34
35 virtual void cb(void);
36 private:
37 int min;
38 protected:
39 std::pair<Fl_Callback*, void*> cb_data;
40};
#define NULL
Definition CarlaBridgeFormat.cpp:30
virtual ~Fl_Osc_Choice(void)
Definition Fl_Osc_Choice.cpp:44
std::pair< Fl_Callback *, void * > cb_data
Definition Fl_Osc_Choice.H:39
void update(void)
Definition Fl_Osc_Choice.cpp:75
virtual void cb(void)
Definition Fl_Osc_Choice.cpp:67
int min
Definition Fl_Osc_Choice.H:37
void OSC_value(int)
Definition Fl_Osc_Choice.cpp:53
Fl_Osc_Choice(int X, int Y, int W, int H, const char *label=NULL)
Definition Fl_Osc_Choice.cpp:26
Fl_Osc_Widget(void)
Definition Fl_Osc_Widget.cpp:16
#define X(str)
Definition juce_LV2Common.h:197
RECT const char void(* callback)(const char *droppath))) SWELL_API_DEFINE(BOOL
Definition swell-functions.h:1004
uch * p
Definition crypt.c:594
ZCONST uch * init
Definition extract.c:2392