<?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="GtkConstraintGuide">
<refmeta>
<refentrytitle role="top_of_page" id="GtkConstraintGuide.top_of_page">GtkConstraintGuide</refentrytitle>
<manvolnum>3</manvolnum>
<refmiscinfo>GTK4 Library</refmiscinfo>
</refmeta>
<refnamediv>
<refname>GtkConstraintGuide</refname>
<refpurpose>An invisible constraint target</refpurpose>
</refnamediv>

<refsect1 id="GtkConstraintGuide.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="GtkConstraintGuide"><returnvalue>GtkConstraintGuide</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="gtk-constraint-guide-new">gtk_constraint_guide_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-constraint-guide-set-name">gtk_constraint_guide_set_name</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type">const <link linkend="char"><returnvalue>char</returnvalue></link>&#160;*
</entry><entry role="function_name"><link linkend="gtk-constraint-guide-get-name">gtk_constraint_guide_get_name</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-constraint-guide-set-strength">gtk_constraint_guide_set_strength</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>
<row><entry role="function_type"><link linkend="GtkConstraintStrength"><returnvalue>GtkConstraintStrength</returnvalue></link>
</entry><entry role="function_name"><link linkend="gtk-constraint-guide-get-strength">gtk_constraint_guide_get_strength</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-constraint-guide-set-min-size">gtk_constraint_guide_set_min_size</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-constraint-guide-get-min-size">gtk_constraint_guide_get_min_size</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-constraint-guide-set-nat-size">gtk_constraint_guide_set_nat_size</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-constraint-guide-get-nat-size">gtk_constraint_guide_get_nat_size</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-constraint-guide-set-max-size">gtk_constraint_guide_set_max_size</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-constraint-guide-get-max-size">gtk_constraint_guide_get_max_size</link>&#160;<phrase role="c_punctuation">()</phrase></entry></row>

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkConstraintGuide.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="gint"><type>gint</type></link></entry><entry role="property_name"><link linkend="GtkConstraintGuide--max-height">max-height</link></entry><entry role="property_flags">Read / Write</entry></row>
<row><entry role="property_type"><link linkend="gint"><type>gint</type></link></entry><entry role="property_name"><link linkend="GtkConstraintGuide--max-width">max-width</link></entry><entry role="property_flags">Read / Write</entry></row>
<row><entry role="property_type"><link linkend="gint"><type>gint</type></link></entry><entry role="property_name"><link linkend="GtkConstraintGuide--min-height">min-height</link></entry><entry role="property_flags">Read / Write</entry></row>
<row><entry role="property_type"><link linkend="gint"><type>gint</type></link></entry><entry role="property_name"><link linkend="GtkConstraintGuide--min-width">min-width</link></entry><entry role="property_flags">Read / Write</entry></row>
<row><entry role="property_type"><link linkend="gchar"><type>gchar</type></link>&#160;*</entry><entry role="property_name"><link linkend="GtkConstraintGuide--name">name</link></entry><entry role="property_flags">Read / Write</entry></row>
<row><entry role="property_type"><link linkend="gint"><type>gint</type></link></entry><entry role="property_name"><link linkend="GtkConstraintGuide--nat-height">nat-height</link></entry><entry role="property_flags">Read / Write</entry></row>
<row><entry role="property_type"><link linkend="gint"><type>gint</type></link></entry><entry role="property_name"><link linkend="GtkConstraintGuide--nat-width">nat-width</link></entry><entry role="property_flags">Read / Write</entry></row>
<row><entry role="property_type"><link linkend="GtkConstraintStrength"><type>GtkConstraintStrength</type></link></entry><entry role="property_name"><link linkend="GtkConstraintGuide--strength">strength</link></entry><entry role="property_flags">Read / Write</entry></row>

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

</tbody>
</tgroup>
</informaltable>
</refsect1>
<refsect1 id="GtkConstraintGuide.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> GtkConstraintGuide
</screen>
</refsect1>
<refsect1 id="GtkConstraintGuide.implemented-interfaces" role="impl_interfaces">
<title role="impl_interfaces.title">Implemented Interfaces</title>
<para>
GtkConstraintGuide implements
 <link linkend="GtkConstraintTarget">GtkConstraintTarget</link>.</para>

