]> Dogcows Code - chaz/tint2/blob - src/tooltip/tooltip.h
d575773bac753ef8db25e82da3d544b42cf5c8ef
[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 Color font_color;
39 Background* bg;
40 timeout* timeout;
41 } Tooltip;
42
43 extern Tooltip g_tooltip;
44
45
46 // default global data
47 void default_tooltip();
48
49 // freed memory
50 void cleanup_tooltip();
51
52 void init_tooltip();
53 void tooltip_trigger_show(Area* area, Panel* p, XEvent *e);
54 void tooltip_show(void* /*arg*/);
55 void tooltip_update();
56 void tooltip_trigger_hide();
57 void tooltip_hide(void* /*arg*/);
58 void tooltip_copy_text(Area* area);
59
60 #endif // TOOLTIP_H
This page took 0.032651 seconds and 3 git commands to generate.