10 /* This part of the viewer does :
11 * Draw horizontal lines, getting graphic context as arg.
12 * Copy region of the screen into another.
13 * Modify the boundaries to reflect a scale change. (resize)
14 * Refresh the physical screen with the pixmap
15 * A helper function is provided here to convert from time and process
16 * identifier to pixels and the contrary (will be useful for mouse selection).
17 * Insert an empty square in the drawing, moving the bottom part.
19 * The pixmap used has the width of the physical window, but the height
20 * of the shown processes.
23 typedef struct _Drawing_t Drawing_t
;
26 //FIXME : TEMPORARILY FOR GC !!
28 GtkWidget
*Drawing_Area_V
;
30 ControlFlowData
*Control_Flow_Data
;
32 gint height
, width
, depth
;
37 Drawing_t
*Drawing_construct(ControlFlowData
*Control_Flow_Data
);
38 void Drawing_destroy(Drawing_t
*Drawing
);
40 GtkWidget
*Drawing_getWidget(Drawing_t
*Drawing
);
42 //void Drawing_Refresh ( Drawing_t *Drawing,
44 // guint width, guint height);
46 void Drawing_draw_line( Drawing_t
*Drawing
,
52 //void Drawing_copy( Drawing_t *Drawing,
53 // guint xsrc, guint ysrc,
54 // guint xdest, guint ydest,
55 // guint width, guint height);
57 /* Insert a square corresponding to a new process in the list */
58 void Drawing_Insert_Square(Drawing_t
*Drawing
,
62 /* Remove a square corresponding to a removed process in the list */
63 void Drawing_Remove_Square(Drawing_t
*Drawing
,
68 //void Drawing_Resize(Drawing_t *Drawing, guint h, guint w);
70 void convert_pixels_to_time(
73 LttTime
*window_time_begin
,
74 LttTime
*window_time_end
,
77 void convert_time_to_pixels(
78 LttTime window_time_begin
,
79 LttTime window_time_end
,