basic drawing widget, nothing drawn for now
[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)
fa2c4dbe 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 */
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
25
26void Drawing_draw_line( guint x1, guint y1, guint x2, guint y2,
27 GdkGC *GC);
28
29void Drawing_copy(guint xsrc, guint ysrc,
30 guint xdest, guint ydest,
31 guint width, guint height);
f0d936c0 32
33
76a67e8a 34void Drawing_Resize(Drawing_t *Drawing, guint h, guint w);
35
fa2c4dbe 36void 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
43void convert_time_to_pixels(
44 LttTime window_time_begin,
45 LttTime window_time_end,
46 LttTime time,
47 Drawing_t *Drawing,
48 guint *x);
f0d936c0 49
f0d936c0 50#endif // _DRAWING_H
This page took 0.024639 seconds and 4 git commands to generate.