#define SAFETY 50 // safety pixels at right and bottom of pixmap buffer
+
+typedef enum _draw_color { COL_BLACK,
+ COL_WHITE,
+ COL_WAIT_FORK,
+ COL_WAIT_CPU,
+ COL_EXIT,
+ COL_ZOMBIE,
+ COL_WAIT,
+ COL_RUN,
+ COL_USER_MODE,
+ COL_SYSCALL,
+ COL_TRAP,
+ COL_IRQ,
+ COL_MODE_UNKNOWN,
+ NUM_COLORS } draw_color;
+
+extern GdkColor drawing_colors[NUM_COLORS];
+
/* This part of the viewer does :
* Draw horizontal lines, getting graphic context as arg.
* Copy region of the screen into another.
gint height, width, depth;
/* X coordinate of damaged region */
- gint damage_begin, damage_end;
- LttTime last_start;
+ gint damage_begin, damage_end; /* damaged region to be exposed,
+ updated per chunk */
+ LttTime last_start;
GdkGC *dotted_gc;
GdkGC *gc;
+
+ /* Position of the horizontal selector, -1 for none */
+ gint horizontal_sel;
};
Drawing_t *drawing_construct(ControlFlowData *control_flow_data);
guint y,
guint height);
-void convert_pixels_to_time(
+__inline void convert_pixels_to_time(
gint width,
guint x,
LttTime window_time_begin,
LttTime window_time_end,
LttTime *time);
-void convert_time_to_pixels(
+__inline void convert_time_to_pixels(
LttTime window_time_begin,
LttTime window_time_end,
LttTime time,
LttvTracesetState *tss);
void drawing_chunk_begin(EventsRequest *events_request, LttvTracesetState *tss);
+
+
+void
+tree_row_activated(GtkTreeModel *treemodel,
+ GtkTreePath *arg1,
+ GtkTreeViewColumn *arg2,
+ gpointer user_data);
+
#endif // _DRAWING_H