1 | /* GTK - The GIMP Toolkit |
2 | * Copyright 2015 Emmanuele Bassi |
3 | * |
4 | * This library is free software; you can redistribute it and/or |
5 | * modify it under the terms of the GNU Lesser 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. |
8 | * |
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 | * Lesser General Public License for more details. |
13 | * |
14 | * You should have received a copy of the GNU Lesser General Public |
15 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. |
16 | */ |
17 | |
18 | /* |
19 | * Modified by the GTK+ Team and others 1997-2000. See the AUTHORS |
20 | * file for a list of people on the GTK+ Team. See the ChangeLog |
21 | * files for a list of changes. These files are distributed with |
22 | * GTK+ at ftp://ftp.gtk.org/pub/gtk/. |
23 | */ |
24 | |
25 | #ifndef __GTK_TOOLTIP_WINDOW_PRIVATE_H__ |
26 | #define __GTK_TOOLTIP_WINDOW_PRIVATE_H__ |
27 | |
28 | #include <gio/gio.h> |
29 | #include <gdk-pixbuf/gdk-pixbuf.h> |
30 | #include <gtk/gtkwindow.h> |
31 | |
32 | G_BEGIN_DECLS |
33 | |
34 | #define GTK_TYPE_TOOLTIP_WINDOW (gtk_tooltip_window_get_type ()) |
35 | |
36 | G_DECLARE_FINAL_TYPE (GtkTooltipWindow, gtk_tooltip_window, GTK, TOOLTIP_WINDOW, GtkWidget) |
37 | |
38 | GtkWidget * gtk_tooltip_window_new (void); |
39 | |
40 | void gtk_tooltip_window_present (GtkTooltipWindow *window); |
41 | |
42 | void gtk_tooltip_window_set_label_markup (GtkTooltipWindow *window, |
43 | const char *markup); |
44 | void gtk_tooltip_window_set_label_text (GtkTooltipWindow *window, |
45 | const char *text); |
46 | void gtk_tooltip_window_set_image_icon (GtkTooltipWindow *window, |
47 | GdkPaintable *paintable); |
48 | void gtk_tooltip_window_set_image_icon_from_name (GtkTooltipWindow *window, |
49 | const char *icon_name); |
50 | void gtk_tooltip_window_set_image_icon_from_gicon (GtkTooltipWindow *window, |
51 | GIcon *gicon); |
52 | void gtk_tooltip_window_set_custom_widget (GtkTooltipWindow *window, |
53 | GtkWidget *custom_widget); |
54 | void gtk_tooltip_window_set_relative_to (GtkTooltipWindow *window, |
55 | GtkWidget *relative_to); |
56 | void gtk_tooltip_window_position (GtkTooltipWindow *window, |
57 | GdkRectangle *rect, |
58 | GdkGravity rect_anchor, |
59 | GdkGravity surface_anchor, |
60 | GdkAnchorHints anchor_hints, |
61 | int dx, |
62 | int dy); |
63 | |
64 | G_END_DECLS |
65 | |
66 | #endif /* __GTK_TOOLTIP_WINDOW_PRIVATE_H__ */ |
67 | |