]> Dogcows Code - chaz/tint2/blob - src/tooltip/tooltip.h
*add* more task states (normal, active, iconified, urgent), with each an own backgrou...
[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 void init_tooltip();
46 void cleanup_tooltip();
47 void tooltip_trigger_show(Area* area, Panel* p, int x, int y);
48 void tooltip_show(void* /*arg*/);
49 void tooltip_update();
50 void tooltip_trigger_hide();
51 void tooltip_hide(void* /*arg*/);
52
53 #endif // TOOLTIP_H
This page took 0.042971 seconds and 5 git commands to generate.