initial release
[skippy-xd] / tooltip.h
1 /* Skippy - Seduces Kids Into Perversion
2  *
3  * Copyright (C) 2004 Hyriand <hyriand@thegraveyard.org>
4  *
5  * This program is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18  */
19
20 #ifndef SKIPPY_TOOLTIP_H
21 #define SKIPPY_TOOLTIP_H
22
23 struct _Tooltip {
24         MainWin *mainwin;
25         
26         unsigned int width, height;
27         
28         Window window;
29         XftFont *font;
30         XftDraw *draw;
31         XftColor color, background, border, shadow;
32         XGlyphInfo extents;
33         int font_height;
34         
35         FcChar8 *text;
36         int text_len;
37 };
38 typedef struct _Tooltip Tooltip;
39
40 Tooltip *tooltip_create(MainWin *, dlist *);
41 void tooltip_destroy(Tooltip *);
42 void tooltip_map(Tooltip *, int, int, const FcChar8 *, int);
43 void tooltip_unmap(Tooltip *);
44 void tooltip_handle(Tooltip *, XEvent *);
45 void tooltip_move(Tooltip *, int, int);
46
47 #endif /* SKIPPY_TOOLTIP_H */