f0d936c0 |
1 | |
2 | #ifndef _EVENT_HOOKS_H |
3 | #define _EVENT_HOOKS_H |
4 | |
558aa013 |
5 | GtkWidget *hGuiControlFlow(mainWindow *pmParentWindow); |
f0d936c0 |
6 | |
7 | int Event_Selected_Hook(void *hook_data, void *call_data); |
8 | |
9 | /* Hook called before drawing. Gets the initial context at the beginning of the |
10 | * drawing interval and copy it to the context in Event_Request. |
11 | */ |
12 | int Draw_Before_Hook(void *hook_data, void *call_data); |
13 | |
14 | /* |
15 | * The draw event hook is called by the reading API to have a |
16 | * particular event drawn on the screen. |
17 | * @param hook_data ControlFlowData structure of the viewer. |
18 | * @param call_data Event context. |
19 | * |
20 | * This function basically draw lines and icons. Two types of lines are drawn : |
21 | * one small (3 pixels?) representing the state of the process and the second |
22 | * type is thicker (10 pixels?) representing on which CPU a process is running |
23 | * (and this only in running state). |
24 | * |
25 | * Extremums of the lines : |
26 | * x_min : time of the last event context for this process kept in memory. |
27 | * x_max : time of the current event. |
28 | * y : middle of the process in the process list. The process is found in the |
29 | * list, therefore is it's position in pixels. |
30 | * |
31 | * The choice of lines'color is defined by the context of the last event for this |
32 | * process. |
33 | */ |
34 | int Draw_Event_Hook(void *hook_data, void *call_data); |
35 | |
36 | int Draw_After_Hook(void *hook_data, void *call_data); |
37 | |
38 | #endif // _EVENT_HOOKS_H |