1 /*
2  * Copyright (c) 2013 Red Hat, Inc.
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License as published by
6  * the Free Software Foundation; either version 2 of the License, or (at your
7  * option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful, but
10  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
11  * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
12  * License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public License
15  * along with this program; if not, write to the Free Software Foundation,
16  * Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
17  *
18  */
19 
20 #ifndef __GTK_HEADER_BAR_H__
21 #define __GTK_HEADER_BAR_H__
22 
23 #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
24 #error "Only <gtk/gtk.h> can be included directly."
25 #endif
26 
27 #include <gtk/gtkwidget.h>
28 
29 G_BEGIN_DECLS
30 
31 #define GTK_TYPE_HEADER_BAR            (gtk_header_bar_get_type ())
32 #define GTK_HEADER_BAR(obj)            (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_HEADER_BAR, GtkHeaderBar))
33 #define GTK_IS_HEADER_BAR(obj)         (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_HEADER_BAR))
34 
35 typedef struct _GtkHeaderBar              GtkHeaderBar;
36 
37 GDK_AVAILABLE_IN_ALL
38 GType        gtk_header_bar_get_type          (void) G_GNUC_CONST;
39 GDK_AVAILABLE_IN_ALL
40 GtkWidget   *gtk_header_bar_new               (void);
41 
42 GDK_AVAILABLE_IN_ALL
43 void         gtk_header_bar_set_title_widget  (GtkHeaderBar *bar,
44                                                GtkWidget    *title_widget);
45 GDK_AVAILABLE_IN_ALL
46 GtkWidget   *gtk_header_bar_get_title_widget  (GtkHeaderBar *bar);
47 GDK_AVAILABLE_IN_ALL
48 void         gtk_header_bar_pack_start        (GtkHeaderBar *bar,
49                                                GtkWidget    *child);
50 GDK_AVAILABLE_IN_ALL
51 void         gtk_header_bar_pack_end          (GtkHeaderBar *bar,
52                                                GtkWidget    *child);
53 GDK_AVAILABLE_IN_ALL
54 void         gtk_header_bar_remove            (GtkHeaderBar *bar,
55                                                GtkWidget    *child);
56 
57 GDK_AVAILABLE_IN_ALL
58 gboolean     gtk_header_bar_get_show_title_buttons (GtkHeaderBar *bar);
59 
60 GDK_AVAILABLE_IN_ALL
61 void         gtk_header_bar_set_show_title_buttons (GtkHeaderBar *bar,
62                                                     gboolean      setting);
63 
64 GDK_AVAILABLE_IN_ALL
65 void         gtk_header_bar_set_decoration_layout (GtkHeaderBar *bar,
66                                                    const char   *layout);
67 GDK_AVAILABLE_IN_ALL
68 const char *gtk_header_bar_get_decoration_layout (GtkHeaderBar *bar);
69 
70 G_END_DECLS
71 
72 #endif /* __GTK_HEADER_BAR_H__ */
73