X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmodules%2FguiControlFlow%2FDrawing.h;h=418f68858c0065f610d82497b03bbe243ca8a3e6;hb=cf6cb7e0d0462bba8b38d00adc593c0107b79f37;hp=22d2224b82c91cf8741c858f14940e5d0a8a53f1;hpb=847b479de75182dfd3f90e4faeefa48c099713ad;p=lttv.git diff --git a/ltt/branches/poly/lttv/modules/guiControlFlow/Drawing.h b/ltt/branches/poly/lttv/modules/guiControlFlow/Drawing.h index 22d2224b..418f6885 100644 --- a/ltt/branches/poly/lttv/modules/guiControlFlow/Drawing.h +++ b/ltt/branches/poly/lttv/modules/guiControlFlow/Drawing.h @@ -5,6 +5,7 @@ #include #include #include +#include "CFV.h" /* This part of the viewer does : * Draw horizontal lines, getting graphic context as arg. @@ -13,11 +14,27 @@ * Refresh the physical screen with the pixmap * A helper function is provided here to convert from time and process * identifier to pixels and the contrary (will be useful for mouse selection). + * Insert an empty square in the drawing, moving the bottom part. + * + * The pixmap used has the width of the physical window, but the height + * of the shown processes. */ typedef struct _Drawing_t Drawing_t; -Drawing_t *Drawing_construct(void); + +//FIXME : TEMPORARILY PLACED HERE FOR GC !! +struct _Drawing_t { + GtkWidget *Drawing_Area_V; + GdkPixmap *Pixmap; + ControlFlowData *Control_Flow_Data; + + gint height, width, depth; + +}; + + +Drawing_t *Drawing_construct(ControlFlowData *Control_Flow_Data); void Drawing_destroy(Drawing_t *Drawing); GtkWidget *Drawing_getWidget(Drawing_t *Drawing); @@ -37,6 +54,16 @@ void Drawing_draw_line( Drawing_t *Drawing, // 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); + +/* Remove a square corresponding to a removed process in the list */ +void Drawing_Remove_Square(Drawing_t *Drawing, + guint y, + guint height); + //void Drawing_Resize(Drawing_t *Drawing, guint h, guint w);