forked from smcameron/space-nerds-in-space
-
Notifications
You must be signed in to change notification settings - Fork 0
/
snis_sliders.h
29 lines (22 loc) · 900 Bytes
/
snis_sliders.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
#ifndef SNIS_SLIDERS_H__
#define SNIS_SLIDERS_H__
#ifdef DEFINE_SLIDERS_GLOBALS
#define GLOBAL
#else
#define GLOBAL extern
#endif
struct slider;
typedef void (*slider_clicked_function)(struct slider *s);
typedef double (*slider_monitor_function)(void);
GLOBAL struct slider *snis_slider_init(int x, int y, int length, int color,
char *label, char *l1, char *l2, double r1, double r2,
slider_monitor_function gmf, slider_clicked_function clicked);
GLOBAL void snis_slider_draw(GtkWidget *w, GdkGC *gc, struct slider *s);
GLOBAL double snis_slider_get_value(struct slider *s);
GLOBAL double snis_slider_get_input(struct slider *s);
GLOBAL void snis_draw_sliders(GtkWidget *w, GdkGC *gc);
GLOBAL int snis_slider_button_press(struct slider *s, int x, int y);
GLOBAL void snis_slider_set_sound(int sound);
GLOBAL void snis_slider_set_input(struct slider *s, double input);
#undef GLOBAL
#endif