Commit a7b9a33e authored by Timm Bäder's avatar Timm Bäder 👎

Add GtkCenterLayout

And use it in GtkCenterBox, different widgets following.
parent 32b84b8a
......@@ -341,6 +341,30 @@ GTK_CENTER_BOX_GET_CLASS
gtk_center_box_get_type
</SECTION>
<SECTION>
<FILE>gtkcenterlayout</FILE>
<TITLE>GtkCenterLayout</TITLE>
GtkCenterLayout
gtk_center_layout_new
gtk_center_layout_set_start_widget
gtk_center_layout_set_center_widget
gtk_center_layout_set_end_widget
gtk_center_layout_get_start_widget
gtk_center_layout_get_center_widget
gtk_center_layout_get_end_widget
gtk_center_layout_set_baseline_position
gtk_center_layout_get_baseline_position
<SUBSECTION Private>
GTK_TYPE_CENTER_layout
GTK_CENTER_LAYOUT
GTK_CENTER_LAYOUT_CLASS
GTK_IS_CENTER_LAYOUT
GTK_IS_CENTER_LAYOUT_CLASS
GTK_CENTER_LAYOUT_GET_CLASS
<SUBSECTION Private>
gtk_center_layout_get_type
</SECTION>
<SECTION>
<FILE>gtklistbox</FILE>
<TITLE>GtkListBox</TITLE>
......
......@@ -73,6 +73,7 @@
#include <gtk/gtkcellrenderertoggle.h>
#include <gtk/gtkcellview.h>
#include <gtk/gtkcenterbox.h>
#include <gtk/gtkcenterlayout.h>
#include <gtk/gtkcheckbutton.h>
#include <gtk/gtkcheckmenuitem.h>
#include <gtk/gtkcolorbutton.h>
......
This diff is collapsed.
This diff is collapsed.
/*
* SPDX-License-Identifier: LGPL-2.1-or-later
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
#pragma once
#include <gtk/gtklayoutmanager.h>
G_BEGIN_DECLS
#define GTK_TYPE_CENTER_LAYOUT (gtk_center_layout_get_type ())
GDK_AVAILABLE_IN_ALL
G_DECLARE_FINAL_TYPE (GtkCenterLayout, gtk_center_layout, GTK, CENTER_LAYOUT, GtkLayoutManager)
GDK_AVAILABLE_IN_ALL
GtkLayoutManager * gtk_center_layout_new (void);
GDK_AVAILABLE_IN_ALL
void gtk_center_layout_set_orientation (GtkCenterLayout *self,
GtkOrientation orientation);
GDK_AVAILABLE_IN_ALL
GtkOrientation gtk_center_layout_get_orientation (GtkCenterLayout *self);
GDK_AVAILABLE_IN_ALL
void gtk_center_layout_set_baseline_position (GtkCenterLayout *self,
GtkBaselinePosition baseline_position);
GDK_AVAILABLE_IN_ALL
GtkBaselinePosition gtk_center_layout_get_baseline_position (GtkCenterLayout *self);
GDK_AVAILABLE_IN_ALL
void gtk_center_layout_set_start_widget (GtkCenterLayout *self,
GtkWidget *widget);
GDK_AVAILABLE_IN_ALL
GtkWidget * gtk_center_layout_get_start_widget (GtkCenterLayout *self);
GDK_AVAILABLE_IN_ALL
void gtk_center_layout_set_center_widget (GtkCenterLayout *self,
GtkWidget *widget);
GDK_AVAILABLE_IN_ALL
GtkWidget * gtk_center_layout_get_center_widget (GtkCenterLayout *self);
GDK_AVAILABLE_IN_ALL
void gtk_center_layout_set_end_widget (GtkCenterLayout *self,
GtkWidget *widget);
GDK_AVAILABLE_IN_ALL
GtkWidget * gtk_center_layout_get_end_widget (GtkCenterLayout *self);
G_END_DECLS
......@@ -194,6 +194,7 @@ gtk_public_sources = files([
'gtkcellrenderertoggle.c',
'gtkcellview.c',
'gtkcenterbox.c',
'gtkcenterlayout.c',
'gtkcheckbutton.c',
'gtkcheckmenuitem.c',
'gtkcolorbutton.c',
......@@ -442,6 +443,7 @@ gtk_public_headers = files([
'gtkbutton.h',
'gtkcalendar.h',
'gtkcenterbox.h',
'gtkcenterlayout.h',
'gtkcellarea.h',
'gtkcellareabox.h',
'gtkcellareacontext.h',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment