<?xml version="1.0"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN"
               "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
<!ENTITY % local.common.attrib "xmlns:xi  CDATA  #FIXED 'http://www.w3.org/2003/XInclude'">
<!ENTITY version SYSTEM "version.xml">
<!ENTITY pi "&#960;">
<!ENTITY solidus "&#8260;">
]>
<refentry id="GtkCenterLayout">
<refmeta>
<refentrytitle role="top_of_page" id="GtkCenterLayout.top_of_page">GtkCenterLayout</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GTK4 Library</refmiscinfo>
</refmeta>
<refnamediv>
<refname>GtkCenterLayout</refname>
<refpurpose>A centering layout</refpurpose>
</refnamediv>

<refsect1 id="GtkCenterLayout.functions" role="functions_proto">
<title role="functions_proto.title">Functions</title>
<informaltable pgwide="1" frame="none">
<tgroup cols="2">
<colspec colname="functions_proto_type" colwidth="150px"/>
<colspec colname="functions_proto_name"/>
<tbody>
<row><entry role="function_type"><link linkend="GtkLayoutManager"><returnvalue>GtkLayoutManager</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="gtk-center-layout-new">gtk_center_layout_new</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-center-layout-set-orientation">gtk_center_layout_set_orientation</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="GtkOrientation"><returnvalue>GtkOrientation</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-center-layout-get-orientation">gtk_center_layout_get_orientation</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-center-layout-set-baseline-position">gtk_center_layout_set_baseline_position</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="GtkBaselinePosition"><returnvalue>GtkBaselinePosition</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-center-layout-get-baseline-position">gtk_center_layout_get_baseline_position</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-center-layout-set-start-widget">gtk_center_layout_set_start_widget</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="GtkWidget"><returnvalue>GtkWidget</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="gtk-center-layout-get-start-widget">gtk_center_layout_get_start_widget</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-center-layout-set-center-widget">gtk_center_layout_set_center_widget</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="GtkWidget"><returnvalue>GtkWidget</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="gtk-center-layout-get-center-widget">gtk_center_layout_get_center_widget</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-center-layout-set-end-widget">gtk_center_layout_set_end_widget</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="GtkWidget"><returnvalue>GtkWidget</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="gtk-center-layout-get-end-widget">gtk_center_layout_get_end_widget</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkCenterLayout.other" role="other_proto">
<title role="other_proto.title">Types and Values</title>
<informaltable pgwide="1" frame="none">
<tgroup cols="2">
<colspec colname="other_proto_type" colwidth="150px"/>
<colspec colname="other_proto_name"/>
<tbody>
<row><entry role="datatype_keyword"></entry><entry role="function_name"><link linkend="GtkCenterLayout-struct">GtkCenterLayout</link></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkCenterLayout.object-hierarchy" role="object_hierarchy">
<title role="object_hierarchy.title">Object Hierarchy</title>
<screen>    <link linkend="GObject">GObject</link>
    <phrase role="lineart">&#9584;&#9472;&#9472;</phrase> <link linkend="GtkLayoutManager">GtkLayoutManager</link>
        <phrase role="lineart">&#9584;&#9472;&#9472;</phrase> GtkCenterLayout
</screen>
</refsect1>

<refsect1 id="GtkCenterLayout.includes"><title>Includes</title><synopsis>#include &lt;gtk/gtk.h&gt;
</synopsis></refsect1>

<refsect1 id="GtkCenterLayout.description" role="desc">
<title role="desc.title">Description</title>
<para>A <link linkend="GtkCenterLayout"><type>GtkCenterLayout</type></link> is a layout manager that manages up to three children.
The start widget is allocated at the start of the layout (left in LRT
layouts and right in RTL ones), and the end widget at the end.</para>
<para>The center widget is centered regarding the full width of the layout's.</para>

</refsect1>
<refsect1 id="GtkCenterLayout.functions_details" role="details">
<title role="details.title">Functions</title>
<refsect2 id="gtk-center-layout-new" role="function">
<title>gtk_center_layout_new&#160;()</title>
<indexterm zone="gtk-center-layout-new"><primary>gtk_center_layout_new</primary></indexterm>
<programlisting language="C"><link linkend="GtkLayoutManager"><returnvalue>GtkLayoutManager</returnvalue></link>&#160;*
gtk_center_layout_new (<parameter><type>void</type></parameter>);</programlisting>
<para>Creates a new <link linkend="GtkCenterLayout"><type>GtkCenterLayout</type></link>.</para>
<refsect3 id="gtk-center-layout-new.returns" role="returns">
<title>Returns</title>
<para> the newly created <link linkend="GtkCenterLayout"><type>GtkCenterLayout</type></link></para>
</refsect3></refsect2>
<refsect2 id="gtk-center-layout-set-orientation" role="function">
<title>gtk_center_layout_set_orientation&#160;()</title>
<indexterm zone="gtk-center-layout-set-orientation"><primary>gtk_center_layout_set_orientation</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_center_layout_set_orientation (<parameter><link linkend="GtkCenterLayout"><type>GtkCenterLayout</type></link> *self</parameter>,
                                   <parameter><link linkend="GtkOrientation"><type>GtkOrientation</type></link> orientation</parameter>);</programlisting>