</refsect1>

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

<refsect1 id="GtkConstraintGuide.description" role="desc">
<title role="desc.title">Description</title>
<para>A <link linkend="GtkConstraintGuide"><type>GtkConstraintGuide</type></link> is an invisible layout element that can be
used by widgets inside a <link linkend="GtkConstraintLayout"><type>GtkConstraintLayout</type></link> as a source or a target
of a <link linkend="GtkConstraint"><type>GtkConstraint</type></link>. Guides can be used like guidelines or as
flexible space.</para>
<para>Unlike a <link linkend="GtkWidget"><type>GtkWidget</type></link>, a <link linkend="GtkConstraintGuide"><type>GtkConstraintGuide</type></link> will not be drawn.</para>

</refsect1>
<refsect1 id="GtkConstraintGuide.functions_details" role="details">
<title role="details.title">Functions</title>
<refsect2 id="gtk-constraint-guide-new" role="function">
<title>gtk_constraint_guide_new&#160;()</title>
<indexterm zone="gtk-constraint-guide-new"><primary>gtk_constraint_guide_new</primary></indexterm>
<programlisting language="C"><link linkend="GtkConstraintGuide"><returnvalue>GtkConstraintGuide</returnvalue></link>&#160;*
gtk_constraint_guide_new (<parameter><type>void</type></parameter>);</programlisting>
<para>Creates a new <link linkend="GtkConstraintGuide"><type>GtkConstraintGuide</type></link> object.</para>
<para>Return: a new <link linkend="GtkConstraintGuide"><type>GtkConstraintGuide</type></link> object.</para>
</refsect2>
<refsect2 id="gtk-constraint-guide-set-name" role="function">
<title>gtk_constraint_guide_set_name&#160;()</title>
<indexterm zone="gtk-constraint-guide-set-name"><primary>gtk_constraint_guide_set_name</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_constraint_guide_set_name (<parameter><link linkend="GtkConstraintGuide"><type>GtkConstraintGuide</type></link> *guide</parameter>,
                               <parameter>const <link linkend="char"><type>char</type></link> *name</parameter>);</programlisting>
<para>Sets a name for the given <link linkend="GtkConstraintGuide"><type>GtkConstraintGuide</type></link>.</para>
<para>The name is useful for debugging purposes.</para>
<refsect3 id="gtk-constraint-guide-set-name.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>guide</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkConstraintGuide"><type>GtkConstraintGuide</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>name</para></entry>
<entry role="parameter_description"><para>a name for the <parameter>guide</parameter>
. </para></entry>
<entry role="parameter_annotations"><emphasis role="annotation">[<acronym>nullable</acronym>]</emphasis></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-constraint-guide-get-name" role="function">
<title>gtk_constraint_guide_get_name&#160;()</title>
<indexterm zone="gtk-constraint-guide-get-name"><primary>gtk_constraint_guide_get_name</primary></indexterm>
<programlisting language="C">const <link linkend="char"><returnvalue>char</returnvalue></link>&#160;*
gtk_constraint_guide_get_name (<parameter><link linkend="GtkConstraintGuide"><type>GtkConstraintGuide</type></link> *guide</parameter>);</programlisting>
<para>Retrieves the name set using <link linkend="gtk-constraint-guide-set-name"><function>gtk_constraint_guide_set_name()</function></link>.</para>
<refsect3 id="gtk-constraint-guide-get-name.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>guide</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkConstraintGuide"><type>GtkConstraintGuide</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-constraint-guide-get-name.returns" role="returns">
<title>Returns</title>
<para>the name of the guide. </para>
<para><emphasis role="annotation">[<acronym>transfer none</acronym>][<acronym>nullable</acronym>]</emphasis></para>
</refsect3></refsect2>
<refsect2 id="gtk-constraint-guide-set-strength" role="function">
<title>gtk_constraint_guide_set_strength&#160;()</title>
<indexterm zone="gtk-constraint-guide-set-strength"><primary>gtk_constraint_guide_set_strength</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_constraint_guide_set_strength (<parameter><link linkend="GtkConstraintGuide"><type>GtkConstraintGuide</type></link> *guide</parameter>,
                                   <parameter><link linkend="GtkConstraintStrength"><type>GtkConstraintStrength</type></link> strength</parameter>);</programlisting>
