quick fix
[lttv.git] / ltt / branches / poly / lttv / modules / guiControlFlow / Drawing.h
... / ...
CommitLineData
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 * 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).
16 */
17
18typedef struct _Drawing_t Drawing_t;
19
20Drawing_t *Drawing_construct(void);
21void Drawing_destroy(Drawing_t *Drawing);
22
23GtkWidget *Drawing_getWidget(Drawing_t *Drawing);
24
25//void Drawing_Refresh ( Drawing_t *Drawing,
26// guint x, guint y,
27// guint width, guint height);
28
29void Drawing_draw_line( Drawing_t *Drawing,
30 GdkPixmap *Pixmap,
31 guint x1, guint y1,
32 guint x2, guint y2,
33 GdkGC *GC);
34
35//void Drawing_copy( Drawing_t *Drawing,
36// guint xsrc, guint ysrc,
37// guint xdest, guint ydest,
38// guint width, guint height);
39
40
41//void Drawing_Resize(Drawing_t *Drawing, guint h, guint w);
42
43void convert_pixels_to_time(
44 Drawing_t *Drawing,
45 guint x,
46 LttTime *window_time_begin,
47 LttTime *window_time_end,
48 LttTime *begin);
49
50void convert_time_to_pixels(
51 LttTime window_time_begin,
52 LttTime window_time_end,
53 LttTime time,
54 Drawing_t *Drawing,
55 guint *x);
56
57#endif // _DRAWING_H
This page took 0.02307 seconds and 4 git commands to generate.