X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2FguiControlFlow%2FDrawing.h;h=34f7490a5c4f89a6ca4272d95f91dec40c032b2f;hb=14963be07f6a9c7c2db0d988f557b870ebd5dead;hp=f225e225525c65b4ef2a148fc77d8c11f79eab8d;hpb=432a7065f37c2e37192925c938216a8ceb152dc1;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/guiControlFlow/Drawing.h b/ltt/branches/poly/lttv/modules/guiControlFlow/Drawing.h index f225e225..34f7490a 100644 --- a/ltt/branches/poly/lttv/modules/guiControlFlow/Drawing.h +++ b/ltt/branches/poly/lttv/modules/guiControlFlow/Drawing.h @@ -9,7 +9,7 @@ #include "Draw_Item.h" -#define SAFETY 50 // safety pixels at right and bottom of pixmap buffer +#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. @@ -36,59 +36,61 @@ typedef struct _Drawing_t Drawing_t; struct _Drawing_t { - GtkWidget *Drawing_Area_V; - GdkPixmap *Pixmap; - ControlFlowData *Control_Flow_Data; - - gint height, width, depth; - + GtkWidget *drawing_area; + GdkPixmap *Pixmap; + ControlFlowData *control_flow_data; + + PangoLayout *pango_layout; + + gint height, width, depth; + }; -Drawing_t *drawing_construct(ControlFlowData *Control_Flow_Data); +Drawing_t *drawing_construct(ControlFlowData *control_flow_data); void drawing_destroy(Drawing_t *Drawing); GtkWidget *drawing_get_widget(Drawing_t *Drawing); - -//void Drawing_Refresh ( Drawing_t *Drawing, -// guint x, guint y, -// guint width, guint height); + +//void Drawing_Refresh ( Drawing_t *Drawing, +// guint x, guint y, +// guint width, guint height); -void drawing_draw_line( Drawing_t *Drawing, - GdkPixmap *Pixmap, - guint x1, guint y1, - guint x2, guint y2, - GdkGC *GC); +void drawing_draw_line( Drawing_t *Drawing, + GdkPixmap *Pixmap, + guint x1, guint y1, + guint x2, guint y2, + GdkGC *GC); //void Drawing_copy( Drawing_t *Drawing, -// guint xsrc, guint ysrc, -// guint xdest, guint ydest, -// guint width, guint height); +// guint xsrc, guint ysrc, +// guint xdest, guint ydest, +// guint width, guint height); /* Insert a square corresponding to a new process in the list */ void drawing_insert_square(Drawing_t *Drawing, - guint y, - guint height); + guint y, + guint height); /* Remove a square corresponding to a removed process in the list */ void drawing_remove_square(Drawing_t *Drawing, - guint y, - guint height); + guint y, + guint height); //void Drawing_Resize(Drawing_t *Drawing, guint h, guint w); void convert_pixels_to_time( - gint width, - guint x, - LttTime *window_time_begin, - LttTime *window_time_end, - LttTime *time); + gint width, + guint x, + LttTime *window_time_begin, + LttTime *window_time_end, + LttTime *time); void convert_time_to_pixels( - LttTime window_time_begin, - LttTime window_time_end, - LttTime time, - gint width, - guint *x); + LttTime window_time_begin, + LttTime window_time_end, + LttTime time, + gint width, + guint *x); #endif // _DRAWING_H