f0d936c0 |
1 | #ifndef _DRAWING_H |
2 | #define _DRAWING_H |
3 | |
4 | #include <time.h> |
5 | |
6 | typedef time_t ltt_time; |
7 | |
8 | typedef struct _ltt_time_interval |
9 | { |
10 | ltt_time time_begin, time_end; |
11 | } ltt_time_interval; |
12 | |
13 | |
14 | |
15 | typedef struct _Drawing_t Drawing_t; |
16 | |
17 | Drawing_t *Drawing(void); |
18 | void Drawing_destroy(Drawing_t *Drawing); |
19 | void Drawing_Resize(Drawing_t *Drawing, guint h, guint, w); |
20 | |
21 | |
22 | |
23 | void get_time_from_pixels( |
24 | guint area_x, |
25 | guint area_width, |
26 | guint window_width, |
27 | ltt_time &window_time_begin, |
28 | ltt_time &window_time_end, |
29 | ltt_time &time_begin, |
30 | ltt_time &time_end); |
31 | |
32 | |
33 | #endif // _DRAWING_H |