quick fix
[lttv.git] / ltt / branches / poly / lttv / modules / guiControlFlow / Event_Hooks.h
CommitLineData
831a876d 1/* Event_hooks.c defines the hooks that are given to processTrace as parameter.
2 * These hooks call the Drawing API to draw the information on the screen,
3 * using information from Context, but mostly state (running, waiting...).
4 */
5
f0d936c0 6
7#ifndef _EVENT_HOOKS_H
8#define _EVENT_HOOKS_H
9
1ab818de 10#include <gtk/gtk.h>
11#include <lttv/mainWindow.h>
12
558aa013 13GtkWidget *hGuiControlFlow(mainWindow *pmParentWindow);
f0d936c0 14
15int Event_Selected_Hook(void *hook_data, void *call_data);
16
17/* Hook called before drawing. Gets the initial context at the beginning of the
18 * drawing interval and copy it to the context in Event_Request.
19 */
20int Draw_Before_Hook(void *hook_data, void *call_data);
21
22/*
23 * The draw event hook is called by the reading API to have a
24 * particular event drawn on the screen.
25 * @param hook_data ControlFlowData structure of the viewer.
26 * @param call_data Event context.
27 *
28 * This function basically draw lines and icons. Two types of lines are drawn :
29 * one small (3 pixels?) representing the state of the process and the second
30 * type is thicker (10 pixels?) representing on which CPU a process is running
31 * (and this only in running state).
32 *
33 * Extremums of the lines :
34 * x_min : time of the last event context for this process kept in memory.
35 * x_max : time of the current event.
36 * y : middle of the process in the process list. The process is found in the
37 * list, therefore is it's position in pixels.
38 *
39 * The choice of lines'color is defined by the context of the last event for this
40 * process.
41 */
42int Draw_Event_Hook(void *hook_data, void *call_data);
43
44int Draw_After_Hook(void *hook_data, void *call_data);
45
46#endif // _EVENT_HOOKS_H
This page took 0.024134 seconds and 4 git commands to generate.