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
28G_BEGIN_DECLS
29
30#define GTK_TYPE_BOX_LAYOUT (gtk_box_layout_get_type())
31
32GDK_AVAILABLE_IN_ALL
33G_DECLARE_FINAL_TYPE (GtkBoxLayout, gtk_box_layout, GTK, BOX_LAYOUT, GtkLayoutManager)
34
35GDK_AVAILABLE_IN_ALL
36GtkLayoutManager * gtk_box_layout_new (GtkOrientation orientation);
37
38GDK_AVAILABLE_IN_ALL
39void gtk_box_layout_set_homogeneous (GtkBoxLayout *box_layout,
40 gboolean homogeneous);
41GDK_AVAILABLE_IN_ALL
42gboolean gtk_box_layout_get_homogeneous (GtkBoxLayout *box_layout);
43GDK_AVAILABLE_IN_ALL
44void gtk_box_layout_set_spacing (GtkBoxLayout *box_layout,
45 guint spacing);
46GDK_AVAILABLE_IN_ALL
47guint gtk_box_layout_get_spacing (GtkBoxLayout *box_layout);
48GDK_AVAILABLE_IN_ALL
49void gtk_box_layout_set_baseline_position (GtkBoxLayout *box_layout,
50 GtkBaselinePosition position);
51GDK_AVAILABLE_IN_ALL
52GtkBaselinePosition gtk_box_layout_get_baseline_position (GtkBoxLayout *box_layout);
53
54G_END_DECLS
55

source code of gtk/gtk/gtkboxlayout.h