* erase drawing already present (SAFETY).
*/
void drawing_data_request(Drawing_t *Drawing,
- GdkPixmap **Pixmap,
+ GdkPixmap **pixmap,
gint x, gint y,
gint width,
gint height)
//Drawing);
//send_test_drawing(
//guicontrolflow_get_process_list(Drawing->control_flow_data),
- //Drawing, *Pixmap, x, y, width, height);
+ //Drawing, *pixmap, x, y, width, height);
// Let's call processTrace() !!
EventRequest event_request; // Variable freed at the end of the function.
get_time_window(Drawing->control_flow_data->mw,
&Drawing->control_flow_data->time_window);
- /* New Pixmap, size of the configure event */
- //GdkPixmap *Pixmap = gdk_pixmap_new(widget->window,
+ /* New pixmap, size of the configure event */
+ //GdkPixmap *pixmap = gdk_pixmap_new(widget->window,
// widget->allocation.width + SAFETY,
// widget->allocation.height + SAFETY,
// -1);
g_critical("New draw size : %i by %i",widget->allocation.width, widget->allocation.height);
- if (Drawing->Pixmap)
- gdk_pixmap_unref(Drawing->Pixmap);
+ if (Drawing->pixmap)
+ gdk_pixmap_unref(Drawing->pixmap);
- /* If no old Pixmap present */
- //if(Drawing->Pixmap == NULL)
+ /* If no old pixmap present */
+ //if(Drawing->pixmap == NULL)
{
- Drawing->Pixmap = gdk_pixmap_new(
+ Drawing->pixmap = gdk_pixmap_new(
widget->window,
widget->allocation.width + SAFETY,
widget->allocation.height + SAFETY,
// Clear the image
- gdk_draw_rectangle (Drawing->Pixmap,
+ gdk_draw_rectangle (Drawing->pixmap,
widget->style->white_gc,
TRUE,
0, 0,
/* Initial data request */
// Do not need to ask for data of 1 pixel : not synchronized with
// main window time at this moment.
- drawing_data_request(Drawing, &Drawing->Pixmap, 0, 0,
+ drawing_data_request(Drawing, &Drawing->pixmap, 0, 0,
widget->allocation.width,
widget->allocation.height);
}
#ifdef NOTUSE
// /* Draw empty background */
-// gdk_draw_rectangle (Pixmap,
+// gdk_draw_rectangle (pixmap,
// widget->style->black_gc,
// TRUE,
// 0, 0,
// widget->allocation.height);
/* Copy old data to new pixmap */
- gdk_draw_drawable (Pixmap,
+ gdk_draw_drawable (pixmap,
widget->style->white_gc,
- Drawing->Pixmap,
+ Drawing->pixmap,
0, 0,
0, 0,
-1, -1);
- if (Drawing->Pixmap)
- gdk_pixmap_unref(Drawing->Pixmap);
+ if (Drawing->pixmap)
+ gdk_pixmap_unref(Drawing->pixmap);
- Drawing->Pixmap = Pixmap;
+ Drawing->pixmap = pixmap;
// Clear the bottom part of the image (SAFETY)
- gdk_draw_rectangle (Pixmap,
+ gdk_draw_rectangle (pixmap,
widget->style->white_gc,
TRUE,
0, Drawing->height+SAFETY,
(widget->allocation.height) - Drawing->height);
// Clear the right part of the image (SAFETY)
- gdk_draw_rectangle (Pixmap,
+ gdk_draw_rectangle (pixmap,
widget->style->white_gc,
TRUE,
Drawing->width+SAFETY, 0,
Drawing->height+SAFETY);
/* Clear the backgound for data request, but not SAFETY */
- gdk_draw_rectangle (Pixmap,
+ gdk_draw_rectangle (pixmap,
Drawing->drawing_area->style->white_gc,
TRUE,
Drawing->width + SAFETY, 0,
/* Request data for missing space */
g_info("missing data request");
- drawing_data_request(Drawing, &Pixmap, Drawing->width, 0,
+ drawing_data_request(Drawing, &pixmap, Drawing->width, 0,
widget->allocation.width - Drawing->width,
widget->allocation.height);
gdk_draw_pixmap(widget->window,
widget->style->fg_gc[GTK_WIDGET_STATE (widget)],
- Drawing->Pixmap,
+ Drawing->pixmap,
event->area.x, event->area.y,
event->area.x, event->area.y,
event->area.width, event->area.height);
if(x >= event->area.x && x <= event->area.x+event->area.width)
{
- GdkGC *gc = gdk_gc_new(control_flow_data->Drawing->Pixmap);
+ GdkGC *gc = gdk_gc_new(control_flow_data->Drawing->pixmap);
gdk_gc_copy(gc, widget->style->black_gc);
drawing_draw_line(NULL, widget->window,
// &(Drawing->height),
// -1);
- //Drawing->Pixmap = gdk_pixmap_new(
+ //Drawing->pixmap = gdk_pixmap_new(
// Drawing->drawing_area->window,
// Drawing->width,
// Drawing->height,
// Drawing->depth);
- Drawing->Pixmap = NULL;
+ Drawing->pixmap = NULL;
-// Drawing->Pixmap = gdk_pixmap_new(Drawing->drawing_area->window,
+// Drawing->pixmap = gdk_pixmap_new(Drawing->drawing_area->window,
// Drawing->drawing_area->allocation.width,
// Drawing->drawing_area->allocation.height,
// -1);
Drawing->drawing_area->window,
Drawing->drawing_area->
style->fg_gc[GTK_WIDGET_STATE (Drawing->drawing_area)],
- GDK_DRAWABLE(Drawing->Pixmap),
+ GDK_DRAWABLE(Drawing->pixmap),
x, y,
x, y,
width, height);
void drawing_draw_line( Drawing_t *Drawing,
- GdkPixmap *Pixmap,
+ GdkPixmap *pixmap,
guint x1, guint y1,
guint x2, guint y2,
GdkGC *GC)
{
- gdk_draw_line (Pixmap,
+ gdk_draw_line (pixmap,
GC,
x1, y1, x2, y2);
}
//GdkRectangle update_rect;
/* Allocate a new pixmap with new height */
- GdkPixmap *Pixmap = gdk_pixmap_new(Drawing->drawing_area->window,
+ GdkPixmap *pixmap = gdk_pixmap_new(Drawing->drawing_area->window,
Drawing->width + SAFETY,
Drawing->height + height + SAFETY,
-1);
/* Copy the high region */
- gdk_draw_drawable (Pixmap,
+ gdk_draw_drawable (pixmap,
Drawing->drawing_area->style->black_gc,
- Drawing->Pixmap,
+ Drawing->pixmap,
0, 0,
0, 0,
Drawing->width + SAFETY, y);
/* add an empty square */
- gdk_draw_rectangle (Pixmap,
+ gdk_draw_rectangle (pixmap,
Drawing->drawing_area->style->white_gc,
TRUE,
0, y,
/* copy the bottom of the region */
- gdk_draw_drawable (Pixmap,
+ gdk_draw_drawable (pixmap,
Drawing->drawing_area->style->black_gc,
- Drawing->Pixmap,
+ Drawing->pixmap,
0, y,
0, y + height,
Drawing->width+SAFETY, Drawing->height - y + SAFETY);
- if (Drawing->Pixmap)
- gdk_pixmap_unref(Drawing->Pixmap);
+ if (Drawing->pixmap)
+ gdk_pixmap_unref(Drawing->pixmap);
- Drawing->Pixmap = Pixmap;
+ Drawing->pixmap = pixmap;
Drawing->height+=height;
//GdkRectangle update_rect;
/* Allocate a new pixmap with new height */
- GdkPixmap *Pixmap = gdk_pixmap_new(
+ GdkPixmap *pixmap = gdk_pixmap_new(
Drawing->drawing_area->window,
Drawing->width + SAFETY,
Drawing->height - height + SAFETY,
-1);
/* Copy the high region */
- gdk_draw_drawable (Pixmap,
+ gdk_draw_drawable (pixmap,
Drawing->drawing_area->style->black_gc,
- Drawing->Pixmap,
+ Drawing->pixmap,
0, 0,
0, 0,
Drawing->width + SAFETY, y);
/* Copy up the bottom of the region */
- gdk_draw_drawable (Pixmap,
+ gdk_draw_drawable (pixmap,
Drawing->drawing_area->style->black_gc,
- Drawing->Pixmap,
+ Drawing->pixmap,
0, y + height,
0, y,
Drawing->width, Drawing->height - y - height + SAFETY);
- if (Drawing->Pixmap)
- gdk_pixmap_unref(Drawing->Pixmap);
+ if (Drawing->pixmap)
+ gdk_pixmap_unref(Drawing->pixmap);
- Drawing->Pixmap = Pixmap;
+ Drawing->pixmap = pixmap;
Drawing->height-=height;