<para>Sets the strength of the constraint on the natural size of the
given <link linkend="GtkConstraintGuide"><type>GtkConstraintGuide</type></link>.</para>
<refsect3 id="gtk-constraint-guide-set-strength.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>guide</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkConstraintGuide"><type>GtkConstraintGuide</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>strength</para></entry>
<entry role="parameter_description"><para>the strength of the constraint</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-constraint-guide-get-strength" role="function">
<title>gtk_constraint_guide_get_strength&#160;()</title>
<indexterm zone="gtk-constraint-guide-get-strength"><primary>gtk_constraint_guide_get_strength</primary></indexterm>
<programlisting language="C"><link linkend="GtkConstraintStrength"><returnvalue>GtkConstraintStrength</returnvalue></link>
gtk_constraint_guide_get_strength (<parameter><link linkend="GtkConstraintGuide"><type>GtkConstraintGuide</type></link> *guide</parameter>);</programlisting>
<para>Retrieves the strength set using <link linkend="gtk-constraint-guide-set-strength"><function>gtk_constraint_guide_set_strength()</function></link>.</para>
<refsect3 id="gtk-constraint-guide-get-strength.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>guide</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkConstraintGuide"><type>GtkConstraintGuide</type></link></para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3><refsect3 id="gtk-constraint-guide-get-strength.returns" role="returns">
<title>Returns</title>
<para> the strength of the constraint on the natural size</para>
</refsect3></refsect2>
<refsect2 id="gtk-constraint-guide-set-min-size" role="function">
<title>gtk_constraint_guide_set_min_size&#160;()</title>
<indexterm zone="gtk-constraint-guide-set-min-size"><primary>gtk_constraint_guide_set_min_size</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_constraint_guide_set_min_size (<parameter><link linkend="GtkConstraintGuide"><type>GtkConstraintGuide</type></link> *guide</parameter>,
                                   <parameter><link linkend="int"><type>int</type></link> width</parameter>,
                                   <parameter><link linkend="int"><type>int</type></link> height</parameter>);</programlisting>
<para>Sets the minimum size of <parameter>guide</parameter>
.</para>
<para>If <parameter>guide</parameter>
 is attached to a <link linkend="GtkConstraintLayout"><type>GtkConstraintLayout</type></link>,
the constraints will be updated to reflect the new size.</para>
<refsect3 id="gtk-constraint-guide-set-min-size.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>guide</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkConstraintGuide"><type>GtkConstraintGuide</type></link> object</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>width</para></entry>
<entry role="parameter_description"><para>the new minimum width, or -1 to not change it</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>height</para></entry>
<entry role="parameter_description"><para>the new minimum height, or -1 to not change it</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-constraint-guide-get-min-size" role="function">
<title>gtk_constraint_guide_get_min_size&#160;()</title>
<indexterm zone="gtk-constraint-guide-get-min-size"><primary>gtk_constraint_guide_get_min_size</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_constraint_guide_get_min_size (<parameter><link linkend="GtkConstraintGuide"><type>GtkConstraintGuide</type></link> *guide</parameter>,
                                   <parameter><link linkend="int"><type>int</type></link> *width</parameter>,
                                   <parameter><link linkend="int"><type>int</type></link> *height</parameter>);</programlisting>
