<?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="GtkAspectFrame">
<refmeta>
<refentrytitle role="top_of_page" id="GtkAspectFrame.top_of_page">GtkAspectFrame</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GTK4 Library</refmiscinfo>
</refmeta>
<refnamediv>
<refname>GtkAspectFrame</refname>
<refpurpose>A frame that constrains its child to a particular aspect ratio</refpurpose>
</refnamediv>

<refsect1 id="GtkAspectFrame.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="GtkWidget"><returnvalue>GtkWidget</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="gtk-aspect-frame-new">gtk_aspect_frame_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-aspect-frame-set-xalign">gtk_aspect_frame_set_xalign</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="float"><returnvalue>float</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-aspect-frame-get-xalign">gtk_aspect_frame_get_xalign</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-aspect-frame-set-yalign">gtk_aspect_frame_set_yalign</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="float"><returnvalue>float</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-aspect-frame-get-yalign">gtk_aspect_frame_get_yalign</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-aspect-frame-set-ratio">gtk_aspect_frame_set_ratio</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="float"><returnvalue>float</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-aspect-frame-get-ratio">gtk_aspect_frame_get_ratio</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-aspect-frame-set-obey-child">gtk_aspect_frame_set_obey_child</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-aspect-frame-get-obey-child">gtk_aspect_frame_get_obey_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-aspect-frame-set-child">gtk_aspect_frame_set_child</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-aspect-frame-get-child">gtk_aspect_frame_get_child</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkAspectFrame.properties" role="properties">
<title role="properties.title">Properties</title>
<informaltable frame="none">
<tgroup cols="3">
<colspec colname="properties_type" colwidth="150px"/>
<colspec colname="properties_name" colwidth="300px"/>
<colspec colname="properties_flags" colwidth="200px"/>
<tbody>
<row><entry role="property_type"><link linkend="GtkWidget"><type>GtkWidget</type></link>&#160;*</entry><entry role="property_name"><link linkend="GtkAspectFrame--child">child</link></entry><entry role="property_flags">Read / Write</entry></row>
<row><entry role="property_type"><link linkend="gboolean"><type>gboolean</type></link></entry><entry role="property_name"><link linkend="GtkAspectFrame--obey-child">obey-child</link></entry><entry role="property_flags">Read / Write</entry></row>
<row><entry role="property_type"><link linkend="gfloat"><type>gfloat</type></link></entry><entry role="property_name"><link linkend="GtkAspectFrame--ratio">ratio</link></entry><entry role="property_flags">Read / Write</entry></row>
<row><entry role="property_type"><link linkend="gfloat"><type>gfloat</type></link></entry><entry role="property_name"><link linkend="GtkAspectFrame--xalign">xalign</link></entry><entry role="property_flags">Read / Write</entry></row>
<row><entry role="property_type"><link linkend="gfloat"><type>gfloat</type></link></entry><entry role="property_name"><link linkend="GtkAspectFrame--yalign">yalign</link></entry><entry role="property_flags">Read / Write</entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkAspectFrame.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="GtkAspectFrame-struct">GtkAspectFrame</link></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkAspectFrame.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="GInitiallyUnowned">GInitiallyUnowned</link>
        <phrase role="lineart">&#9584;&#9472;&#9472;</phrase> <link linkend="GtkWidget">GtkWidget</link>
            <phrase role="lineart">&#9584;&#9472;&#9472;</phrase> GtkAspectFrame
</screen>
</refsect1>
<refsect1 id="GtkAspectFrame.implemented-interfaces" role="impl_interfaces">
<title role="impl_interfaces.title">Implemented Interfaces</title>
<para>
GtkAspectFrame implements
 <link linkend="AtkImplementorIface">AtkImplementorIface</link>,  <link linkend="GtkBuildable">GtkBuildable</link> and  <link linkend="GtkConstraintTarget">GtkConstraintTarget</link>.</para>

</refsect1>

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

<refsect1 id="GtkAspectFrame.description" role="desc">
<title role="desc.title">Description</title>
<para>The <link linkend="GtkAspectFrame"><type>GtkAspectFrame</type></link> is useful when you want
pack a widget so that it can resize but always retains
the same aspect ratio. For instance, one might be
drawing a small preview of a larger image. <link linkend="GtkAspectFrame"><type>GtkAspectFrame</type></link>
derives from <link linkend="GtkFrame"><type>GtkFrame</type></link>, so it can draw a label and
a frame around the child. The frame will be
“shrink-wrapped” to the size of the child.</para>
<refsect2><title>CSS nodes</title><para>GtkAspectFrame uses a CSS node with name frame.</para>
</refsect2>

