]> Dogcows Code - chaz/tint2/blob - src/tooltip/tooltip.h
*add* tooltips
[chaz/tint2] / src / tooltip / tooltip.h
1 #ifndef TOOLTIP_H
2 #define TOOLTIP_H
3
4 #include <sys/time.h>
5
6 #include "task.h"
7
8 enum tooltip_state {
9 TOOLTIP_ABOUT_TO_SHOW,
10 TOOLTIP_ABOUT_TO_HIDE,
11 };
12
13 typedef struct {
14 Task* task;
15 Window window;
16 struct itimerval show_timeout;
17 struct itimerval hide_timeout;
18 Bool enabled;
19 enum tooltip_state current_state;
20 Bool mapped;
21 int paddingx;
22 int paddingy;
23 PangoFontDescription* font_desc;
24 config_color font_color;
25 Color background_color;
26 Border border;
27 } Tooltip;
28
29 extern Tooltip g_tooltip;
30
31
32 void init_tooltip();
33 void tooltip_sighandler(int sig);
34 void tooltip_trigger_show(Task* task, int x, int y);
35 void tooltip_show();
36 void tooltip_update();
37 void tooltip_trigger_hide();
38 void tooltip_hide();
39
40 #endif // TOOLTIP_H
This page took 0.03913 seconds and 5 git commands to generate.