<para>Gets the minimum size of <parameter>guide</parameter>
.</para>
<refsect3 id="gtk-constraint-guide-get-min-size.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>guide</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkConstraintGuide"><type>GtkConstraintGuide</type></link> object</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>width</para></entry>
<entry role="parameter_description"><para>return location for the minimum width,
or <link linkend="NULL:CAPS"><literal>NULL</literal></link>. </para></entry>
<entry role="parameter_annotations"><emphasis role="annotation">[<acronym>allow-none</acronym>]</emphasis></entry></row>
<row><entry role="parameter_name"><para>height</para></entry>
<entry role="parameter_description"><para>return location for the minimum height,
or <link linkend="NULL:CAPS"><literal>NULL</literal></link>. </para></entry>
<entry role="parameter_annotations"><emphasis role="annotation">[<acronym>allow-none</acronym>]</emphasis></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-constraint-guide-set-nat-size" role="function">
<title>gtk_constraint_guide_set_nat_size&#160;()</title>
<indexterm zone="gtk-constraint-guide-set-nat-size"><primary>gtk_constraint_guide_set_nat_size</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_constraint_guide_set_nat_size (<parameter><link linkend="GtkConstraintGuide"><type>GtkConstraintGuide</type></link> *guide</parameter>,
                                   <parameter><link linkend="int"><type>int</type></link> width</parameter>,
                                   <parameter><link linkend="int"><type>int</type></link> height</parameter>);</programlisting>
<para>Sets the natural size of <parameter>guide</parameter>
.</para>
<para>If <parameter>guide</parameter>
 is attached to a <link linkend="GtkConstraintLayout"><type>GtkConstraintLayout</type></link>,
the constraints will be updated to reflect the new size.</para>
<refsect3 id="gtk-constraint-guide-set-nat-size.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>guide</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkConstraintGuide"><type>GtkConstraintGuide</type></link> object</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>width</para></entry>
<entry role="parameter_description"><para>the new natural width, or -1 to not change it</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>height</para></entry>
<entry role="parameter_description"><para>the new natural height, or -1 to not change it</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-constraint-guide-get-nat-size" role="function">
<title>gtk_constraint_guide_get_nat_size&#160;()</title>
<indexterm zone="gtk-constraint-guide-get-nat-size"><primary>gtk_constraint_guide_get_nat_size</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_constraint_guide_get_nat_size (<parameter><link linkend="GtkConstraintGuide"><type>GtkConstraintGuide</type></link> *guide</parameter>,
                                   <parameter><link linkend="int"><type>int</type></link> *width</parameter>,
                                   <parameter><link linkend="int"><type>int</type></link> *height</parameter>);</programlisting>
<para>Gets the natural size of <parameter>guide</parameter>
.</para>
<refsect3 id="gtk-constraint-guide-get-nat-size.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>guide</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkConstraintGuide"><type>GtkConstraintGuide</type></link> object</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>width</para></entry>
<entry role="parameter_description"><para>return location for the natural width,
or <link linkend="NULL:CAPS"><literal>NULL</literal></link>. </para></entry>
<entry role="parameter_annotations"><emphasis role="annotation">[<acronym>allow-none</acronym>]</emphasis></entry></row>
<row><entry role="parameter_name"><para>height</para></entry>
<entry role="parameter_description"><para>return location for the natural height,
or <link linkend="NULL:CAPS"><literal>NULL</literal></link>. </para></entry>
<entry role="parameter_annotations"><emphasis role="annotation">[<acronym>allow-none</acronym>]</emphasis></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-constraint-guide-set-max-size" role="function">
<title>gtk_constraint_guide_set_max_size&#160;()</title>
<indexterm zone="gtk-constraint-guide-set-max-size"><primary>gtk_constraint_guide_set_max_size</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_constraint_guide_set_max_size (<parameter><link linkend="GtkConstraintGuide"><type>GtkConstraintGuide</type></link> *guide</parameter>,
                                   <parameter><link linkend="int"><type>int</type></link> width</parameter>,
                                   <parameter><link linkend="int"><type>int</type></link> height</parameter>);</programlisting>
<para>Sets the maximum size of <parameter>guide</parameter>
.</para>
<para>If <parameter>guide</parameter>
 is attached to a <link linkend="GtkConstraintLayout"><type>GtkConstraintLayout</type></link>,
