X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2FguiControlFlow%2FDrawing.h;h=d2aa0a6ab137aa72d2297dea5b58b6c61e983cd3;hb=34b048821159dd48a9c5eac32ad5333925da334d;hp=f211879ffb2390074097ae3f500fddd100a48cbf;hpb=8d088fb270b8b2e03e3632f1b5733485a6675c07;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/guiControlFlow/Drawing.h b/ltt/branches/poly/lttv/modules/guiControlFlow/Drawing.h index f211879f..d2aa0a6a 100644 --- a/ltt/branches/poly/lttv/modules/guiControlFlow/Drawing.h +++ b/ltt/branches/poly/lttv/modules/guiControlFlow/Drawing.h @@ -8,6 +8,9 @@ #include "CFV.h" #include "Draw_Item.h" + +#define SAFETY 50 // safety pixels at right and bottom of pixmap buffer + /* This part of the viewer does : * Draw horizontal lines, getting graphic context as arg. * Copy region of the screen into another. @@ -36,9 +39,11 @@ struct _Drawing_t { GtkWidget *Drawing_Area_V; GdkPixmap *Pixmap; ControlFlowData *Control_Flow_Data; + + PangoLayout *pango_layout; gint height, width, depth; - + }; Drawing_t *drawing_construct(ControlFlowData *Control_Flow_Data); @@ -75,17 +80,17 @@ void drawing_remove_square(Drawing_t *Drawing, //void Drawing_Resize(Drawing_t *Drawing, guint h, guint w); void convert_pixels_to_time( - Drawing_t *Drawing, + gint width, guint x, LttTime *window_time_begin, LttTime *window_time_end, - LttTime *begin); + LttTime *time); void convert_time_to_pixels( LttTime window_time_begin, LttTime window_time_end, LttTime time, - Drawing_t *Drawing, + gint width, guint *x); #endif // _DRAWING_H