basic drawing widget, nothing drawn for now
[lttv.git] / ltt / branches / poly / lttv / modules / guiControlFlow / Drawing.h
1 #ifndef _DRAWING_H
2 #define _DRAWING_H
3
4 #include <glib.h>
5 #include <gdk/gdk.h>
6 #include <gtk/gtk.h>
7 #include <ltt/ltt.h>
8
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 *
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).
16 */
17
18 typedef struct _Drawing_t Drawing_t;
19
20 Drawing_t *Drawing_construct(void);
21 void Drawing_destroy(Drawing_t *Drawing);
22
23 GtkWidget *Drawing_getWidget(Drawing_t *Drawing);
24
25
26 void Drawing_draw_line( guint x1, guint y1, guint x2, guint y2,
27 GdkGC *GC);
28
29 void Drawing_copy(guint xsrc, guint ysrc,
30 guint xdest, guint ydest,
31 guint width, guint height);
32
33
34 void Drawing_Resize(Drawing_t *Drawing, guint h, guint w);
35
36 void convert_pixels_to_time(
37 Drawing_t *Drawing,
38 guint x,
39 LttTime *window_time_begin,
40 LttTime *window_time_end,
41 LttTime *begin);
42
43 void convert_time_to_pixels(
44 LttTime window_time_begin,
45 LttTime window_time_end,
46 LttTime time,
47 Drawing_t *Drawing,
48 guint *x);
49
50 #endif // _DRAWING_H
This page took 0.030909 seconds and 5 git commands to generate.