4 typedef struct _DrawContext DrawContext
;
5 typedef struct _DrawInfo DrawInfo
;
6 typedef struct _ItemInfo ItemInfo
;
8 typedef struct _DrawOperation DrawOperation
;
11 typedef struct _PropertiesText PropertiesText
;
12 typedef struct _PropertiesIcon PropertiesIcon
;
13 typedef struct _PropertiesLine PropertiesLine
;
14 typedef struct _PropertiesArc PropertiesArc
;
15 typedef struct _PropertiesBG PropertiesBG
;
18 void Draw_Item( GdkDrawable
*drawable
,
22 LttvTracefileState
*tfs
,
23 LttvIAttribute
*attributes
);
26 * The tree of attributes used to store drawing operations goes like this :
29 * "facility-event_type"
39 * So if, for example, we want to add a hook to get called each time we
40 * receive an event that is in state LTTV_STATE_SYSCALL, we put the
41 * pointer to the GArray of DrawOperation in
42 * process_states/ "name associated with LTTV_STATE_SYSCALL"
46 * The AddOperation has to do a quick sort by priority to keep the operations
49 void AddOperation( LttvIAttribute
*attributes
,
51 DrawOperation
*Operation
);
54 * The DelOperation seeks the array present at pathname (if any) and
55 * removes the DrawOperation if present. It returns 0 on success, -1
58 gint
DelOperation( LttvIAttribute
*attributes
,
60 DrawOperation
*Operation
);
63 * The CleanOperations removes all operations present at a pathname.
64 * returns 0 on success, -1 if it fails.
66 gint
DelOperations( LttvIAttribute
*attributes
,
71 * The ListOperation gives a pointer to the operation array associated
72 * with the pathname. It will be NULL if no operation is present.
74 void ListOperations( LttvIAttribute
*attributes
,
81 * ExecOperation executes the operations if present in the attributes, or
82 * do nothing if not present.
84 void ExecOperations( LttvIAttribute
*attributes
,
89 * Functions to create Properties structures.
92 PropertiesText
*properties_text_create(
99 PropertiesIcon
*properties_icon_create(
105 PropertiesLine
*properties_line_create(
111 PropertiesArc
*properties_arc_create(
117 PropertiesBG
*properties_bg_create(
124 * Here follow the prototypes of the hook functions used to draw the
128 gboolean
DrawText( void *hook_data
, void *call_data
);
129 gboolean
DrawIcon( void *hook_data
, void *call_data
);
130 gboolean
DrawLine( void *hook_data
, void *call_data
);
131 gboolean
DrawArc( void *hook_data
, void *call_data
);
132 gboolean
DrawBG( void *hook_data
, void *call_data
);
135 #endif // _DRAW_ITEM_H