diff options
Diffstat (limited to 'docs/reference/pygtk-gdkcolor.xml')
-rw-r--r-- | docs/reference/pygtk-gdkcolor.xml | 40 |
1 files changed, 39 insertions, 1 deletions
diff --git a/docs/reference/pygtk-gdkcolor.xml b/docs/reference/pygtk-gdkcolor.xml index 36e987ec..ccd69e8b 100644 --- a/docs/reference/pygtk-gdkcolor.xml +++ b/docs/reference/pygtk-gdkcolor.xml @@ -29,7 +29,14 @@ linkend="constructor-gdkcolor">gtk.gdk.Color</link></methodname> <methodparam><parameter role="keyword">pixel</parameter> <initializer>0</initializer></methodparam> - </constructorsynopsis></classsynopsis> + </constructorsynopsis> + + <methodsynopsis language="python"> + <methodname><link linkend="method-gdkcolor--to-string">to_string</link></methodname> + <methodparam></methodparam> + </methodsynopsis> + + </classsynopsis> <programlisting> <emphasis role="bold">Functions</emphasis> @@ -160,6 +167,37 @@ value of <parameter>pixel</parameter> will be overwritten when the color is allocated.</para> </refsect1> + + <refsect1> + <title>Methods</title> + + <refsect2 id="method-gdkcolor--to-string"> + <title>gtk.gdk.Color.to_string</title> + + <programlisting><methodsynopsis language="python"> + <methodname>to_string</methodname> + <methodparam></methodparam> + </methodsynopsis></programlisting> + + <variablelist> + <varlistentry> + <term><emphasis>Returns</emphasis> :</term> + <listitem><simpara>a string</simpara></listitem> + </varlistentry> + </variablelist> + + <note> + <para>This method is available in PyGTK 2.12 and above.</para> + </note> + + <para> + The <methodname>to_string</methodname>() method returns a textual + specification of color in the hexadecimal form #rrrrggggbbbb, + where r, g and b are hex digits representing the red, + green and blue components respectively. + </para> + </refsect2> + </refsect1> <refsect1> <title>Functions</title> |