~ubuntu-branches/ubuntu/lucid/python-qt4/lucid

« back to all changes in this revision

Viewing changes to doc/html/qcolor.html

  • Committer: Bazaar Package Importer
  • Author(s): Michael Casadevall, Torsten Marek, Michael Casadevall
  • Date: 2009-10-07 09:53:11 UTC
  • mfrom: (1.1.14 upstream) (4.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20091007095311-sdk6pqd0n4rzhaeg
Tags: 4.6-1
[ Torsten Marek ]
* debian/rules
  - Fix .noinit creation for Python 2.6 by using py_sitename in install-arch-%

[ Michael Casadevall ]
* New upstream release
* debian/control:
  - Updated for new release of sip4

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
<h3 class="fn"><a name="QColor-2" />QColor.__init__ (<i>self</i>, unsigned long&#160;<i>rgb</i>)</h3><p>Constructs a color with the RGB value <i>r</i>, <i>g</i>, <i>b</i>, and the alpha-channel (transparency) value of <i>a</i>.</p>
91
91
<p>The color is left invalid if any of the arguments are invalid.</p>
92
92
<p>See also <a href="qcolor.html#setRgba">setRgba</a>() and <a href="qcolor.html#isValid">isValid</a>().</p>
93
 
<h3 class="fn"><a name="QColor-3" />QColor.__init__ (<i>self</i>, <a href="qvariant.html">QVariant</a>&#160;<i>variant</i>)</h3><p>Constructs a color with the value <i>color</i>. The alpha component is ignored and set to solid.</p>
 
93
<h3 class="fn"><a name="QColor-3" />QColor.__init__ (<i>self</i>, QVariant&#160;<i>variant</i>)</h3><p>Constructs a color with the value <i>color</i>. The alpha component is ignored and set to solid.</p>
94
94
<p>See also <a href="qcolor.html#fromRgb">fromRgb</a>() and <a href="qcolor.html#isValid">isValid</a>().</p>
95
95
<h3 class="fn"><a name="QColor-4" />QColor.__init__ (<i>self</i>)</h3><p>Constructs a named color in the same way as <a href="qcolor.html#setNamedColor">setNamedColor</a>() using the given <i>name</i>.</p>
96
96
<p>The color is left invalid if the <i>name</i> cannot be parsed.</p>
98
98
<h3 class="fn"><a name="QColor-5" />QColor.__init__ (<i>self</i>, int&#160;<i>r</i>, int&#160;<i>g</i>, int&#160;<i>b</i>, int&#160;<i>a</i>&#160;=&#160;255)</h3><p>Constructs a named color in the same way as <a href="qcolor.html#setNamedColor">setNamedColor</a>() using the given <i>name</i>.</p>
99
99
<p>The color is left invalid if the <i>name</i> cannot be parsed.</p>
100
100
<p>See also <a href="qcolor.html#setNamedColor">setNamedColor</a>(), <a href="qcolor.html#name">name</a>(), and <a href="qcolor.html#isValid">isValid</a>().</p>
101
 
<h3 class="fn"><a name="QColor-6" />QColor.__init__ (<i>self</i>, <a href="qstring.html">QString</a>&#160;<i>aname</i>)</h3><p>Constructs a color that is a copy of <i>color</i>.</p>
 
101
<h3 class="fn"><a name="QColor-6" />QColor.__init__ (<i>self</i>, QString&#160;<i>aname</i>)</h3><p>Constructs a color that is a copy of <i>color</i>.</p>
102
102
<p>See also <a href="qcolor.html#isValid">isValid</a>().</p>
103
103
<h3 class="fn"><a name="QColor-7" />QColor.__init__ (<i>self</i>, <a href="qcolor.html">QColor</a>&#160;<i>acolor</i>)</h3><h3 class="fn"><a name="allowX11ColorNames" />bool QColor.allowX11ColorNames ()</h3><p>Returns true if <a href="qcolor.html#setNamedColor">setNamedColor</a>() is allowed to look up colors in the X11 color database. By default, this function returns false.</p>
104
104
<p><b>Note:</b> This function is only available on the X11 platform.</p>
115
115
<p>See also <a href="qcolor.html#setBlue">setBlue</a>(), <a href="qcolor.html#blueF">blueF</a>(), and <a href="qcolor.html#getRgb">getRgb</a>().</p>
116
116
<h3 class="fn"><a name="blueF" />float QColor.blueF (<i>self</i>)</h3><p>Returns the blue color component of this color.</p>
117
117
<p>See also <a href="qcolor.html#setBlueF">setBlueF</a>(), <a href="qcolor.html#blue">blue</a>(), and <a href="qcolor.html#getRgbF">getRgbF</a>().</p>
118
 
<h3 class="fn"><a name="colorNames" /><a href="qstringlist.html">QStringList</a> QColor.colorNames ()</h3><p>Returns a <a href="qstringlist.html">QStringList</a> containing the color names Qt knows about.</p>
 
118
<h3 class="fn"><a name="colorNames" />QStringList QColor.colorNames ()</h3><p>Returns a <a href="qstringlist.html">QStringList</a> containing the color names Qt knows about.</p>
119
119
<p>See also <a href="qcolor.html#predefined-colors">Predefined Colors</a>.</p>
120
120
<h3 class="fn"><a name="convertTo" /><a href="qcolor.html">QColor</a> QColor.convertTo (<i>self</i>, <a href="qcolor.html#Spec-enum">Spec</a>&#160;<i>colorSpec</i>)</h3><p>Creates a copy of <i>this</i> color in the format specified by <i>colorSpec</i>.</p>
121
121
<p>See also <a href="qcolor.html#spec">spec</a>(), <a href="qcolor.html#toCmyk">toCmyk</a>(), <a href="qcolor.html#toHsv">toHsv</a>(), <a href="qcolor.html#toRgb">toRgb</a>(), and <a href="qcolor.html#isValid">isValid</a>().</p>
190
190
<p>See also <a href="qcolor.html#magentaF">magentaF</a>(), <a href="qcolor.html#getCmyk">getCmyk</a>(), and <a href="qcolor.html#the-cmyk-color-model">The CMYK Color Model</a>.</p>
191
191
<h3 class="fn"><a name="magentaF" />float QColor.magentaF (<i>self</i>)</h3><p>Returns the magenta color component of this color.</p>
192
192
<p>See also <a href="qcolor.html#magenta">magenta</a>(), <a href="qcolor.html#getCmykF">getCmykF</a>(), and <a href="qcolor.html#the-cmyk-color-model">The CMYK Color Model</a>.</p>
193
 
<h3 class="fn"><a name="name" /><a href="qstring.html">QString</a> QColor.name (<i>self</i>)</h3><p>Returns the name of the color in the format "#RRGGBB"; i.e. a "#" character followed by three two-digit hexadecimal numbers.</p>
 
193
<h3 class="fn"><a name="name" />QString QColor.name (<i>self</i>)</h3><p>Returns the name of the color in the format "#RRGGBB"; i.e. a "#" character followed by three two-digit hexadecimal numbers.</p>
194
194
<p>See also <a href="qcolor.html#setNamedColor">setNamedColor</a>().</p>
195
195
<h3 class="fn"><a name="red" />int QColor.red (<i>self</i>)</h3><p>Returns the red color component of this color.</p>
196
196
<p>See also <a href="qcolor.html#setRed">setRed</a>(), <a href="qcolor.html#redF">redF</a>(), and <a href="qcolor.html#getRgb">getRgb</a>().</p>
233
233
<h3 class="fn"><a name="setHsvF" />QColor.setHsvF (<i>self</i>, float&#160;<i>h</i>, float&#160;<i>s</i>, float&#160;<i>v</i>, float&#160;<i>a</i>&#160;=&#160;1)</h3><p>Sets a HSV color value; <i>h</i> is the hue, <i>s</i> is the saturation, <i>v</i> is the value and <i>a</i> is the alpha component of the HSV color.</p>
234
234
<p>All the values must be in the range 0.0-1.0.</p>
235
235
<p>See also <a href="qcolor.html#getHsvF">getHsvF</a>(), <a href="qcolor.html#setHsv">setHsv</a>(), and <a href="qcolor.html#the-hsv-color-model">The HSV Color Model</a>.</p>
236
 
<h3 class="fn"><a name="setNamedColor" />QColor.setNamedColor (<i>self</i>, <a href="qstring.html">QString</a>&#160;<i>name</i>)</h3><p>Sets the RGB value of this <a href="qcolor.html">QColor</a> to <i>name</i>, which may be in one of these formats:</p>
 
236
<h3 class="fn"><a name="setNamedColor" />QColor.setNamedColor (<i>self</i>, QString&#160;<i>name</i>)</h3><p>Sets the RGB value of this <a href="qcolor.html">QColor</a> to <i>name</i>, which may be in one of these formats:</p>
237
237
<ul>
238
238
<li>#RGB (each of R, G, and B is a single hex digit)</li>
239
239
<li>#RRGGBB</li>
276
276
<p>See also <a href="qcolor.html#yellowF">yellowF</a>(), <a href="qcolor.html#getCmyk">getCmyk</a>(), and <a href="qcolor.html#the-cmyk-color-model">The CMYK Color Model</a>.</p>
277
277
<h3 class="fn"><a name="yellowF" />float QColor.yellowF (<i>self</i>)</h3><p>Returns the yellow color component of this color.</p>
278
278
<p>See also <a href="qcolor.html#yellow">yellow</a>(), <a href="qcolor.html#getCmykF">getCmykF</a>(), and <a href="qcolor.html#the-cmyk-color-model">The CMYK Color Model</a>.</p>
279
 
<h3 class="fn"><a name="__eq__" />bool QColor.__eq__ (<i>self</i>, <a href="qcolor.html">QColor</a>&#160;<i>c</i>)</h3><h3 class="fn"><a name="__ne__" />bool QColor.__ne__ (<i>self</i>, <a href="qcolor.html">QColor</a>&#160;<i>c</i>)</h3><address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt&#160;4.5.4 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2009</td><td align="right" width="25%">Qt&#160;4.5.1</td></tr></table></div></address></body></html>
 
 
b'\\ No newline at end of file'
 
279
<h3 class="fn"><a name="__eq__" />bool QColor.__eq__ (<i>self</i>, <a href="qcolor.html">QColor</a>&#160;<i>c</i>)</h3><h3 class="fn"><a name="__ne__" />bool QColor.__ne__ (<i>self</i>, <a href="qcolor.html">QColor</a>&#160;<i>c</i>)</h3><address><hr /><div align="center"><table border="0" cellspacing="0" width="100%"><tr class="address"><td align="left" width="25%">PyQt&#160;4.6 for X11</td><td align="center" width="50%">Copyright &#169; <a href="http://www.riverbankcomputing.com">Riverbank&#160;Computing&#160;Ltd</a> and <a href="http://www.qtsoftware.com">Nokia</a> 2009</td><td align="right" width="25%">Qt&#160;4.5.2</td></tr></table></div></address></body></html>
 
 
b'\\ No newline at end of file'