[pygtk] reference: pygtk-gtkprintsettings.xml: add missing methods



commit 4ae84d09a55e0fb93bd14e534eb94015f2b55708
Author: Dieter Verfaillie <dieterv optionexplicit be>
Date:   Wed Mar 2 07:59:46 2011 +0100

    reference: pygtk-gtkprintsettings.xml: add missing methods

 docs/reference/pygtk-gtkprintsettings.xml |  144 ++++++++++++++++++++++++++++-
 1 files changed, 143 insertions(+), 1 deletions(-)
---
diff --git a/docs/reference/pygtk-gtkprintsettings.xml b/docs/reference/pygtk-gtkprintsettings.xml
index 413c2b5..45b7ce5 100644
--- a/docs/reference/pygtk-gtkprintsettings.xml
+++ b/docs/reference/pygtk-gtkprintsettings.xml
@@ -288,7 +288,28 @@
         <methodname><link linkend="method-gtkprintsettings--load-file">load_file</link></methodname>
         <methodparam><parameter role="keyword">file_name</parameter></methodparam>
       </methodsynopsis>
-</classsynopsis>
+      <methodsynopsis language="python">
+        <methodname><link linkend="method-gtkprintsettings--get-resolution-x">get_resolution_x</link></methodname>
+        <methodparam></methodparam>
+      </methodsynopsis>
+      <methodsynopsis language="python">
+        <methodname><link linkend="method-gtkprintsettings--get-resolution-y">get_resolution_y</link></methodname>
+        <methodparam></methodparam>
+      </methodsynopsis>
+      <methodsynopsis language="python">
+        <methodname><link linkend="method-gtkprintsettings--set-resolution-xy">set_resolution_xy</link></methodname>
+        <methodparam><parameter role="keyword">resolution_x</parameter></methodparam>
+        <methodparam><parameter role="keyword">resolution_y</parameter></methodparam>
+      </methodsynopsis>
+      <methodsynopsis language="python">
+        <methodname><link linkend="method-gtkprintsettings--get-printer-lpi">get_printer_lpi</link></methodname>
+        <methodparam></methodparam>
+      </methodsynopsis>
+      <methodsynopsis language="python">
+        <methodname><link linkend="method-gtkprintsettings--set-printer-lpi">set_printer_lpi</link></methodname>
+        <methodparam><parameter role="keyword">lpi</parameter></methodparam>
+      </methodsynopsis>
+    </classsynopsis>
 
 <programlisting>
 <emphasis role="bold">Functions</emphasis>
@@ -2078,6 +2099,127 @@
 
     </refsect2>
 