the constraints will be updated to reflect the new size.</para>
<refsect3 id="gtk-constraint-guide-set-max-size.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>guide</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkConstraintGuide"><type>GtkConstraintGuide</type></link> object</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>width</para></entry>
<entry role="parameter_description"><para>the new maximum width, or -1 to not change it</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>height</para></entry>
<entry role="parameter_description"><para>the new maximum height, or -1 to not change it</para></entry>
<entry role="parameter_annotations"></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>
<refsect2 id="gtk-constraint-guide-get-max-size" role="function">
<title>gtk_constraint_guide_get_max_size&#160;()</title>
<indexterm zone="gtk-constraint-guide-get-max-size"><primary>gtk_constraint_guide_get_max_size</primary></indexterm>
<programlisting language="C"><link linkend="void"><returnvalue>void</returnvalue></link>
gtk_constraint_guide_get_max_size (<parameter><link linkend="GtkConstraintGuide"><type>GtkConstraintGuide</type></link> *guide</parameter>,
                                   <parameter><link linkend="int"><type>int</type></link> *width</parameter>,
                                   <parameter><link linkend="int"><type>int</type></link> *height</parameter>);</programlisting>
<para>Gets the maximum size of <parameter>guide</parameter>
.</para>
<refsect3 id="gtk-constraint-guide-get-max-size.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>guide</para></entry>
<entry role="parameter_description"><para>a <link linkend="GtkConstraintGuide"><type>GtkConstraintGuide</type></link> object</para></entry>
<entry role="parameter_annotations"></entry></row>
<row><entry role="parameter_name"><para>width</para></entry>
<entry role="parameter_description"><para>return location for the maximum width,
or <link linkend="NULL:CAPS"><literal>NULL</literal></link>. </para></entry>
<entry role="parameter_annotations"><emphasis role="annotation">[<acronym>allow-none</acronym>]</emphasis></entry></row>
<row><entry role="parameter_name"><para>height</para></entry>
<entry role="parameter_description"><para>return location for the maximum height,
or <link linkend="NULL:CAPS"><literal>NULL</literal></link>. </para></entry>
<entry role="parameter_annotations"><emphasis role="annotation">[<acronym>allow-none</acronym>]</emphasis></entry></row>
</tbody></tgroup></informaltable>
</refsect3></refsect2>

</refsect1>
<refsect1 id="GtkConstraintGuide.other_details" role="details">
<title role="details.title">Types and Values</title>
<refsect2 id="GtkConstraintGuide-struct" role="struct">
<title>GtkConstraintGuide</title>
<indexterm zone="GtkConstraintGuide-struct"><primary>GtkConstraintGuide</primary></indexterm>
<programlisting language="C">typedef struct _GtkConstraintGuide GtkConstraintGuide;</programlisting>
<para>An object that can be added to a <link linkend="GtkConstraintLayout"><type>GtkConstraintLayout</type></link> and be
used in constraints like a widget, without being drawn.</para>
<para>Guides have a minimum, maximum and natural size. Depending
on the constraints that are applied, they can act like a
guideline that widgets can be aligned to, or like 'flexible space'.</para>
</refsect2>

