]> Pileus Git - ~andy/gtk/blob - gtk/gtkbubblewindowprivate.h
stylecontext: Do invalidation on first resize container
[~andy/gtk] / gtk / gtkbubblewindowprivate.h
1 /* GTK - The GIMP Toolkit
2  * Copyright © 2013 Carlos Garnacho <carlosg@gnome.org>
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 #ifndef __GTK_BUBBLE_WINDOW_H__
19 #define __GTK_BUBBLE_WINDOW_H__
20
21 #include <gtk/gtkwindow.h>
22
23 G_BEGIN_DECLS
24
25 #define GTK_TYPE_BUBBLE_WINDOW           (_gtk_bubble_window_get_type ())
26 #define GTK_BUBBLE_WINDOW(o)             (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_BUBBLE_WINDOW, GtkBubbleWindow))
27 #define GTK_BUBBLE_WINDOW_CLASS(c)       (G_TYPE_CHECK_CLASS_CAST ((c), GTK_TYPE_BUBBLE_WINDOW, GtkBubbleWindowClass))
28 #define GTK_IS_BUBBLE_WINDOW(o)          (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_BUBBLE_WINDOW))
29 #define GTK_IS_BUBBLE_WINDOW_CLASS(o)    (G_TYPE_CHECK_CLASS_TYPE ((o), GTK_TYPE_BUBBLE_WINDOW))
30 #define GTK_BUBBLE_WINDOW_GET_CLASS(o)   (G_TYPE_INSTANCE_GET_CLASS ((o), GTK_TYPE_BUBBLE_WINDOW, GtkBubbleWindowClass))
31
32 typedef struct _GtkBubbleWindow GtkBubbleWindow;
33 typedef struct _GtkBubbleWindowClass GtkBubbleWindowClass;
34
35 struct _GtkBubbleWindow
36 {
37   GtkWindow parent_instance;
38
39   /*< private >*/
40   gpointer priv;
41 };
42
43 struct _GtkBubbleWindowClass
44 {
45   GtkWindowClass parent_class;
46 };
47
48 GType       _gtk_bubble_window_get_type        (void) G_GNUC_CONST;
49
50 GtkWidget * _gtk_bubble_window_new             (void);
51
52 void        _gtk_bubble_window_set_relative_to (GtkBubbleWindow *window,
53                                                 GdkWindow       *relative_to);
54 GdkWindow * _gtk_bubble_window_get_relative_to (GtkBubbleWindow *window);
55
56 void        _gtk_bubble_window_set_pointing_to (GtkBubbleWindow       *window,
57                                                 cairo_rectangle_int_t *rect);
58 gboolean    _gtk_bubble_window_get_pointing_to (GtkBubbleWindow       *window,
59                                                 cairo_rectangle_int_t *rect);
60 void        _gtk_bubble_window_set_position    (GtkBubbleWindow       *window,
61                                                 GtkPositionType        position);
62
63 GtkPositionType
64             _gtk_bubble_window_get_position    (GtkBubbleWindow       *window);
65
66 void        _gtk_bubble_window_popup           (GtkBubbleWindow       *window,
67                                                 GdkWindow             *relative_to,
68                                                 cairo_rectangle_int_t *pointing_to,
69                                                 GtkPositionType        position);
70
71 void        _gtk_bubble_window_popdown         (GtkBubbleWindow       *window);
72
73 gboolean    _gtk_bubble_window_grab            (GtkBubbleWindow       *window,
74                                                 GdkDevice             *device,
75                                                 guint32                activate_time);
76
77 void        _gtk_bubble_window_ungrab          (GtkBubbleWindow       *window);
78
79 G_END_DECLS
80
81 #endif /* __GTK_BUBBLE_WINDOW_H__ */