<?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="GtkLayoutManager">
<refmeta>
<refentrytitle role="top_of_page" id="GtkLayoutManager.top_of_page">GtkLayoutManager</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GTK4 Library</refmiscinfo>
</refmeta>
<refnamediv>
<refname>GtkLayoutManager</refname>
<refpurpose>Base class for layout manager</refpurpose>
</refnamediv>

<refsect1 id="GtkLayoutManager.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="void"><returnvalue>void</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-layout-manager-measure">gtk_layout_manager_measure</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-layout-manager-allocate">gtk_layout_manager_allocate</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="GtkSizeRequestMode"><returnvalue>GtkSizeRequestMode</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-layout-manager-get-request-mode">gtk_layout_manager_get_request_mode</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-layout-manager-get-widget">gtk_layout_manager_get_widget</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="GtkLayoutChild"><returnvalue>GtkLayoutChild</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="gtk-layout-manager-get-layout-child">gtk_layout_manager_get_layout_child</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-layout-manager-layout-changed">gtk_layout_manager_layout_changed</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkLayoutManager.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="GtkLayoutManager-struct">GtkLayoutManager</link></entry></row>
<row><entry role="datatype_keyword">struct</entry><entry role="function_name"><link linkend="GtkLayoutManagerClass">GtkLayoutManagerClass</link></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkLayoutManager.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> GtkLayoutManager
        <phrase role="lineart">&#9500;&#9472;&#9472;</phrase> <link linkend="GtkBinLayout">GtkBinLayout</link>
        <phrase role="lineart">&#9500;&#9472;&#9472;</phrase> <link linkend="GtkBoxLayout">GtkBoxLayout</link>
        <phrase role="lineart">&#9500;&#9472;&#9472;</phrase> <link linkend="GtkCenterLayout">GtkCenterLayout</link>
        <phrase role="lineart">&#9500;&#9472;&#9472;</phrase> <link linkend="GtkConstraintLayout">GtkConstraintLayout</link>
        <phrase role="lineart">&#9500;&#9472;&#9472;</phrase> <link linkend="GtkFixedLayout">GtkFixedLayout</link>
        <phrase role="lineart">&#9584;&#9472;&#9472;</phrase> <link linkend="GtkGridLayout">GtkGridLayout</link>
</screen>
</refsect1>

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

<refsect1 id="GtkLayoutManager.description" role="desc">
<title role="desc.title">Description</title>
<para>Layout managers are delegate classes that handle the preferred size
and the allocation of a container widget.</para>
<para>You typically subclass <link linkend="GtkLayoutManager"><type>GtkLayoutManager</type></link> if you want to implement a
layout policy for the children of a widget, or if you want to determine
the size of a widget depending on its contents.</para>
<para>Each <link linkend="GtkWidget"><type>GtkWidget</type></link> can only have a <link linkend="GtkLayoutManager"><type>GtkLayoutManager</type></link> instance associated to it
at any given time; it is possible, though, to replace the layout manager
instance using <link linkend="gtk-widget-set-layout-manager"><function>gtk_widget_set_layout_manager()</function></link>.</para>
<refsect3><title>Layout properties</title><para>A layout manager can expose properties for controlling the layout of
each child, by creating an object type derived from <link linkend="GtkLayoutChild"><type>GtkLayoutChild</type></link>
and installing the properties on it as normal GObject properties.</para>
<para>Each <link linkend="GtkLayoutChild"><type>GtkLayoutChild</type></link> instance storing the layout properties for a
specific child is created through the <link linkend="gtk-layout-manager-get-layout-child"><function>gtk_layout_manager_get_layout_child()</function></link>
method; a <link linkend="GtkLayoutManager"><type>GtkLayoutManager</type></link> controls the creation of its <link linkend="GtkLayoutChild"><type>GtkLayoutChild</type></link>
instances by overriding the GtkLayoutManagerClass.create_layout_child()
virtual function. The typical implementation should look like:</para>
<informalexample><programlisting role="example"><![CDATA[
static GtkLayoutChild *
create_layout_child (GtkLayoutManager *manager,
                     GtkWidget        *container,
                     GtkWidget        *child)
{
  return g_object_new (your_layout_child_get_type (),
                       "layout-manager", manager,
                       "child-widget", child,
                       NULL);
}
]]></programlisting></informalexample>
<para></para>
<para>The <link linkend="GtkLayoutChild--layout-manager"><type>“layout-manager”</type></link> and <link linkend="GtkLayoutChild--child-widget"><type>“child-widget”</type></link> properties
on the newly created <link linkend="GtkLayoutChild"><type>GtkLayoutChild</type></link> instance are mandatory. The
<link linkend="GtkLayoutManager"><type>GtkLayoutManager</type></link> will cache the newly created <link linkend="GtkLayoutChild"><type>GtkLayoutChild</type></link> instance until
the widget is removed from its parent, or the parent removes the layout
manager.</para>
<para>Each <link linkend="GtkLayoutManager"><type>GtkLayoutManager</type></link> instance creating a <link linkend="GtkLayoutChild"><type>GtkLayoutChild</type></link> should use
<link linkend="gtk-layout-manager-get-layout-child"><function>gtk_layout_manager_get_layout_child()</function></link> every time it needs to query the
layout properties; each <link linkend="GtkLayoutChild"><type>GtkLayoutChild</type></link> instance should call
<link linkend="gtk-layout-manager-layout-changed"><function>gtk_layout_manager_layout_changed()</function></link> every time a property is updated, in
order to queue a new size measuring and allocation.</para>
</refsect3>