</refsect1>
<refsect1 id="GtkConstraintGuide.property-details" role="property_details">
<title role="property_details.title">Property Details</title>
<refsect2 id="GtkConstraintGuide--max-height" role="property"><title>The <literal>“max-height”</literal> property</title>
<indexterm zone="GtkConstraintGuide--max-height"><primary>GtkConstraintGuide:max-height</primary></indexterm>
<programlisting>  “max-height”               <link linkend="gint"><type>gint</type></link></programlisting>
<para>The maximum height of the guide.</para>
<para>Owner: GtkConstraintGuide</para>
<para>Flags: Read / Write</para>
<para>Allowed values: &gt;= 0</para>
<para>Default value: 2147483647</para>
</refsect2>
<refsect2 id="GtkConstraintGuide--max-width" role="property"><title>The <literal>“max-width”</literal> property</title>
<indexterm zone="GtkConstraintGuide--max-width"><primary>GtkConstraintGuide:max-width</primary></indexterm>
<programlisting>  “max-width”                <link linkend="gint"><type>gint</type></link></programlisting>
<para>The maximum width of the guide.</para>
<para>Owner: GtkConstraintGuide</para>
<para>Flags: Read / Write</para>
<para>Allowed values: &gt;= 0</para>
<para>Default value: 2147483647</para>
</refsect2>
<refsect2 id="GtkConstraintGuide--min-height" role="property"><title>The <literal>“min-height”</literal> property</title>
<indexterm zone="GtkConstraintGuide--min-height"><primary>GtkConstraintGuide:min-height</primary></indexterm>
<programlisting>  “min-height”               <link linkend="gint"><type>gint</type></link></programlisting>
<para>The minimum height of the guide.</para>
<para>Owner: GtkConstraintGuide</para>
<para>Flags: Read / Write</para>
<para>Allowed values: &gt;= 0</para>
<para>Default value: 0</para>
</refsect2>
<refsect2 id="GtkConstraintGuide--min-width" role="property"><title>The <literal>“min-width”</literal> property</title>
<indexterm zone="GtkConstraintGuide--min-width"><primary>GtkConstraintGuide:min-width</primary></indexterm>
<programlisting>  “min-width”                <link linkend="gint"><type>gint</type></link></programlisting>
<para>The minimum width of the guide.</para>
<para>Owner: GtkConstraintGuide</para>
<para>Flags: Read / Write</para>
<para>Allowed values: &gt;= 0</para>
<para>Default value: 0</para>
</refsect2>
<refsect2 id="GtkConstraintGuide--name" role="property"><title>The <literal>“name”</literal> property</title>
<indexterm zone="GtkConstraintGuide--name"><primary>GtkConstraintGuide:name</primary></indexterm>
<programlisting>  “name”                     <link linkend="gchar"><type>gchar</type></link>&#160;*</programlisting>
<para>A name that identifies the <link linkend="GtkConstraintGuide"><type>GtkConstraintGuide</type></link>, for debugging.</para>
<para>Owner: GtkConstraintGuide</para>
<para>Flags: Read / Write</para>
<para>Default value: NULL</para>
</refsect2>
<refsect2 id="GtkConstraintGuide--nat-height" role="property"><title>The <literal>“nat-height”</literal> property</title>
<indexterm zone="GtkConstraintGuide--nat-height"><primary>GtkConstraintGuide:nat-height</primary></indexterm>
<programlisting>  “nat-height”               <link linkend="gint"><type>gint</type></link></programlisting>
<para>The preferred, or natural, height of the guide.</para>
<para>Owner: GtkConstraintGuide</para>
<para>Flags: Read / Write</para>
<para>Allowed values: &gt;= 0</para>
<para>Default value: 0</para>
</refsect2>
<refsect2 id="GtkConstraintGuide--nat-width" role="property"><title>The <literal>“nat-width”</literal> property</title>
<indexterm zone="GtkConstraintGuide--nat-width"><primary>GtkConstraintGuide:nat-width</primary></indexterm>
<programlisting>  “nat-width”                <link linkend="gint"><type>gint</type></link></programlisting>
<para>The preferred, or natural, width of the guide.</para>
<para>Owner: GtkConstraintGuide</para>
<para>Flags: Read / Write</para>
<para>Allowed values: &gt;= 0</para>
<para>Default value: 0</para>
</refsect2>
<refsect2 id="GtkConstraintGuide--strength" role="property"><title>The <literal>“strength”</literal> property</title>
<indexterm zone="GtkConstraintGuide--strength"><primary>GtkConstraintGuide:strength</primary></indexterm>
<programlisting>  “strength”                 <link linkend="GtkConstraintStrength"><type>GtkConstraintStrength</type></link></programlisting>
<para>The <link linkend="GtkConstraintStrength"><type>GtkConstraintStrength</type></link> to be used for the constraint on
the natural size of the guide.</para>
<para>Owner: GtkConstraintGuide</para>
<para>Flags: Read / Write</para>
<para>Default value: GTK_CONSTRAINT_STRENGTH_MEDIUM</para>
</refsect2>

</refsect1>

</refentry>