</refsect1>
<refsect1 id="GtkAspectFrame.functions_details" role="details">
<title role="details.title">Functions</title>
<refsect2 id="gtk-aspect-frame-new" role="function">
<title>gtk_aspect_frame_new&#160;()</title>
<indexterm zone="gtk-aspect-frame-new"><primary>gtk_aspect_frame_new</primary></indexterm>
<programlisting language="C"><link linkend="GtkWidget"><returnvalue>GtkWidget</returnvalue></link>&#160;*
gtk_aspect_frame_new (<parameter><link linkend="float"><type>float</type></link> xalign</parameter>,
                      <parameter><link linkend="float"><type>float</type></link> yalign</parameter>,
                      <parameter><link linkend="float"><type>float</type></link> ratio</parameter>,
                      <parameter><link linkend="gboolean"><type>gboolean</type></link> obey_child</parameter>);</programlisting>
<para>Create a new <link linkend="GtkAspectFrame"><type>GtkAspectFrame</type></link>.</para>
<refsect3 id="gtk-aspect-frame-new.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>xalign</para></entry>
<entry role="parameter_description"><para>Horizontal alignment of the child within the allocation of
the <link linkend="GtkAspectFrame"><type>GtkAspectFrame</type></link>. This ranges from 0.0 (left aligned)
to 1.0 (right aligned)</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>yalign</para></entry>
<entry role="parameter_description"><para>Vertical alignment of the child within the allocation of
the <link linkend="GtkAspectFrame"><type>GtkAspectFrame</type></link>. This ranges from 0.0 (top aligned)
to 1.0 (bottom aligned)</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>ratio</para></entry>
<entry role="parameter_description"><para>The desired aspect ratio.</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>obey_child</para></entry>
<entry role="parameter_description"><para>If <link linkend="TRUE:CAPS"><literal>TRUE</literal></link>, <parameter>ratio</parameter>
is ignored, and the aspect
ratio is taken from the requistion of the child.</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-aspect-frame-new.returns" role="returns">
<title>Returns</title>
<para> the new <link linkend="GtkAspectFrame"><type>GtkAspectFrame</type></link>.</para>
</refsect3></refsect2>
<refsect2 id="gtk-aspect-frame-set-xalign" role="function">
<title>gtk_aspect_frame_set_xalign&#160;()</title>
<indexterm zone="gtk-aspect-frame-set-xalign"><primary>gtk_aspect_frame_set_xalign</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_aspect_frame_set_xalign (<parameter><link linkend="GtkAspectFrame"><type>GtkAspectFrame</type></link> *self</parameter>,
                             <parameter><link linkend="float"><type>float</type></link> xalign</parameter>);</programlisting>
<para>Sets the horizontal alignment of the child within the allocation
of the <link linkend="GtkAspectFrame"><type>GtkAspectFrame</type></link>.</para>
<refsect3 id="gtk-aspect-frame-set-xalign.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="GtkAspectFrame"><type>GtkAspectFrame</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>xalign</para></entry>
<entry role="parameter_description"><para>horizontal alignment, from 0.0 (left aligned) to 1.0 (right aligned)</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-aspect-frame-get-xalign" role="function">
<title>gtk_aspect_frame_get_xalign&#160;()</title>
<indexterm zone="gtk-aspect-frame-get-xalign"><primary>gtk_aspect_frame_get_xalign</primary></indexterm>
<programlisting language="C"><link linkend="float"><returnvalue>float</returnvalue></link>
gtk_aspect_frame_get_xalign (<parameter><link linkend="GtkAspectFrame"><type>GtkAspectFrame</type></link> *self</parameter>);</programlisting>
<para>Returns the horizontal alignment of the child within the
allocation of the <link linkend="GtkAspectFrame"><type>GtkAspectFrame</type></link>.</para>
<refsect3 id="gtk-aspect-frame-get-xalign.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="GtkAspectFrame"><type>GtkAspectFrame</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-aspect-frame-get-xalign.returns" role="returns">
<title>Returns</title>
<para> the horizontal alignment</para>
</refsect3></refsect2>
<refsect2 id="gtk-aspect-frame-set-yalign" role="function">
<title>gtk_aspect_frame_set_yalign&#160;()</title>
<indexterm zone="gtk-aspect-frame-set-yalign"><primary>gtk_aspect_frame_set_yalign</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_aspect_frame_set_yalign (<parameter><link linkend="GtkAspectFrame"><type>GtkAspectFrame</type></link> *self</parameter>,
                             <parameter><link linkend="float"><type>float</type></link> yalign</parameter>);</programlisting>
