+#define MAX_PATH_LEN 256
+
+//FIXME : remove this include when tests finished.
+#include "Draw_Item.h"
+#include <string.h>
+
+struct _DrawContext {
+ GdkDrawable *drawable;
+ GdkGC *gc;
+
+
+ DrawInfo *Current;
+ DrawInfo *Previous;
+};
+
+struct _DrawInfo {
+ ItemInfo *over;
+ ItemInfo *middle;
+ ItemInfo *under;
+
+ ItemInfo *modify_over;
+ ItemInfo *modify_middle;
+ ItemInfo *modify_under;
+};
+
+/* LttvExecutionState is accessible through the LttvTracefileState. Is has
+ * a pointer to the LttvProcessState which points to the top of stack
+ * execution state : LttvExecutionState *state.
+ *
+ * LttvExecutionState contains (useful here):
+ * LttvExecutionMode t,
+ * LttvExecutionSubmode n,
+ * LttvProcessStatus s
+ *
+ *
+ * LttvTraceState will be used in the case we need the string of the
+ * different processes, eventtype_names, syscall_names, trap_names, irq_names.
+ *
+ * LttvTracefileState also gives the cpu_name and, as it herits from
+ * LttvTracefileContext, it gives the LttEvent structure, which is needed
+ * to get facility name and event name.
+ */
+struct _ItemInfo {
+ gint x, y;
+ LttvTraceState *ts;
+ LttvTracefileState *tfs;
+};
+
+
+
+struct _PropertiesIcon {
+ gchar *icon_name;
+ gint width;
+ gint height;
+ RelPos position;
+};
+
+
+
+void test_draw_item(Drawing_t *Drawing,
+ GdkPixmap *Pixmap)
+{
+ PropertiesIcon properties_icon;
+ DrawContext draw_context;
+
+ DrawInfo current, previous;
+ ItemInfo over, middle, under, modify_over, modify_middle, modify_under;
+
+ int i,j;
+
+ for(i=0; i<1024;i=i+15)
+ {
+ for(j=0;j<768;j=j+15)
+ {
+ over.x = i;
+ over.y = j;
+ over.ts = NULL;
+ over.tfs = NULL;
+
+ current.modify_over = &over;
+
+ draw_context.drawable = Pixmap;
+ draw_context.gc = Drawing->Drawing_Area_V->style->black_gc;
+
+ draw_context.Current = ¤t;
+ draw_context.Previous = NULL;
+
+ properties_icon.icon_name = g_new(char, MAX_PATH_LEN);
+ strncpy(properties_icon.icon_name,
+ "/home/compudj/local/share/LinuxTraceToolkit/pixmaps/mini-display.xpm",
+ MAX_PATH_LEN);
+ properties_icon.width = -1;
+ properties_icon.height = -1;
+ properties_icon.position = OVER;
+
+ draw_icon(&properties_icon, &draw_context);
+ }
+ }
+
+}