LMMS
Loading...
Searching...
No Matches
Fl_Osc_Check.H
Go to the documentation of this file.
1/*
2 ZynAddSubFX - a software synthesizer
3
4 Fl_Osc_Check.H - OSC Powered Check Button
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_Check_Button.H>
14#include "Fl_Osc_Widget.H"
15#include <string>
16
17using std::string; //yes this is bad form FIXME
18
19class Fl_Osc_Check:public Fl_Check_Button, public Fl_Osc_Widget
20{
21
22 public:
23 Fl_Osc_Check(int X, int Y, int W, int H, const char *label = NULL);
24 //string name,
25 // const char *metadata);
26
27 virtual ~Fl_Osc_Check(void);
28 virtual void OSC_value(bool) override;
30
31 void init(std::string loc, char type = 'T');
32 void callback(Fl_Callback *cb, void *p = NULL);
33 void cb(void);
34 static void _cb(Fl_Widget *w, void *);
35 int is_osc;
36 private:
37 std::pair<Fl_Callback*, void*> cb_data;
38 char type;
39};
#define NULL
Definition CarlaBridgeFormat.cpp:30
virtual void OSC_value(bool) override
Definition Fl_Osc_Check.cpp:30
Fl_Osc_Check(int X, int Y, int W, int H, const char *label=NULL)
Definition Fl_Osc_Check.cpp:21
std::pair< Fl_Callback *, void * > cb_data
Definition Fl_Osc_Check.H:37
int is_osc
Definition Fl_Osc_Check.H:35
char type
Definition Fl_Osc_Check.H:38
void cb(void)
Definition Fl_Osc_Check.cpp:47
virtual ~Fl_Osc_Check(void)
Definition Fl_Osc_Check.cpp:27
static void _cb(Fl_Widget *w, void *)
Definition Fl_Osc_Check.cpp:69
Fl_Osc_Widget(void)
Definition Fl_Osc_Widget.cpp:16
std::string loc
Definition Fl_Osc_Widget.H:62
virtual void OSC_value(float)
Definition Fl_Osc_Widget.cpp:41
UINT_D64 w
Definition inflate.c:942
#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