]> Pileus Git - ~andy/gtk/blob - gtk/gtkapplicationwindow.h
stylecontext: Do invalidation on first resize container
[~andy/gtk] / gtk / gtkapplicationwindow.h
1 /*
2  * Copyright © 2011 Canonical Limited
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 licence, 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  * Author: Ryan Lortie <desrt@desrt.ca>
18  */
19
20 #ifndef __GTK_APPLICATION_WINDOW_H__
21 #define __GTK_APPLICATION_WINDOW_H__
22
23 #include <gtk/gtkwindow.h>
24
25 G_BEGIN_DECLS
26
27 #define GTK_TYPE_APPLICATION_WINDOW            (gtk_application_window_get_type ())
28 #define GTK_APPLICATION_WINDOW(inst)           (G_TYPE_CHECK_INSTANCE_CAST ((inst), \
29                                                 GTK_TYPE_APPLICATION_WINDOW, GtkApplicationWindow))
30 #define GTK_APPLICATION_WINDOW_CLASS(class)    (G_TYPE_CHECK_CLASS_CAST ((class),   \
31                                                 GTK_TYPE_APPLICATION_WINDOW, GtkApplicationWindowClass))
32 #define GTK_IS_APPLICATION_WINDOW(inst)        (G_TYPE_CHECK_INSTANCE_TYPE ((inst), \
33                                                 GTK_TYPE_APPLICATION_WINDOW))
34 #define GTK_IS_APPLICATION_WINDOW_CLASS(class) (G_TYPE_CHECK_CLASS_TYPE ((class),   \
35                                                 GTK_TYPE_APPLICATION_WINDOW))
36 #define GTK_APPLICATION_WINDOW_GET_CLASS(inst) (G_TYPE_INSTANCE_GET_CLASS ((inst),  \
37                                                 GTK_TYPE_APPLICATION_WINDOW, GtkApplicationWindowClass))
38
39 typedef struct _GtkApplicationWindowPrivate GtkApplicationWindowPrivate;
40 typedef struct _GtkApplicationWindowClass   GtkApplicationWindowClass;
41 typedef struct _GtkApplicationWindow        GtkApplicationWindow;
42
43 struct _GtkApplicationWindow
44 {
45   GtkWindow parent_instance;
46
47   /*< private >*/
48   GtkApplicationWindowPrivate *priv;
49 };
50
51 struct _GtkApplicationWindowClass
52 {
53   GtkWindowClass parent_class;
54
55   /*< private >*/
56   gpointer padding[14];
57 };
58
59 GDK_AVAILABLE_IN_3_4
60 GType       gtk_application_window_get_type          (void) G_GNUC_CONST;
61 GDK_AVAILABLE_IN_3_4
62 GtkWidget * gtk_application_window_new               (GtkApplication      *application);
63
64 GDK_AVAILABLE_IN_3_4
65 void        gtk_application_window_set_show_menubar (GtkApplicationWindow *window,
66                                                      gboolean              show_menubar);
67 GDK_AVAILABLE_IN_3_4
68 gboolean    gtk_application_window_get_show_menubar (GtkApplicationWindow *window);
69
70 GDK_AVAILABLE_IN_3_6
71 guint       gtk_application_window_get_id           (GtkApplicationWindow *window);
72
73 G_END_DECLS
74
75 #endif /* __GTK_APPLICATION_WINDOW_H__ */