1 | /* gtkboxlayout.h: Box layout manager |
2 | * |
3 | * Copyright 2019 GNOME Foundation |
4 | * |
5 | * This library is free software; you can redistribute it and/or |
6 | * modify it under the terms of the GNU Lesser General Public |
7 | * License as published by the Free Software Foundation; either |
8 | * version 2 of the License, or (at your option) any later version. |
9 | * |
10 | * This library is distributed in the hope that it will be useful, |
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | * Lesser General Public License for more details. |
14 | * |
15 | * You should have received a copy of the GNU Lesser General Public |
16 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. |
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/gtkenums.h> |
26 | #include <gtk/gtklayoutmanager.h> |
27 | |
28 | G_BEGIN_DECLS |
29 | |
30 | #define GTK_TYPE_BOX_LAYOUT (gtk_box_layout_get_type()) |
31 | |
32 | GDK_AVAILABLE_IN_ALL |
33 | G_DECLARE_FINAL_TYPE (GtkBoxLayout, gtk_box_layout, GTK, BOX_LAYOUT, GtkLayoutManager) |
34 | |
35 | GDK_AVAILABLE_IN_ALL |
36 | GtkLayoutManager * gtk_box_layout_new (GtkOrientation orientation); |
37 | |
38 | GDK_AVAILABLE_IN_ALL |
39 | void gtk_box_layout_set_homogeneous (GtkBoxLayout *box_layout, |
40 | gboolean homogeneous); |
41 | GDK_AVAILABLE_IN_ALL |
42 | gboolean gtk_box_layout_get_homogeneous (GtkBoxLayout *box_layout); |
43 | GDK_AVAILABLE_IN_ALL |
44 | void gtk_box_layout_set_spacing (GtkBoxLayout *box_layout, |
45 | guint spacing); |
46 | GDK_AVAILABLE_IN_ALL |
47 | guint gtk_box_layout_get_spacing (GtkBoxLayout *box_layout); |
48 | GDK_AVAILABLE_IN_ALL |
49 | void gtk_box_layout_set_baseline_position (GtkBoxLayout *box_layout, |
50 | GtkBaselinePosition position); |
51 | GDK_AVAILABLE_IN_ALL |
52 | GtkBaselinePosition gtk_box_layout_get_baseline_position (GtkBoxLayout *box_layout); |
53 | |
54 | G_END_DECLS |
55 | |