329718d086066a6d47ff480ae9c32c75836d7d75
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...).
11 #include <lttv/mainWindow.h>
12 #include "Process_List.h"
14 void send_test_data(ProcessList
*Process_List
);
16 GtkWidget
*hGuiControlFlow(mainWindow
*pmParentWindow
);
18 int Event_Selected_Hook(void *hook_data
, void *call_data
);
20 /* Hook called before drawing. Gets the initial context at the beginning of the
21 * drawing interval and copy it to the context in Event_Request.
23 int Draw_Before_Hook(void *hook_data
, void *call_data
);
26 * The draw event hook is called by the reading API to have a
27 * particular event drawn on the screen.
28 * @param hook_data ControlFlowData structure of the viewer.
29 * @param call_data Event context.
31 * This function basically draw lines and icons. Two types of lines are drawn :
32 * one small (3 pixels?) representing the state of the process and the second
33 * type is thicker (10 pixels?) representing on which CPU a process is running
34 * (and this only in running state).
36 * Extremums of the lines :
37 * x_min : time of the last event context for this process kept in memory.
38 * x_max : time of the current event.
39 * y : middle of the process in the process list. The process is found in the
40 * list, therefore is it's position in pixels.
42 * The choice of lines'color is defined by the context of the last event for this
45 int Draw_Event_Hook(void *hook_data
, void *call_data
);
47 int Draw_After_Hook(void *hook_data
, void *call_data
);
49 #endif // _EVENT_HOOKS_H
This page took 0.041302 seconds and 4 git commands to generate.