+    <refsect2 id="method-gtkprintsettings--get-resolution-x">
+      <title>gtk.PrintSettings.get_resolution_x</title>
+
+      <programlisting><methodsynopsis language="python">
+        <methodname>get_resolution_x</methodname>
+        <methodparam></methodparam>
+      </methodsynopsis></programlisting>
+      <variablelist>
+        <varlistentry>
+          <term><emphasis>Returns</emphasis>&nbsp;:</term>
+          <listitem><simpara>the horizontal resolution in dpi.</simpara></listitem>
+        </varlistentry>
+      </variablelist>
+
+      <note>
+        <para>This method is available in PyGTK 2.16 and above.</para>
+      </note>
+
+      <para>The <methodname>get_resolution_x</methodname>() method gets the value of
+      <literal>gtk.PRINT_SETTINGS_RESOLUTION_X</literal>.</para>
+
+    </refsect2>
+
+    <refsect2 id="method-gtkprintsettings--get-resolution-y">
+      <title>gtk.PrintSettings.get_resolution_y</title>
+
+      <programlisting><methodsynopsis language="python">
+        <methodname>get_resolution_y</methodname>
+        <methodparam></methodparam>
+      </methodsynopsis></programlisting>
+      <variablelist>
+        <varlistentry>
+          <term><emphasis>Returns</emphasis>&nbsp;:</term>
+          <listitem><simpara>the vertical resolution in dpi.</simpara></listitem>
+        </varlistentry>
+      </variablelist>
+
+      <note>
+        <para>This method is available in PyGTK 2.16 and above.</para>
+      </note>
+
+      <para>The <methodname>get_resolution_y</methodname>() method gets the value of
+      <literal>gtk.PRINT_SETTINGS_RESOLUTION_Y</literal>.</para>
+
+    </refsect2>
+
+    <refsect2 id="method-gtkprintsettings--set-resolution-xy">
+      <title>gtk.PrintSettings.set_resolution_xy</title>
+
+      <programlisting><methodsynopsis language="python">
+        <methodname>set_resolution_xy</methodname>
+        <methodparam><parameter role="keyword">resolution_x</parameter></methodparam>
+        <methodparam><parameter role="keyword">resolution_y</parameter></methodparam>
+      </methodsynopsis></programlisting>
+      <variablelist>
+        <varlistentry>
+          <term><parameter role="keyword">resolution_x</parameter>&nbsp;:</term>
+          <listitem><simpara>the horizontal resolution in dpi.</simpara></listitem>
+        </varlistentry>
+        <varlistentry>
+          <term><parameter role="keyword">resolution_y</parameter>&nbsp;:</term>
+          <listitem><simpara>the vertical resolution in dpi.</simpara></listitem>
+        </varlistentry>
+      </variablelist>
+
+      <note>
+        <para>This method is available in PyGTK 2.16 and above.</para>
+      </note>
+
+      <para>The <methodname>set_resolution_xy</methodname>() method sets the values of
+      <literal>gtk.PRINT_SETTINGS_RESOLUTION</literal>, <literal>gtk.PRINT_SETTINGS_RESOLUTION_X</literal>
+      and <literal>gtk.PRINT_SETTINGS_RESOLUTION_Y</literal>.</para>
+
+    </refsect2>
+
+    <refsect2 id="method-gtkprintsettings--get-printer-lpi">
+      <title>gtk.PrintSettings.get_printer_lpi</title>
+
+      <programlisting><methodsynopsis language="python">
+        <methodname>get_printer_lpi</methodname>
+        <methodparam></methodparam>
+      </methodsynopsis></programlisting>
+      <variablelist>
+        <varlistentry>
+          <term><emphasis>Returns</emphasis>&nbsp;:</term>
+          <listitem><simpara>the resolution in lpi (lines per inch).</simpara></listitem>
+        </varlistentry>
+      </variablelist>
+
+      <note>
+        <para>This method is available in PyGTK 2.16 and above.</para>
+      </note>
+
+      <para>The <methodname>get_printer_lpi</methodname>() method gets the value of
+      <literal>gtk.PRINT_SETTINGS_PRINTER_LPI</literal>.</para>
+
+    </refsect2>
+
+    <refsect2 id="method-gtkprintsettings--set-printer-lpi">
+      <title>gtk.PrintSettings.set_printer_lpi</title>
+
+      <programlisting><methodsynopsis language="python">
+        <methodname>set_printer_lpi</methodname>
+        <methodparam><parameter role="keyword">lpi</parameter></methodparam>
+      </methodsynopsis></programlisting>
+      <variablelist>
+        <varlistentry>
+          <term><parameter role="keyword">lpi</parameter>&nbsp;:</term>
+          <listitem><simpara>the resolution in lpi (lines per inch).</simpara></listitem>
+        </varlistentry>
+      </variablelist>
+
+      <note>
+        <para>This method is available in PyGTK 2.16 and above.</para>
+      </note>
+
+      <para>The <methodname>set_printer_lpi</methodname>() method sets the value of
+      <literal>gtk.PRINT_SETTINGS_PRINTER_LPI</literal>.</para>
+
+    </refsect2>
+
   </refsect1>
 
   <refsect1>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]