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)
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
);
26 void Drawing_draw_line( guint x1
, guint y1
, guint x2
, guint y2
,
29 void Drawing_copy(guint xsrc
, guint ysrc
,
30 guint xdest
, guint ydest
,
31 guint width
, guint height
);
34 void Drawing_Resize(Drawing_t
*Drawing
, guint h
, guint w
);
36 void convert_pixels_to_time(
39 LttTime
*window_time_begin
,
40 LttTime
*window_time_end
,
43 void convert_time_to_pixels(
44 LttTime window_time_begin
,
45 LttTime window_time_end
,