9 /* This part of the viewer does :
10 * Draw horizontal lines, getting graphic context as arg.
11 * Copy region of the screen into another.
12 * Modify the boundaries to reflect a scale change. (resize)
13 * Refresh the physical screen with the pixmap
14 * A helper function is provided here to convert from time and process
15 * identifier to pixels and the contrary (will be useful for mouse selection).
18 typedef struct _Drawing_t Drawing_t
;
20 Drawing_t
*Drawing_construct(void);
21 void Drawing_destroy(Drawing_t
*Drawing
);
23 GtkWidget
*Drawing_getWidget(Drawing_t
*Drawing
);
25 //void Drawing_Refresh ( Drawing_t *Drawing,
27 // guint width, guint height);
29 void Drawing_draw_line( Drawing_t
*Drawing
,
35 //void Drawing_copy( Drawing_t *Drawing,
36 // guint xsrc, guint ysrc,
37 // guint xdest, guint ydest,
38 // guint width, guint height);
41 //void Drawing_Resize(Drawing_t *Drawing, guint h, guint w);
43 void convert_pixels_to_time(
46 LttTime
*window_time_begin
,
47 LttTime
*window_time_end
,
50 void convert_time_to_pixels(
51 LttTime window_time_begin
,
52 LttTime window_time_end
,