-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMyAppWindow.h
44 lines (32 loc) · 973 Bytes
/
MyAppWindow.h
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
39
40
41
42
43
44
#pragma once
#ifndef __MYAPPWINDOW__
#define __MYAPPWINDOW__
#include "MyGlWindow.h"
class MyAppWindow : public Fl_Window{
MyGlWindow* myGL;
Fl_Input* ip_address;
Fl_Value_Slider* left_smile;
Fl_Value_Slider* right_smile;
Fl_Value_Slider* browsup_slider;
Fl_Value_Slider* mouthopen_slider;
Fl_Value_Slider* puff_slider;
Fl_Value_Slider* sneer_slider;
Fl_Value_Slider* kiss_slider;
Fl_Check_Button* stream_check;
vector<Fl_Value_Slider*> sliders;
void valueChanged();
static void valueChanged_callback(Fl_Widget*, void* userData){
MyAppWindow* app = (MyAppWindow*)userData;
app->valueChanged();
}
static void static_callback(Fl_Widget* w, void* data){
Fl_Input* target = (Fl_Input*)data;
MyAppWindow* app = (MyAppWindow*)target->parent();
app->checkbutton_cb(w, target);
}
public:
MyAppWindow(int W, int H, const char* L = 0);
void setSliders(vector<GLfloat> uniforms);
void checkbutton_cb(Fl_Widget* w, Fl_Input* target);
};
#endif