</refsect1>
<refsect1 id="GtkLayoutManager.functions_details" role="details">
<title role="details.title">Functions</title>
<refsect2 id="gtk-layout-manager-measure" role="function">
<title>gtk_layout_manager_measure&#160;()</title>
<indexterm zone="gtk-layout-manager-measure"><primary>gtk_layout_manager_measure</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_layout_manager_measure (<parameter><link linkend="GtkLayoutManager"><type>GtkLayoutManager</type></link> *manager</parameter>,
                            <parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
                            <parameter><link linkend="GtkOrientation"><type>GtkOrientation</type></link> orientation</parameter>,
                            <parameter><link linkend="int"><type>int</type></link> for_size</parameter>,
                            <parameter><link linkend="int"><type>int</type></link> *minimum</parameter>,
                            <parameter><link linkend="int"><type>int</type></link> *natural</parameter>,
                            <parameter><link linkend="int"><type>int</type></link> *minimum_baseline</parameter>,
                            <parameter><link linkend="int"><type>int</type></link> *natural_baseline</parameter>);</programlisting>
<para>Measures the size of the <parameter>widget</parameter>
 using <parameter>manager</parameter>
, for the
given <parameter>orientation</parameter>
 and size.</para>
<para>See <link linkend="geometry-management">GtkWidget's geometry management section</link> for
more details.</para>
<refsect3 id="gtk-layout-manager-measure.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>manager</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkLayoutManager"><type>GtkLayoutManager</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 <link linkend="GtkWidget"><type>GtkWidget</type></link> using <parameter>manager</parameter>
</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>orientation</para></entry>
<entry role="parameter_description"><para>the orientation to measure</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>for_size</para></entry>
<entry role="parameter_description"><para>Size for the opposite of <parameter>orientation</parameter>
; for instance, if
the <parameter>orientation</parameter>
is <link linkend="GTK-ORIENTATION-HORIZONTAL:CAPS"><literal>GTK_ORIENTATION_HORIZONTAL</literal></link>, this is the height
of the widget; if the <parameter>orientation</parameter>
is <link linkend="GTK-ORIENTATION-VERTICAL:CAPS"><literal>GTK_ORIENTATION_VERTICAL</literal></link>, this
is the width of the widget. This allows to measure the height for the
given width, and the width for the given height. Use -1 if the size
is not known</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>minimum</para></entry>
<entry role="parameter_description"><para>the minimum size for the given size and
orientation. </para></entry>
<entry role="parameter_annotations"><emphasis role="annotation">[<acronym>out</acronym>][<acronym>optional</acronym>]</emphasis></entry></row>
<row><entry role="parameter_name"><para>natural</para></entry>
<entry role="parameter_description"><para>the natural, or preferred size for the
given size and orientation. </para></entry>
<entry role="parameter_annotations"><emphasis role="annotation">[<acronym>out</acronym>][<acronym>optional</acronym>]</emphasis></entry></row>
<row><entry role="parameter_name"><para>minimum_baseline</para></entry>
<entry role="parameter_description"><para>the baseline position for the
minimum size. </para></entry>
<entry role="parameter_annotations"><emphasis role="annotation">[<acronym>out</acronym>][<acronym>optional</acronym>]</emphasis></entry></row>
<row><entry role="parameter_name"><para>natural_baseline</para></entry>
<entry role="parameter_description"><para>the baseline position for the
natural size. </para></entry>
<entry role="parameter_annotations"><emphasis role="annotation">[<acronym>out</acronym>][<acronym>optional</acronym>]</emphasis></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-layout-manager-allocate" role="function">
<title>gtk_layout_manager_allocate&#160;()</title>
<indexterm zone="gtk-layout-manager-allocate"><primary>gtk_layout_manager_allocate</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_layout_manager_allocate (<parameter><link linkend="GtkLayoutManager"><type>GtkLayoutManager</type></link> *manager</parameter>,
                             <parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *widget</parameter>,
                             <parameter><link linkend="int"><type>int</type></link> width</parameter>,
                             <parameter><link linkend="int"><type>int</type></link> height</parameter>,
                             <parameter><link linkend="int"><type>int</type></link> baseline</parameter>);</programlisting>
