#include <lttv/processTrace.h>
+
+#define g_info(format...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_INFO, format)
+#define g_debug(format...) g_log (G_LOG_DOMAIN, G_LOG_LEVEL_DEBUG, format)
+
+
/*****************************************************************************
* Drawing functions *
*****************************************************************************/
guint x, guint y,
guint width, guint height)
{
+ g_info("Drawing.c : drawing_refresh %u, %u, %u, %u", x, y, width, height);
GdkRectangle update_rect;
gdk_draw_drawable(
GdkPixmap *icon_pixmap = g_new(GdkPixmap, 1);
GdkGC * gc = gdk_gc_new(Pixmap);
+ // rectangle
+ GdkColor color = { 0, 0xffff, 0x0000, 0x0000 };
+
/* Sent text data */
layout = gtk_widget_create_pango_layout(Drawing->Drawing_Area_V,
NULL);
g_free(icon_pixmap);
g_free(mask);
- g_free(gc);
g_info("y : %u, height : %u", y, height);
+
+
birth.tv_sec = 12000;
birth.tv_nsec = 55700;
&birth,
&y,
&height);
-
+
+ /* Draw rectangle (background color) */
+ gdk_gc_copy(gc, Drawing->Drawing_Area_V->style->black_gc);
+ gdk_gc_set_rgb_fg_color(gc, &color);
+ gdk_draw_rectangle(Pixmap, gc,
+ TRUE,
+ x, y, width, height);
drawing_draw_line(
Drawing, Pixmap, x,
y+(height/2), x + width, y+(height/2),
Drawing->Drawing_Area_V->style->black_gc);
+
+ /* Draw arc */
+ gdk_draw_arc(Pixmap, Drawing->Drawing_Area_V->style->black_gc,
+ TRUE, 100, y, 5, 5, 0, 360*64);
+
g_info("y : %u, height : %u", y, height);
for(i=0; i<10; i++)
pango_font_description_set_size(FontDesc, Font_Size);
+ g_free(gc);
g_free(layout);
//g_free(context);
}
Time_Window->time_width.tv_sec,
Time_Window->time_width.tv_nsec);
- drawing_data_request(Control_Flow_Data->Drawing,
+ drawing_data_request(Control_Flow_Data->Drawing,
&Control_Flow_Data->Drawing->Pixmap,
0, 0,
Control_Flow_Data->Drawing->width,