+/* Put src and/or dest to NULL to copy from/to the each PID specific pixmap */
+void copy_pixmap_region(ProcessList *process_list, GdkDrawable *dest,
+ GdkGC *gc, GdkDrawable *src,
+ gint xsrc, gint ysrc,
+ gint xdest, gint ydest, gint width, gint height);
+
+/* If height is -1, the height of each pixmap is used */
+void rectangle_pixmap(ProcessList *process_list, GdkGC *gc,
+ gboolean filled, gint x, gint y, gint width, gint height);
+
+/* Renders each pixmaps into on big drawable */
+void copy_pixmap_to_screen(ProcessList *process_list,
+ GdkDrawable *dest,
+ GdkGC *gc,
+ gint x, gint y,
+ gint width, gint height);
+
+
+static inline gint get_cell_height(ProcessList *process_list,
+ GtkTreeView *TreeView)
+{
+ gint height;
+ GtkTreeViewColumn *column = gtk_tree_view_get_column(TreeView, 0);
+
+ gtk_tree_view_column_cell_get_size(column, NULL, NULL, NULL, NULL, &height);
+
+ return height;
+}
+
+static inline guint processlist_get_height(ProcessList *process_list)
+{
+ return process_list->cell_height * process_list->number_of_process ;
+}
+
+
+static inline HashedProcessData *processlist_get_process_data(
+ ProcessList *process_list,
+ guint pid, guint cpu, LttTime *birth, guint trace_num)
+{
+ ProcessInfo process_info;
+
+ process_info.pid = pid;
+ if(pid == 0)
+ process_info.cpu = cpu;
+ else
+ process_info.cpu = ANY_CPU;
+ process_info.birth = *birth;
+ process_info.trace_num = trace_num;
+
+ return (HashedProcessData*)g_hash_table_lookup(
+ process_list->process_hash,
+ &process_info);
+}
+
+
+static inline gint processlist_get_pixels_from_data( ProcessList *process_list,