<para>This function assigns the given <parameter>width</parameter>
, <parameter>height</parameter>
, and <parameter>baseline</parameter>
 to
a <parameter>widget</parameter>
, and computes the position and sizes of the children of
the <parameter>widget</parameter>
 using the layout management policy of <parameter>manager</parameter>
.</para>
<refsect3 id="gtk-layout-manager-allocate.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>manager</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkLayoutManager"><type>GtkLayoutManager</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 <link linkend="GtkWidget"><type>GtkWidget</type></link> using <parameter>manager</parameter>
</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>width</para></entry>
<entry role="parameter_description"><para>the new width of the <parameter>widget</parameter>
</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>height</para></entry>
<entry role="parameter_description"><para>the new height of the <parameter>widget</parameter>
</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>baseline</para></entry>
<entry role="parameter_description"><para>the baseline position of the <parameter>widget</parameter>
, or -1</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-layout-manager-get-request-mode" role="function">
<title>gtk_layout_manager_get_request_mode&#160;()</title>
<indexterm zone="gtk-layout-manager-get-request-mode"><primary>gtk_layout_manager_get_request_mode</primary></indexterm>
<programlisting language="C"><link linkend="GtkSizeRequestMode"><returnvalue>GtkSizeRequestMode</returnvalue></link>
gtk_layout_manager_get_request_mode (<parameter><link linkend="GtkLayoutManager"><type>GtkLayoutManager</type></link> *manager</parameter>);</programlisting>
<para>Retrieves the request mode of <parameter>manager</parameter>
.</para>
<refsect3 id="gtk-layout-manager-get-request-mode.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>manager</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkLayoutManager"><type>GtkLayoutManager</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-layout-manager-get-request-mode.returns" role="returns">
<title>Returns</title>
<para> a <link linkend="GtkSizeRequestMode"><type>GtkSizeRequestMode</type></link></para>
</refsect3></refsect2>
<refsect2 id="gtk-layout-manager-get-widget" role="function">
<title>gtk_layout_manager_get_widget&#160;()</title>
<indexterm zone="gtk-layout-manager-get-widget"><primary>gtk_layout_manager_get_widget</primary></indexterm>
<programlisting language="C"><link linkend="GtkWidget"><returnvalue>GtkWidget</returnvalue></link>&#160;*
gtk_layout_manager_get_widget (<parameter><link linkend="GtkLayoutManager"><type>GtkLayoutManager</type></link> *manager</parameter>);</programlisting>
<para>Retrieves the <link linkend="GtkWidget"><type>GtkWidget</type></link> using the given <link linkend="GtkLayoutManager"><type>GtkLayoutManager</type></link>.</para>
<refsect3 id="gtk-layout-manager-get-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>manager</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkLayoutManager"><type>GtkLayoutManager</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-layout-manager-get-widget.returns" role="returns">
<title>Returns</title>
<para>a <link linkend="GtkWidget"><type>GtkWidget</type></link>. </para>
<para><emphasis role="annotation">[<acronym>transfer none</acronym>][<acronym>nullable</acronym>]</emphasis></para>
</refsect3></refsect2>
<refsect2 id="gtk-layout-manager-get-layout-child" role="function">
<title>gtk_layout_manager_get_layout_child&#160;()</title>
<indexterm zone="gtk-layout-manager-get-layout-child"><primary>gtk_layout_manager_get_layout_child</primary></indexterm>
<programlisting language="C"><link linkend="GtkLayoutChild"><returnvalue>GtkLayoutChild</returnvalue></link>&#160;*
gtk_layout_manager_get_layout_child (<parameter><link linkend="GtkLayoutManager"><type>GtkLayoutManager</type></link> *manager</parameter>,
                                     <parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *child</parameter>);</programlisting>
