pidgintooltip.h

Go to the documentation of this file.
00001 
00006 /* pidgin
00007  *
00008  * Pidgin is the legal property of its developers, whose names are too numerous
00009  * to list here.  Please refer to the COPYRIGHT file distributed with this
00010  * source distribution.
00011  *
00012  * This program is free software; you can redistribute it and/or modify
00013  * it under the terms of the GNU General Public License as published by
00014  * the Free Software Foundation; either version 2 of the License, or
00015  * (at your option) any later version.
00016  *
00017  * This program is distributed in the hope that it will be useful,
00018  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00019  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020  * GNU General Public License for more details.
00021  *
00022  * You should have received a copy of the GNU General Public License
00023  * along with this program; if not, write to the Free Software
00024  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02111-1301  USA
00025  */
00026 #ifndef _PIDGIN_TOOLTIP_H_
00027 #define _PIDGIN_TOOLTIP_H_
00028 
00029 #include <gtk/gtk.h>
00030 
00041 typedef gboolean (*PidginTooltipCreateForTree)(GtkWidget *tipwindow,
00042             GtkTreePath *path, gpointer userdata, int *w, int *h);
00043 
00053 typedef gboolean (*PidginTooltipCreate)(GtkWidget *tipwindow,
00054             gpointer userdata, int *w, int *h);
00055 
00063 typedef gboolean (*PidginTooltipPaint)(GtkWidget *tipwindow, gpointer userdata);
00064 
00076 gboolean pidgin_tooltip_setup_for_treeview(GtkWidget *tree, gpointer userdata,
00077         PidginTooltipCreateForTree create_cb, PidginTooltipPaint paint_cb);
00078 
00090 gboolean pidgin_tooltip_setup_for_widget(GtkWidget *widget, gpointer userdata,
00091         PidginTooltipCreate create_cb, PidginTooltipPaint paint_cb);
00092 
00097 void pidgin_tooltip_destroy(void);
00098 
00109 void pidgin_tooltip_show(GtkWidget *widget, gpointer userdata,
00110         PidginTooltipCreate create_cb, PidginTooltipPaint paint_cb);
00111 
00112 #endif