]> Dogcows Code - chaz/tint2/blob - src/tooltip/tooltip.h
*add* interval timeouts are aligned to each other
[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 "task.h"
22 #include "panel.h"
23 #include "timer.h"
24
25
26 typedef struct {
27 Area* area; // never ever use the area attribut if you are not 100% sure that this area was not freed
28 char* tooltip_text;
29 Panel* panel;
30 Window window;
31 int show_timeout_msec;
32 int hide_timeout_msec;
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 const struct timeout* timeout;
42 } Tooltip;
43
44 extern Tooltip g_tooltip;
45
46 void init_tooltip();
47 void cleanup_tooltip();
48 void tooltip_trigger_show(Area* area, Panel* p, int x, int y);
49 void tooltip_show(void* /*arg*/);
50 void tooltip_update();
51 void tooltip_trigger_hide();
52 void tooltip_hide(void* /*arg*/);
53
54 #endif // TOOLTIP_H
This page took 0.03537 seconds and 4 git commands to generate.