-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvdcapp.h
45 lines (39 loc) · 1002 Bytes
/
vdcapp.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
45
#ifndef VEIKK_DRIVER_CONFIG_VDCAPP_H
#define VEIKK_DRIVER_CONFIG_VDCAPP_H
enum setting {
SET_ORIENTATION,
SET_MAP_SCREEN,
SET_MAP_PRESSURE
};
enum orientation {
ORI_DEFAULT,
ORI_ROT_RIGHT,
ORI_REVERSED,
ORI_ROT_LEFT,
};
// store all settings in a global struct
struct vdc_settings {
// orientation
enum orientation orientation;
// screen mapping
GdkRectangle rect;
GdkRectangle screen;
};
extern struct vdc_settings vdc_settings;
void vdc_settings_set_default(void);
void vdc_write_setting(enum setting, const gchararray);
// make gtk widgets available
struct vdc_gtk_widgets {
GtkWidget *screen_width, *screen_height,
*da_x, *da_y, *da_width, *da_height;
};
extern struct vdc_gtk_widgets vdc_gtk_widgets;
// for screen area selection
struct select_data {
GdkRectangle rect;
GdkRectangle screen;
gboolean started;
GtkWidget *window;
};
void select_area(struct select_data *);
#endif //VEIKK_DRIVER_CONFIG_VDCAPP_H