1 | /* |
2 | * Copyright (c) 2020 Alexander Mikhaylenko <alexm@gnome.org> |
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 | #pragma once |
20 | |
21 | #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) |
22 | #error "Only <gtk/gtk.h> can be included directly." |
23 | #endif |
24 | |
25 | #include <gtk/gtkwidget.h> |
26 | |
27 | G_BEGIN_DECLS |
28 | |
29 | #define GTK_TYPE_WINDOW_CONTROLS (gtk_window_controls_get_type ()) |
30 | |
31 | GDK_AVAILABLE_IN_ALL |
32 | G_DECLARE_FINAL_TYPE (GtkWindowControls, gtk_window_controls, GTK, WINDOW_CONTROLS, GtkWidget) |
33 | |
34 | GDK_AVAILABLE_IN_ALL |
35 | GtkWidget * gtk_window_controls_new (GtkPackType side); |
36 | |
37 | GDK_AVAILABLE_IN_ALL |
38 | GtkPackType gtk_window_controls_get_side (GtkWindowControls *self); |
39 | |
40 | GDK_AVAILABLE_IN_ALL |
41 | void gtk_window_controls_set_side (GtkWindowControls *self, |
42 | GtkPackType side); |
43 | |
44 | GDK_AVAILABLE_IN_ALL |
45 | const char * gtk_window_controls_get_decoration_layout (GtkWindowControls *self); |
46 | |
47 | GDK_AVAILABLE_IN_ALL |
48 | void gtk_window_controls_set_decoration_layout (GtkWindowControls *self, |
49 | const char *layout); |
50 | |
51 | GDK_AVAILABLE_IN_ALL |
52 | gboolean gtk_window_controls_get_empty (GtkWindowControls *self); |
53 | |
54 | G_END_DECLS |
55 | |