<para>Sets the vertical alignment of the child within the allocation
of the <link linkend="GtkAspectFrame"><type>GtkAspectFrame</type></link>.</para>
<refsect3 id="gtk-aspect-frame-set-yalign.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="GtkAspectFrame"><type>GtkAspectFrame</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>yalign</para></entry>
<entry role="parameter_description"><para>horizontal alignment, from 0.0 (top aligned) to 1.0 (bottom aligned)</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-aspect-frame-get-yalign" role="function">
<title>gtk_aspect_frame_get_yalign&#160;()</title>
<indexterm zone="gtk-aspect-frame-get-yalign"><primary>gtk_aspect_frame_get_yalign</primary></indexterm>
<programlisting language="C"><link linkend="float"><returnvalue>float</returnvalue></link>
gtk_aspect_frame_get_yalign (<parameter><link linkend="GtkAspectFrame"><type>GtkAspectFrame</type></link> *self</parameter>);</programlisting>
<para>Returns the vertical alignment of the child within the
allocation of the <link linkend="GtkAspectFrame"><type>GtkAspectFrame</type></link>.</para>
<refsect3 id="gtk-aspect-frame-get-yalign.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="GtkAspectFrame"><type>GtkAspectFrame</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-aspect-frame-get-yalign.returns" role="returns">
<title>Returns</title>
<para> the vertical alignment</para>
</refsect3></refsect2>
<refsect2 id="gtk-aspect-frame-set-ratio" role="function">
<title>gtk_aspect_frame_set_ratio&#160;()</title>
<indexterm zone="gtk-aspect-frame-set-ratio"><primary>gtk_aspect_frame_set_ratio</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_aspect_frame_set_ratio (<parameter><link linkend="GtkAspectFrame"><type>GtkAspectFrame</type></link> *self</parameter>,
                            <parameter><link linkend="float"><type>float</type></link> ratio</parameter>);</programlisting>
<para>Sets the desired aspect ratio of the child.</para>
<refsect3 id="gtk-aspect-frame-set-ratio.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="GtkAspectFrame"><type>GtkAspectFrame</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>ratio</para></entry>
<entry role="parameter_description"><para>aspect ratio of the child</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-aspect-frame-get-ratio" role="function">
<title>gtk_aspect_frame_get_ratio&#160;()</title>
<indexterm zone="gtk-aspect-frame-get-ratio"><primary>gtk_aspect_frame_get_ratio</primary></indexterm>
<programlisting language="C"><link linkend="float"><returnvalue>float</returnvalue></link>
gtk_aspect_frame_get_ratio (<parameter><link linkend="GtkAspectFrame"><type>GtkAspectFrame</type></link> *self</parameter>);</programlisting>
<para>Returns the desired aspect ratio of the child.</para>
<refsect3 id="gtk-aspect-frame-get-ratio.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="GtkAspectFrame"><type>GtkAspectFrame</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-aspect-frame-get-ratio.returns" role="returns">
<title>Returns</title>
<para> the desired aspect ratio</para>
</refsect3></refsect2>
<refsect2 id="gtk-aspect-frame-set-obey-child" role="function">
<title>gtk_aspect_frame_set_obey_child&#160;()</title>
<indexterm zone="gtk-aspect-frame-set-obey-child"><primary>gtk_aspect_frame_set_obey_child</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_aspect_frame_set_obey_child (<parameter><link linkend="GtkAspectFrame"><type>GtkAspectFrame</type></link> *self</parameter>,
                                 <parameter><link linkend="gboolean"><type>gboolean</type></link> obey_child</parameter>);</programlisting>
<para>Sets whether the aspect ratio of the childs size
request should override the set aspect ratio of
the <link linkend="GtkAspectFrame"><type>GtkAspectFrame</type></link>.</para>
<refsect3 id="gtk-aspect-frame-set-obey-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>self</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkAspectFrame"><type>GtkAspectFrame</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>obey_child</para></entry>
<entry role="parameter_description"><para>If <link linkend="TRUE:CAPS"><literal>TRUE</literal></link>, <parameter>ratio</parameter>
is ignored, and the aspect
ratio is taken from the requistion of the child.</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-aspect-frame-get-obey-child" role="function">
<title>gtk_aspect_frame_get_obey_child&#160;()</title>
<indexterm zone="gtk-aspect-frame-get-obey-child"><primary>gtk_aspect_frame_get_obey_child</primary></indexterm>
<programlisting language="C"><link linkend="gboolean"><returnvalue>gboolean</returnvalue></link>
gtk_aspect_frame_get_obey_child (<parameter><link linkend="GtkAspectFrame"><type>GtkAspectFrame</type></link> *self</parameter>);</programlisting>
<para>Returns whether the childs size request should override
the set aspect ratio of the <link linkend="GtkAspectFrame"><type>GtkAspectFrame</type></link>.</para>
<refsect3 id="gtk-aspect-frame-get-obey-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>self</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkAspectFrame"><type>GtkAspectFrame</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-aspect-frame-get-obey-child.returns" role="returns">
<title>Returns</title>
<para> whether to obey the childs size request</para>
</refsect3></refsect2>
<refsect2 id="gtk-aspect-frame-set-child" role="function">
<title>gtk_aspect_frame_set_child&#160;()</title>
<indexterm zone="gtk-aspect-frame-set-child"><primary>gtk_aspect_frame_set_child</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_aspect_frame_set_child (<parameter><link linkend="GtkAspectFrame"><type>GtkAspectFrame</type></link> *self</parameter>,
                            <parameter><link linkend="GtkWidget"><type>GtkWidget</type></link> *child</parameter>);</programlisting>
