+/* This file is part of the Linux Trace Toolkit viewer
+ * Copyright (C) 2003-2004 Mathieu Desnoyers
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License Version 2 as
+ * published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston,
+ * MA 02111-1307, USA.
+ */
+
+
#ifndef _DRAW_ITEM_H
#define _DRAW_ITEM_H
* when we draw a text, an arc or an icon, while it's unneeded when we
* draw a line or background.
*
+ * The modify_* positions are altered by the draw item functions.
+ *
*/
GdkGC *gc;
PangoLayout *pango_layout;
- DrawInfo *current;
- DrawInfo *previous;
-};
+ struct {
+ gint x_start;
+ gint x_end;
-/* 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 _DrawInfo {
- ItemInfo *over;
- ItemInfo *middle;
- ItemInfo *under;
-
- ItemInfo *modify_over;
- ItemInfo *modify_middle;
- ItemInfo *modify_under;
- LttvProcessStatus status;
-};
+ gint y_over;
+ gint y_middle;
+ gint y_under;
-struct _ItemInfo {
- gint x, y;
+ gint x_modify_over;
+ gint x_modify_middle;
+ gint x_modify_under;
+ } drawinfo;
};
+
+
+
/*
* Structure used to keep information about icons.
*/
};
struct _PropertiesLine {
- GdkColor *color;
+ GdkColor color;
gint line_width;
GdkLineStyle style;
RelPos position;