<para>Retrieves a <link linkend="GtkLayoutChild"><type>GtkLayoutChild</type></link> instance for the <link linkend="GtkLayoutManager"><type>GtkLayoutManager</type></link>, creating
one if necessary.</para>
<para>The <parameter>child</parameter>
 widget must be a child of the widget using <parameter>manager</parameter>
.</para>
<para>The <link linkend="GtkLayoutChild"><type>GtkLayoutChild</type></link> instance is owned by the <link linkend="GtkLayoutManager"><type>GtkLayoutManager</type></link>, and is
guaranteed to exist as long as <parameter>child</parameter>
 is a child of the <link linkend="GtkWidget"><type>GtkWidget</type></link> using
the given <link linkend="GtkLayoutManager"><type>GtkLayoutManager</type></link>.</para>
<refsect3 id="gtk-layout-manager-get-layout-child.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>manager</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkLayoutManager"><type>GtkLayoutManager</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>child</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkWidget"><type>GtkWidget</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-layout-manager-get-layout-child.returns" role="returns">
<title>Returns</title>
<para>a <link linkend="GtkLayoutChild"><type>GtkLayoutChild</type></link>. </para>
<para><emphasis role="annotation">[<acronym>transfer none</acronym>]</emphasis></para>
</refsect3></refsect2>
<refsect2 id="gtk-layout-manager-layout-changed" role="function">
<title>gtk_layout_manager_layout_changed&#160;()</title>
<indexterm zone="gtk-layout-manager-layout-changed"><primary>gtk_layout_manager_layout_changed</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_layout_manager_layout_changed (<parameter><link linkend="GtkLayoutManager"><type>GtkLayoutManager</type></link> *manager</parameter>);</programlisting>
<para>Queues a resize on the <link linkend="GtkWidget"><type>GtkWidget</type></link> using <parameter>manager</parameter>
, if any.</para>
<para>This function should be called by subclasses of <link linkend="GtkLayoutManager"><type>GtkLayoutManager</type></link> in
response to changes to their layout management policies.</para>
<refsect3 id="gtk-layout-manager-layout-changed.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>manager</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkLayoutManager"><type>GtkLayoutManager</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>