<para>Sets the child widget of <parameter>self</parameter>
.</para>
<refsect3 id="gtk-aspect-frame-set-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>self</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkAspectFrame"><type>GtkAspectFrame</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>child</para></entry>
<entry role="parameter_description"><para>the child widget. </para></entry>
<entry role="parameter_annotations"><emphasis role="annotation">[<acronym>allow-none</acronym>]</emphasis></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-aspect-frame-get-child" role="function">
<title>gtk_aspect_frame_get_child&#160;()</title>
<indexterm zone="gtk-aspect-frame-get-child"><primary>gtk_aspect_frame_get_child</primary></indexterm>
<programlisting language="C"><link linkend="GtkWidget"><returnvalue>GtkWidget</returnvalue></link>&#160;*
gtk_aspect_frame_get_child (<parameter><link linkend="GtkAspectFrame"><type>GtkAspectFrame</type></link> *self</parameter>);</programlisting>
<para>Gets the child widget of <parameter>self</parameter>
.</para>
<refsect3 id="gtk-aspect-frame-get-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>self</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkAspectFrame"><type>GtkAspectFrame</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-aspect-frame-get-child.returns" role="returns">
<title>Returns</title>
<para>the child widget of self@. </para>
<para><emphasis role="annotation">[<acronym>nullable</acronym>][<acronym>transfer none</acronym>]</emphasis></para>
</refsect3></refsect2>

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

</refsect1>
<refsect1 id="GtkAspectFrame.property-details" role="property_details">
<title role="property_details.title">Property Details</title>
<refsect2 id="GtkAspectFrame--child" role="property"><title>The <literal>“child”</literal> property</title>
<indexterm zone="GtkAspectFrame--child"><primary>GtkAspectFrame:child</primary></indexterm>
<programlisting>  “child”                    <link linkend="GtkWidget"><type>GtkWidget</type></link>&#160;*</programlisting>
<para>The child widget.</para><para>Owner: GtkAspectFrame</para>
<para>Flags: Read / Write</para>
</refsect2>
<refsect2 id="GtkAspectFrame--obey-child" role="property"><title>The <literal>“obey-child”</literal> property</title>
<indexterm zone="GtkAspectFrame--obey-child"><primary>GtkAspectFrame:obey-child</primary></indexterm>
<programlisting>  “obey-child”               <link linkend="gboolean"><type>gboolean</type></link></programlisting>
<para>Force aspect ratio to match that of the frame’s child.</para><para>Owner: GtkAspectFrame</para>
<para>Flags: Read / Write</para>
<para>Default value: TRUE</para>
</refsect2>
<refsect2 id="GtkAspectFrame--ratio" role="property"><title>The <literal>“ratio”</literal> property</title>
<indexterm zone="GtkAspectFrame--ratio"><primary>GtkAspectFrame:ratio</primary></indexterm>
<programlisting>  “ratio”                    <link linkend="gfloat"><type>gfloat</type></link></programlisting>
<para>Aspect ratio if obey_child is FALSE.</para><para>Owner: GtkAspectFrame</para>
<para>Flags: Read / Write</para>
<para>Allowed values: [0.0001,10000]</para>
<para>Default value: 1</para>
</refsect2>
<refsect2 id="GtkAspectFrame--xalign" role="property"><title>The <literal>“xalign”</literal> property</title>
<indexterm zone="GtkAspectFrame--xalign"><primary>GtkAspectFrame:xalign</primary></indexterm>
<programlisting>  “xalign”                   <link linkend="gfloat"><type>gfloat</type></link></programlisting>
<para>X alignment of the child.</para><para>Owner: GtkAspectFrame</para>
<para>Flags: Read / Write</para>
<para>Allowed values: [0,1]</para>
<para>Default value: 0.5</para>
</refsect2>
<refsect2 id="GtkAspectFrame--yalign" role="property"><title>The <literal>“yalign”</literal> property</title>
<indexterm zone="GtkAspectFrame--yalign"><primary>GtkAspectFrame:yalign</primary></indexterm>
<programlisting>  “yalign”                   <link linkend="gfloat"><type>gfloat</type></link></programlisting>
<para>Y alignment of the child.</para><para>Owner: GtkAspectFrame</para>
<para>Flags: Read / Write</para>
<para>Allowed values: [0,1]</para>
<para>Default value: 0.5</para>
</refsect2>

</refsect1>

</refentry>
