<?xml version="1.0" standalone="no"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
    "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">

<refentry id="class-gtkrequisition">
  <refnamediv>
    <refname>gtk.Requisition</refname>
    <refpurpose>an object containing information about the desired space
requirements of a widget.</refpurpose>
  </refnamediv>

  <refsect1>
    <title>Synopsis</title>

    <classsynopsis language="python">
      <ooclass><classname>gtk.Requisition</classname></ooclass>
      <ooclass><classname>gobject.GBoxed</classname></ooclass>
      <methodsynopsis language="python">
	<methodname><link
linkend="method-gtkrequisition--copy">copy</link></methodname>
	<methodparam></methodparam>  </methodsynopsis>
      <methodsynopsis language="python">
        <methodname><link
linkend="method-gtkrequisition--free">free</link></methodname>
        <methodparam></methodparam>  </methodsynopsis>
    </classsynopsis>

  </refsect1>

  <refsect1>
    <title>Attributes</title>

    <blockquote role="properties">
      <informaltable pgwide="1" frame="none">
	<tgroup cols="3">
	<?dbhtml cellpadding="5"?>
	  <colspec column="1" colwidth="1in"/>
	  <colspec column="2" colwidth="1in"/>
	  <colspec column="3" colwidth="4in"/>
	  <tbody>

	    <row valign="top">
	      <entry>"width"</entry>
	      <entry>Read-Write</entry>
	      <entry>the desired width of the widget</entry>
	    </row>

	    <row valign="top">
	      <entry>"height"</entry>
	      <entry>Read-Write</entry>
	      <entry>the desired height of the widget</entry>
	    </row>

	  </tbody>
	</tgroup>
      </informaltable>
    </blockquote>

  </refsect1>

  <refsect1>
    <title>Description</title>

    <para>A <link
linkend="class-gtkrequisition"><classname>gtk.Requisition</classname></link>
holds the information about the desired space requirements (width and
height) of a widget. A <link
linkend="class-gtkrequisition"><classname>gtk.Requisition</classname></link>
object has <literal>width</literal> and <literal>height</literal> attributes
that can be read and written.</para>

    <note>
      <para>There appears to be no way to create or use a <link
linkend="class-gtkrequisition"><classname>gtk.Requisition</classname></link>
in PyGTK other than as an argument in the handler for the <link
linkend="class-gtkwidget"><classname>gtk.Widget</classname></link> "<link
linkend="signal-gtkwidget--size-request">size-request</link>" signal.</para>
    </note>

  </refsect1>

  <refsect1>
    <title>Methods</title>

    <refsect2 id="method-gtkrequisition--copy">
      <title>gtk.Requisition.copy</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>copy</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>
      <variablelist>
	<varlistentry>
	  <term><emphasis>Returns</emphasis>&nbsp;:</term>
	  <listitem><simpara>a copy of the <link
linkend="class-gtkrequisition"><classname>gtk.Requisition</classname></link></simpara></listitem>
	</varlistentry>
      </variablelist>

      <para>The <methodname>copy</methodname>() method returns a copy of the
<link
linkend="class-gtkrequisition"><classname>gtk.Requisition</classname></link>.</para>

    </refsect2>

    <refsect2 id="method-gtkrequisition--free">
      <title>gtk.Requisition.free</title>

      <programlisting><methodsynopsis language="python">
	  <methodname>free</methodname>
	  <methodparam></methodparam>  </methodsynopsis></programlisting>

      <warning>
        <para>This method is deprecated and should not be used since it can
 crash your application.</para>
      </warning>

      <para>The <methodname>free</methodname>() method frees the resources
allocated to the <link
linkend="class-gtkrequisition"><classname>gtk.Requisition</classname></link>.</para>

    </refsect2>

  </refsect1>

</refentry>
