LMMS
Loading...
Searching...
No Matches
Fl_Osc_Counter.H
Go to the documentation of this file.
1/*
2 ZynAddSubFX - a software synthesizer
3
4 Fl_Osc_Counter.H - OSC Powered Counter
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_Counter.H>
14#include "Fl_Osc_Widget.H"
15#include <string>
16
17class Fl_Osc_Counter: public Fl_Counter, public Fl_Osc_Widget
18{
19 public:
20 Fl_Osc_Counter(int x, int y, int w, int h, const char *label=0);
21 void init(const char *path_, char type_ = 'i', int display_off = 0);
22 void OSC_value(char);
23 void OSC_value(int);
25
26 //Refetch parameters
27 void update(void);
28 void callback(Fl_Callback *cb, void *p = NULL);
29
30 void cb(void);
31 char cb_type;
32 private:
33 int offset;
34 std::pair<Fl_Callback*, void*> cb_data;
35};
#define NULL
Definition CarlaBridgeFormat.cpp:30
void cb(void)
Definition Fl_Osc_Counter.cpp:54
char cb_type
Definition Fl_Osc_Counter.H:31
std::pair< Fl_Callback *, void * > cb_data
Definition Fl_Osc_Counter.H:34
void update(void)
Definition Fl_Osc_Counter.cpp:25
void OSC_value(char)
Definition Fl_Osc_Counter.cpp:49
int offset
Definition Fl_Osc_Counter.H:33
Fl_Osc_Counter(int x, int y, int w, int h, const char *label=0)
Definition Fl_Osc_Counter.cpp:19
Fl_Osc_Widget(void)
Definition Fl_Osc_Widget.cpp:16
virtual void OSC_value(float)
Definition Fl_Osc_Widget.cpp:41
UINT_D64 w
Definition inflate.c:942
int y
Definition inflate.c:1588
unsigned x[BMAX+1]
Definition inflate.c:1586
RECT const char void(* callback)(const char *droppath))) SWELL_API_DEFINE(BOOL
Definition swell-functions.h:1004
uch * p
Definition crypt.c:594
uch h[RAND_HEAD_LEN]
Definition crypt.c:459
ZCONST uch * init
Definition extract.c:2392