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