<para>Sets the orientation of <parameter>self</parameter>
.</para>
<refsect3 id="gtk-center-layout-set-orientation.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>self</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkCenterLayout"><type>GtkCenterLayout</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>orientation</para></entry>
<entry role="parameter_description"><para>the new orientation</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-center-layout-get-orientation" role="function">
<title>gtk_center_layout_get_orientation&#160;()</title>
<indexterm zone="gtk-center-layout-get-orientation"><primary>gtk_center_layout_get_orientation</primary></indexterm>
<programlisting language="C"><link linkend="GtkOrientation"><returnvalue>GtkOrientation</returnvalue></link>
gtk_center_layout_get_orientation (<parameter><link linkend="GtkCenterLayout"><type>GtkCenterLayout</type></link> *self</parameter>);</programlisting>
<para>Gets the current orienration of the layout manager.</para>
<refsect3 id="gtk-center-layout-get-orientation.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>self</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkCenterLayout"><type>GtkCenterLayout</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-center-layout-get-orientation.returns" role="returns">
<title>Returns</title>
<para> The current orientation of <parameter>self</parameter>
</para>
</refsect3></refsect2>
<refsect2 id="gtk-center-layout-set-baseline-position" role="function">
<title>gtk_center_layout_set_baseline_position&#160;()</title>
<indexterm zone="gtk-center-layout-set-baseline-position"><primary>gtk_center_layout_set_baseline_position</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_center_layout_set_baseline_position
                               (<parameter><link linkend="GtkCenterLayout"><type>GtkCenterLayout</type></link> *self</parameter>,
                                <parameter><link linkend="GtkBaselinePosition"><type>GtkBaselinePosition</type></link> baseline_position</parameter>);</programlisting>
<para>Sets the new baseline position of <parameter>self</parameter>
</para>
<refsect3 id="gtk-center-layout-set-baseline-position.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>self</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkCenterLayout"><type>GtkCenterLayout</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>baseline_position</para></entry>
<entry role="parameter_description"><para>the new baseline position</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-center-layout-get-baseline-position" role="function">
<title>gtk_center_layout_get_baseline_position&#160;()</title>
<indexterm zone="gtk-center-layout-get-baseline-position"><primary>gtk_center_layout_get_baseline_position</primary></indexterm>
<programlisting language="C"><link linkend="GtkBaselinePosition"><returnvalue>GtkBaselinePosition</returnvalue></link>
gtk_center_layout_get_baseline_position
                               (<parameter><link linkend="GtkCenterLayout"><type>GtkCenterLayout</type></link> *self</parameter>);</programlisting>
<para>Returns the baseline position of the layout.</para>
<refsect3 id="gtk-center-layout-get-baseline-position.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>self</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkCenterLayout"><type>GtkCenterLayout</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-center-layout-get-baseline-position.returns" role="returns">
<title>Returns</title>
<para> The current baseline position of <parameter>self</parameter>
.</para>
</refsect3></refsect2>
<refsect2 id="gtk-center-layout-set-start-widget" role="function">
<title>gtk_center_layout_set_start_widget&#160;()</title>
<indexterm zone="gtk-center-layout-set-start-widget"><primary>gtk_center_layout_set_start_widget</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_center_layout_set_start_widget (<parameter><link linkend="GtkCenterLayout"><type>GtkCenterLayout</type></link> *self</parameter>,
                                    <parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>);</programlisting>
<para>Sets the new start widget of <parameter>self</parameter>
.</para>
<refsect3 id="gtk-center-layout-set-start-widget.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>self</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkCenterLayout"><type>GtkCenterLayout</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>widget</para></entry>
<entry role="parameter_description"><para>the new start widget</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-center-layout-get-start-widget" role="function">
<title>gtk_center_layout_get_start_widget&#160;()</title>
<indexterm zone="gtk-center-layout-get-start-widget"><primary>gtk_center_layout_get_start_widget</primary></indexterm>
<programlisting language="C"><link linkend="GtkWidget"><returnvalue>GtkWidget</returnvalue></link>&#160;*
gtk_center_layout_get_start_widget (<parameter><link linkend="GtkCenterLayout"><type>GtkCenterLayout</type></link> *self</parameter>);</programlisting>
<para>Returns the start widget fo the layout.</para>
<refsect3 id="gtk-center-layout-get-start-widget.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>self</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkCenterLayout"><type>GtkCenterLayout</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-center-layout-get-start-widget.returns" role="returns">
<title>Returns</title>
<para>The current start widget of <parameter>self</parameter>
. </para>
<para><emphasis role="annotation">[<acronym>transfer none</acronym>]</emphasis></para>
</refsect3></refsect2>
<refsect2 id="gtk-center-layout-set-center-widget" role="function">
<title>gtk_center_layout_set_center_widget&#160;()</title>
<indexterm zone="gtk-center-layout-set-center-widget"><primary>gtk_center_layout_set_center_widget</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_center_layout_set_center_widget (<parameter><link linkend="GtkCenterLayout"><type>GtkCenterLayout</type></link> *self</parameter>,
                                     <parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>);</programlisting>
