-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfadercell.h
More file actions
38 lines (31 loc) · 716 Bytes
/
Copy pathfadercell.h
File metadata and controls
38 lines (31 loc) · 716 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef _FADERCELL_H
#define _FADERCELL_H
#include <gtkmm.h>
#include <glibmm/ustring.h>
#include <iomanip>
#include "audioclass.h"
using Glib::ustring;
class FaderCell : public Gtk::Bin
{
public:
FaderCell(AudioClass& card, int source, int dest);
void set_value(double value, bool write_hw = false);
long int get_value();
//Signal handlers:
bool on_fadercell_clicked(GdkEventButton *ev);
bool on_fadercell_motion(GdkEventMotion *ev);
protected:
private:
Gtk::EventBox m_eventbox;
Gtk::Label m_label;
double m_value;
int m_source;
int m_dest;
AudioClass& m_card;
Glib::ustring m_string_value;
bool _dragging = false;
int _last_x;
int _last_y;
double _last_value;
};
#endif /* _FADERCELL_H */