]> Dogcows Code - chaz/tint2/blob - src/tooltip/tooltip.h
fixed config reload SIGUSR1. added systray = 1 parameter to enable systray
[chaz/tint2] / src / tooltip / tooltip.h
1 /**************************************************************************
2 *
3 * Copyright (C) 2009 Andreas.Fink (Andreas.Fink85@gmail.com)
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License version 2
7 * as published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program; if not, write to the Free Software
15 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 **************************************************************************/
17
18 #ifndef TOOLTIP_H
19 #define TOOLTIP_H
20
21 #include <sys/time.h>
22
23 #include "task.h"
24
25 enum tooltip_state {
26 TOOLTIP_ABOUT_TO_SHOW,
27 TOOLTIP_ABOUT_TO_HIDE,
28 };
29
30 typedef struct {
31 Task* task;
32 Window window;
33 struct itimerval show_timeout;
34 struct itimerval hide_timeout;
35 Bool enabled;
36 enum tooltip_state current_state;
37 Bool mapped;
38 int paddingx;
39 int paddingy;
40 PangoFontDescription* font_desc;
41 config_color font_color;
42 Color background_color;
43 Border border;
44 } Tooltip;
45
46 extern Tooltip g_tooltip;
47
48
49 void init_tooltip();
50 void cleanup_tooltip();
51 void tooltip_sighandler(int sig);
52 void tooltip_trigger_show(Task* task, int x, int y);
53 void tooltip_show();
54 void tooltip_update();
55 void tooltip_trigger_hide();
56 void tooltip_hide();
57
58 #endif // TOOLTIP_H
This page took 0.042858 seconds and 5 git commands to generate.