]> Dogcows Code - chaz/tint2/blob - src/tooltip/tooltip.h
*add* remove of tooltip = En/Disabled. it's renamed to task_tooltip to enable/disable...
[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 mapped;
34 int paddingx;
35 int paddingy;
36 PangoFontDescription* font_desc;
37 Color font_color;
38 Background* bg;
39 timeout* timeout;
40 } Tooltip;
41
42 extern Tooltip g_tooltip;
43
44
45 // default global data
46 void default_tooltip();
47
48 // freed memory
49 void cleanup_tooltip();
50
51 void init_tooltip();
52 void tooltip_trigger_show(Area* area, Panel* p, XEvent *e);
53 void tooltip_show(void* /*arg*/);
54 void tooltip_update();
55 void tooltip_trigger_hide();
56 void tooltip_hide(void* /*arg*/);
57 void tooltip_copy_text(Area* area);
58
59 #endif // TOOLTIP_H
This page took 0.034776 seconds and 4 git commands to generate.