quick fix
[lttv.git] / ltt / branches / poly / lttv / modules / guiControlFlow / Drawing.h
CommitLineData
f0d936c0 1#ifndef _DRAWING_H
2#define _DRAWING_H
3
558aa013 4#include <glib.h>
76a67e8a 5#include <gdk/gdk.h>
6#include <gtk/gtk.h>
fa2c4dbe 7#include <ltt/ltt.h>
f0d936c0 8
fa2c4dbe 9/* This part of the viewer does :
76a67e8a 10 * Draw horizontal lines, getting graphic context as arg.
fa2c4dbe 11 * Copy region of the screen into another.
76a67e8a 12 * Modify the boundaries to reflect a scale change. (resize)
847b479d 13 * Refresh the physical screen with the pixmap
fa2c4dbe 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 */
f0d936c0 17
18typedef struct _Drawing_t Drawing_t;
19
76a67e8a 20Drawing_t *Drawing_construct(void);
f0d936c0 21void Drawing_destroy(Drawing_t *Drawing);
f0d936c0 22
76a67e8a 23GtkWidget *Drawing_getWidget(Drawing_t *Drawing);
24
847b479d 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,
76a67e8a 33 GdkGC *GC);
34
847b479d 35//void Drawing_copy( Drawing_t *Drawing,
36// guint xsrc, guint ysrc,
37// guint xdest, guint ydest,
38// guint width, guint height);
f0d936c0 39
40
847b479d 41//void Drawing_Resize(Drawing_t *Drawing, guint h, guint w);
76a67e8a 42
fa2c4dbe 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);
f0d936c0 56
f0d936c0 57#endif // _DRAWING_H
This page took 0.024796 seconds and 4 git commands to generate.