1/*
2 * SPDX-License-Identifier: LGPL-2.1-or-later
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 License, 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
18#pragma once
19
20#include <gtk/gtklayoutmanager.h>
21
22G_BEGIN_DECLS
23
24#define GTK_TYPE_CENTER_LAYOUT (gtk_center_layout_get_type ())
25
26GDK_AVAILABLE_IN_ALL
27G_DECLARE_FINAL_TYPE (GtkCenterLayout, gtk_center_layout, GTK, CENTER_LAYOUT, GtkLayoutManager)
28
29GDK_AVAILABLE_IN_ALL
30GtkLayoutManager * gtk_center_layout_new (void);
31GDK_AVAILABLE_IN_ALL
32void gtk_center_layout_set_orientation (GtkCenterLayout *self,
33 GtkOrientation orientation);
34GDK_AVAILABLE_IN_ALL
35GtkOrientation gtk_center_layout_get_orientation (GtkCenterLayout *self);
36GDK_AVAILABLE_IN_ALL
37void gtk_center_layout_set_baseline_position (GtkCenterLayout *self,
38 GtkBaselinePosition baseline_position);
39GDK_AVAILABLE_IN_ALL
40GtkBaselinePosition gtk_center_layout_get_baseline_position (GtkCenterLayout *self);
41GDK_AVAILABLE_IN_ALL
42void gtk_center_layout_set_start_widget (GtkCenterLayout *self,
43 GtkWidget *widget);
44GDK_AVAILABLE_IN_ALL
45GtkWidget * gtk_center_layout_get_start_widget (GtkCenterLayout *self);
46GDK_AVAILABLE_IN_ALL
47void gtk_center_layout_set_center_widget (GtkCenterLayout *self,
48 GtkWidget *widget);
49GDK_AVAILABLE_IN_ALL
50GtkWidget * gtk_center_layout_get_center_widget (GtkCenterLayout *self);
51GDK_AVAILABLE_IN_ALL
52void gtk_center_layout_set_end_widget (GtkCenterLayout *self,
53 GtkWidget *widget);
54GDK_AVAILABLE_IN_ALL
55GtkWidget * gtk_center_layout_get_end_widget (GtkCenterLayout *self);
56
57
58G_END_DECLS
59

source code of gtk/gtk/gtkcenterlayout.h