<para>Sets the new center widget of <parameter>self</parameter>
</para>
<refsect3 id="gtk-center-layout-set-center-widget.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>self</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkCenterLayout"><type>GtkCenterLayout</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>widget</para></entry>
<entry role="parameter_description"><para>the new center widget</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-center-layout-get-center-widget" role="function">
<title>gtk_center_layout_get_center_widget&#160;()</title>
<indexterm zone="gtk-center-layout-get-center-widget"><primary>gtk_center_layout_get_center_widget</primary></indexterm>
<programlisting language="C"><link linkend="GtkWidget"><returnvalue>GtkWidget</returnvalue></link>&#160;*
gtk_center_layout_get_center_widget (<parameter><link linkend="GtkCenterLayout"><type>GtkCenterLayout</type></link> *self</parameter>);</programlisting>
<para>Returns the center widget of the layout.</para>
<refsect3 id="gtk-center-layout-get-center-widget.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>self</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkCenterLayout"><type>GtkCenterLayout</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-center-layout-get-center-widget.returns" role="returns">
<title>Returns</title>
<para>the current center widget of <parameter>self</parameter>
. </para>
<para><emphasis role="annotation">[<acronym>transfer none</acronym>]</emphasis></para>
</refsect3></refsect2>
<refsect2 id="gtk-center-layout-set-end-widget" role="function">
<title>gtk_center_layout_set_end_widget&#160;()</title>
<indexterm zone="gtk-center-layout-set-end-widget"><primary>gtk_center_layout_set_end_widget</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_center_layout_set_end_widget (<parameter><link linkend="GtkCenterLayout"><type>GtkCenterLayout</type></link> *self</parameter>,
                                  <parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>);</programlisting>
<para>Sets the new end widget of <parameter>self</parameter>
</para>
<refsect3 id="gtk-center-layout-set-end-widget.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>self</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkCenterLayout"><type>GtkCenterLayout</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>widget</para></entry>
<entry role="parameter_description"><para>the new end widget. </para></entry>
<entry role="parameter_annotations"><emphasis role="annotation">[<acronym>transfer none</acronym>]</emphasis></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-center-layout-get-end-widget" role="function">
<title>gtk_center_layout_get_end_widget&#160;()</title>
<indexterm zone="gtk-center-layout-get-end-widget"><primary>gtk_center_layout_get_end_widget</primary></indexterm>
<programlisting language="C"><link linkend="GtkWidget"><returnvalue>GtkWidget</returnvalue></link>&#160;*
gtk_center_layout_get_end_widget (<parameter><link linkend="GtkCenterLayout"><type>GtkCenterLayout</type></link> *self</parameter>);</programlisting>
<para>Returns the end widget of the layout.</para>
<refsect3 id="gtk-center-layout-get-end-widget.parameters" role="parameters">
<title>Parameters</title>
<informaltable role="parameters_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="parameters_name" colwidth="150px"/>
<colspec colname="parameters_description"/>
<colspec colname="parameters_annotations" colwidth="200px"/>
<tbody>
<row><entry role="parameter_name"><para>self</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkCenterLayout"><type>GtkCenterLayout</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-center-layout-get-end-widget.returns" role="returns">
<title>Returns</title>
<para>the current end widget of <parameter>self</parameter>
. </para>
<para><emphasis role="annotation">[<acronym>transfer none</acronym>]</emphasis></para>
</refsect3></refsect2>

</refsect1>
<refsect1 id="GtkCenterLayout.other_details" role="details">
<title role="details.title">Types and Values</title>
<refsect2 id="GtkCenterLayout-struct" role="struct">
<title>GtkCenterLayout</title>
<indexterm zone="GtkCenterLayout-struct"><primary>GtkCenterLayout</primary></indexterm>
<programlisting language="C">typedef struct _GtkCenterLayout GtkCenterLayout;</programlisting>
</refsect2>

</refsect1>

</refentry>