</refsect1>
<refsect1 id="GtkLayoutManager.other_details" role="details">
<title role="details.title">Types and Values</title>
<refsect2 id="GtkLayoutManager-struct" role="struct">
<title>GtkLayoutManager</title>
<indexterm zone="GtkLayoutManager-struct"><primary>GtkLayoutManager</primary></indexterm>
<programlisting language="C">typedef struct _GtkLayoutManager GtkLayoutManager;</programlisting>
</refsect2>
<refsect2 id="GtkLayoutManagerClass" role="struct">
<title>struct GtkLayoutManagerClass</title>
<indexterm zone="GtkLayoutManagerClass"><primary>GtkLayoutManagerClass</primary></indexterm>
<programlisting language="C">struct GtkLayoutManagerClass {
  GtkSizeRequestMode (* get_request_mode)    (GtkLayoutManager *manager,
                                              GtkWidget        *widget);

  void               (* measure)             (GtkLayoutManager *manager,
                                              GtkWidget        *widget,
                                              GtkOrientation    orientation,
                                              int               for_size,
                                              int              *minimum,
                                              int              *natural,
                                              int              *minimum_baseline,
                                              int              *natural_baseline);

  void               (* allocate)            (GtkLayoutManager *manager,
                                              GtkWidget        *widget,
                                              int               width,
                                              int               height,
                                              int               baseline);

  GType              layout_child_type;

  GtkLayoutChild *   (* create_layout_child) (GtkLayoutManager *manager,
                                              GtkWidget        *widget,
                                              GtkWidget        *for_child);

  void               (* root)                (GtkLayoutManager *manager);
  void               (* unroot)              (GtkLayoutManager *manager);
};
</programlisting>
<para>The <literal>GtkLayoutManagerClass</literal> structure contains only private data, and
should only be accessed through the provided API, or when subclassing
<link linkend="GtkLayoutManager"><type>GtkLayoutManager</type></link>.</para>
<refsect3 id="GtkLayoutManagerClass.members" role="struct_members">
<title>Members</title>
<informaltable role="struct_members_table" pgwide="1" frame="none">
<tgroup cols="3">
<colspec colname="struct_members_name" colwidth="300px"/>
<colspec colname="struct_members_description"/>
<colspec colname="struct_members_annotations" colwidth="200px"/>
<tbody>
<row role="member"><entry role="struct_member_name"><para><structfield id="GtkLayoutManagerClass.get-request-mode">get_request_mode</structfield>&#160;()</para></entry>
<entry role="struct_member_description"><para>a virtual function, used to return the preferred
request mode for the layout manager; for instance, "width for height"
or "height for width"; see <link linkend="GtkSizeRequestMode"><type>GtkSizeRequestMode</type></link></para></entry>
<entry role="struct_member_annotations"></entry>
</row>
<row role="member"><entry role="struct_member_name"><para><structfield id="GtkLayoutManagerClass.measure">measure</structfield>&#160;()</para></entry>
<entry role="struct_member_description"><para>a virtual function, used to measure the minimum and preferred
sizes of the widget using the layout manager for a given orientation</para></entry>
<entry role="struct_member_annotations"></entry>
</row>
<row role="member"><entry role="struct_member_name"><para><structfield id="GtkLayoutManagerClass.allocate">allocate</structfield>&#160;()</para></entry>
<entry role="struct_member_description"><para>a virtual function, used to allocate the size of the widget
using the layout manager</para></entry>
<entry role="struct_member_annotations"></entry>
</row>
<row role="member"><entry role="struct_member_name"><para><link linkend="GType"><type>GType</type></link>&#160;<structfield id="GtkLayoutManagerClass.layout-child-type">layout_child_type</structfield>;</para></entry>
<entry role="struct_member_description"><para>the type of <link linkend="GtkLayoutChild"><type>GtkLayoutChild</type></link> used by this layout manager</para></entry>
<entry role="struct_member_annotations"></entry>
</row>
<row role="member"><entry role="struct_member_name"><para><structfield id="GtkLayoutManagerClass.create-layout-child">create_layout_child</structfield>&#160;()</para></entry>
<entry role="struct_member_description"><para>a virtual function, used to create a <link linkend="GtkLayoutChild"><type>GtkLayoutChild</type></link>
meta object for the layout properties</para></entry>
<entry role="struct_member_annotations"></entry>
</row>
<row role="member"><entry role="struct_member_name"><para><structfield id="GtkLayoutManagerClass.root">root</structfield>&#160;()</para></entry>
<entry role="struct_member_description"><para>a virtual function, called when the widget using the layout
manager is attached to a <link linkend="GtkRoot"><type>GtkRoot</type></link></para></entry>
<entry role="struct_member_annotations"></entry>
</row>
<row role="member"><entry role="struct_member_name"><para><structfield id="GtkLayoutManagerClass.unroot">unroot</structfield>&#160;()</para></entry>
<entry role="struct_member_description"><para>a virtual function, called when the widget using the layout
manager is detached from a <link linkend="GtkRoot"><type>GtkRoot</type></link></para></entry>
<entry role="struct_member_annotations"></entry>
</row>
</tbody></tgroup></informaltable>
</refsect3>
</refsect2>

</refsect1>

</refentry>
