]> Dogcows Code - chaz/tint2/blob - src/tooltip/tooltip.h
*change* make tooltip more generous, and preparation for setting a tooltip on the...
[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 #include "panel.h"
25
26
27 typedef struct {
28 Area* area;
29 Panel* panel;
30 Window window;
31 struct timespec show_timeout;
32 struct timespec hide_timeout;
33 Bool enabled;
34 Bool mapped;
35 int paddingx;
36 int paddingy;
37 PangoFontDescription* font_desc;
38 config_color font_color;
39 Color background_color;
40 Border border;
41 int show_timer_id;
42 int hide_timer_id;
43 } Tooltip;
44
45 extern Tooltip g_tooltip;
46
47 void init_tooltip();
48 void cleanup_tooltip();
49 void tooltip_trigger_show(Area* area, Panel* p, int x, int y);
50 void tooltip_show();
51 void tooltip_update();
52 void tooltip_trigger_hide();
53 void tooltip_hide();
54
55 #endif // TOOLTIP_H
This page took 0.042264 seconds and 5 git commands to generate.