1 /* GTK - The GIMP Toolkit
2 * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version.
9 * This library 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 GNU
12 * Library General Public License for more details.
14 * You should have received a copy of the GNU Library General Public
15 * License along with this library; if not, write to the
16 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17 * Boston, MA 02111-1307, USA.
19 #ifndef __GTK_TOOLTIPS_H__
20 #define __GTK_TOOLTIPS_H__
23 #include <gtk/gtkdata.h>
28 #endif /* __cplusplus */
30 #define GTK_TYPE_TOOLTIPS (gtk_tooltips_get_type ())
31 #define GTK_TOOLTIPS(obj) (GTK_CHECK_CAST ((obj), GTK_TYPE_TOOLTIPS, GtkTooltips))
32 #define GTK_TOOLTIPS_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), GTK_TYPE_TOOLTIPS, GtkTooltipsClass))
33 #define GTK_IS_TOOLTIPS(obj) (GTK_CHECK_TYPE ((obj), GTK_TYPE_TOOLTIPS))
34 #define GTK_IS_TOOLTIPS_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GTK_TYPE_TOOLTIPS))
36 typedef struct _GtkTooltips GtkTooltips;
37 typedef struct _GtkTooltipsClass GtkTooltipsClass;
38 typedef struct _GtkTooltipsData GtkTooltipsData;
40 struct _GtkTooltipsData
42 GtkTooltips *tooltips;
55 GtkWidget *tip_window;
56 GtkTooltipsData *active_tips_data;
57 GList *tips_data_list;
68 struct _GtkTooltipsClass
70 GtkDataClass parent_class;
73 GtkType gtk_tooltips_get_type (void);
74 GtkTooltips* gtk_tooltips_new (void);
76 void gtk_tooltips_enable (GtkTooltips *tooltips);
77 void gtk_tooltips_disable (GtkTooltips *tooltips);
78 void gtk_tooltips_set_delay (GtkTooltips *tooltips,
80 void gtk_tooltips_set_tip (GtkTooltips *tooltips,
82 const gchar *tip_text,
83 const gchar *tip_private);
84 void gtk_tooltips_set_colors (GtkTooltips *tooltips,
86 GdkColor *foreground);
87 GtkTooltipsData* gtk_tooltips_data_get (GtkWidget *widget);
88 void gtk_tooltips_force_window (GtkTooltips *tooltips);
94 #endif /* __cplusplus */
97 #endif /* __GTK_TOOLTIPS_H__ */