Sophie

Sophie

distrib > * > 2009.0 > i586 > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 1944

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<class name="QColor" doc="/**
&lt;p&gt;The &lt;a href=&quot;QColor.html#QColor(java.lang.String)&quot;&gt;&lt;tt&gt;QColor&lt;/tt&gt;&lt;/a&gt; class provides colors based on RGB, HSV or CMYK values.&lt;/p&gt;
&lt;p&gt;A color is normally specified in terms of RGB (red, green, and blue) components, but it is also possible to specify it in terms of HSV (hue, saturation, and value) and CMYK (cyan, magenta, yellow and black) components. In addition a color can be specified using a color name. The color name can be any of the SVG 1.0 color names.&lt;/p&gt;
&lt;p&gt;&lt;table align=&quot;center&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; border=&quot;0&quot;&gt;
&lt;tr valign=&quot;top&quot; class=&quot;odd&quot;&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qcolor-rgb.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qcolor-hsv.png&quot; /&gt;&lt;/td&gt;&lt;td&gt;&lt;img src=&quot;%2E%2E/images/qcolor-cmyk.png&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;thead&gt;&lt;tr valign=&quot;top&quot; class=&quot;qt-style&quot;&gt;&lt;th&gt;RGB&lt;/th&gt;&lt;th&gt;HSV&lt;/th&gt;&lt;th&gt;CMYK&lt;/th&gt;&lt;/tr&gt;&lt;/thead&gt;
&lt;/table&gt;&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QColor.html#QColor(java.lang.String)&quot;&gt;&lt;tt&gt;QColor&lt;/tt&gt;&lt;/a&gt; constructor creates the color based on RGB values. To create a &lt;a href=&quot;QColor.html#QColor(java.lang.String)&quot;&gt;&lt;tt&gt;QColor&lt;/tt&gt;&lt;/a&gt; based on either HSV or CMYK values, use the &lt;a href=&quot;QColor.html#toHsv()&quot;&gt;&lt;tt&gt;toHsv&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QColor.html#toCmyk()&quot;&gt;&lt;tt&gt;toCmyk&lt;/tt&gt;&lt;/a&gt; functions respectively. These functions return a copy of the color using the desired format. In addition the static &lt;a href=&quot;QColor.html#fromRgb(int, int, int, int)&quot;&gt;&lt;tt&gt;fromRgb&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QColor.html#fromHsv(int, int, int, int)&quot;&gt;&lt;tt&gt;fromHsv&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QColor.html#fromCmyk(int, int, int, int, int)&quot;&gt;&lt;tt&gt;fromCmyk&lt;/tt&gt;&lt;/a&gt; functions create colors from the specified values. Alternatively, a color can be converted to any of the three formats using the &lt;a href=&quot;QColor.html#convertTo(com.trolltech.qt.gui.QColor.Spec)&quot;&gt;&lt;tt&gt;convertTo&lt;/tt&gt;&lt;/a&gt; function (returning a copy of the color in the desired format), or any of the &lt;a href=&quot;QColor.html#setRgb(int)&quot;&gt;&lt;tt&gt;setRgb&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QColor.html#setHsv(int, int, int, int)&quot;&gt;&lt;tt&gt;setHsv&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QColor.html#setCmyk(int, int, int, int, int)&quot;&gt;&lt;tt&gt;setCmyk&lt;/tt&gt;&lt;/a&gt; functions altering &lt;i&gt;this&lt;/i&gt; color's format. The &lt;a href=&quot;QColor.html#spec()&quot;&gt;&lt;tt&gt;spec&lt;/tt&gt;&lt;/a&gt; function tells how the color was specified.&lt;/p&gt;
&lt;p&gt;A color can be set by passing an RGB string (such as &amp;quot;#112233&amp;quot;), or a color name (such as &amp;quot;blue&amp;quot;), to the &lt;a href=&quot;QColor.html#setNamedColor(java.lang.String)&quot;&gt;&lt;tt&gt;setNamedColor&lt;/tt&gt;&lt;/a&gt; function. The color names are taken from the SVG 1.0 color names. The &lt;a href=&quot;QColor.html#name()&quot;&gt;&lt;tt&gt;name&lt;/tt&gt;&lt;/a&gt; function returns the name of the color in the format &amp;quot;#RRGGBB&amp;quot;. Colors can also be set using &lt;a href=&quot;QColor.html#setRgb(int)&quot;&gt;&lt;tt&gt;setRgb&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QColor.html#setHsv(int, int, int, int)&quot;&gt;&lt;tt&gt;setHsv&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QColor.html#setCmyk(int, int, int, int, int)&quot;&gt;&lt;tt&gt;setCmyk&lt;/tt&gt;&lt;/a&gt;. To get a lighter or darker color use the &lt;a href=&quot;QColor.html#lighter(int)&quot;&gt;&lt;tt&gt;lighter&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QColor.html#darker(int)&quot;&gt;&lt;tt&gt;darker&lt;/tt&gt;&lt;/a&gt; functions respectively.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QColor.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt; function indicates whether a &lt;a href=&quot;QColor.html#QColor(java.lang.String)&quot;&gt;&lt;tt&gt;QColor&lt;/tt&gt;&lt;/a&gt; is legal at all. For example, a RGB color with RGB values out of range is illegal. For performance reasons, &lt;a href=&quot;QColor.html#QColor(java.lang.String)&quot;&gt;&lt;tt&gt;QColor&lt;/tt&gt;&lt;/a&gt; mostly disregards illegal colors, and for that reason, the result of using an invalid color is undefined.&lt;/p&gt;
&lt;p&gt;The color components can be retrieved individually, e.g with &lt;a href=&quot;QColor.html#red()&quot;&gt;&lt;tt&gt;red&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QColor.html#hue()&quot;&gt;&lt;tt&gt;hue&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QColor.html#cyan()&quot;&gt;&lt;tt&gt;cyan&lt;/tt&gt;&lt;/a&gt;. The values of the color components can also be retrieved in one go using the getRgb(), getHsv() and getCmyk() functions. Using the RGB color model, the color components can in addition be accessed with &lt;a href=&quot;QColor.html#rgb()&quot;&gt;&lt;tt&gt;rgb&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;There are several related non-members: QRgb is a typdef for an unsigned int representing the RGB value triplet (r, g, b). Note that it also can hold a value for the alpha-channel (for more information, see the Alpha-Blended Drawing&lt;/tt&gt; section). The qRed(), qBlue() and qGreen() functions return the respective component of the given QRgb value, while the qRgb() and qRgba() functions create and return the QRgb triplet based on the given component values. Finally, the qAlpha() function returns the alpha component of the provided QRgb, and the qGray() function calculates and return a gray value based on the given value.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QColor.html#QColor(java.lang.String)&quot;&gt;&lt;tt&gt;QColor&lt;/tt&gt;&lt;/a&gt; is platform and device independent. The &lt;a href=&quot;QColormap.html&quot;&gt;&lt;tt&gt;QColormap&lt;/tt&gt;&lt;/a&gt; class maps the color to the hardware.&lt;/p&gt;
&lt;p&gt;For more information about painting in general, see {The Paint System} documentation.&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;#integer-vs-floating-point-precision&quot;&gt;Integer vs. Floating Point Precision&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#alpha-blended-drawing&quot;&gt;Alpha-Blended Drawing&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#predefined-colors&quot;&gt;Predefined Colors&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#the-hsv-color-model&quot;&gt;The HSV Color Model&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#the-cmyk-color-model&quot;&gt;The CMYK Color Model&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;a name=&quot;integer-vs-floating-point-precision&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Integer vs. Floating Point Precision&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;QColor.html#QColor(java.lang.String)&quot;&gt;&lt;tt&gt;QColor&lt;/tt&gt;&lt;/a&gt; supports floating point precision and provides floating point versions of all the color components functions, e.g&amp;#x2e; getRgbF(), &lt;a href=&quot;QColor.html#hueF()&quot;&gt;&lt;tt&gt;hueF&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QColor.html#fromCmykF(double, double, double, double, double)&quot;&gt;&lt;tt&gt;fromCmykF&lt;/tt&gt;&lt;/a&gt;. Note that since the components are stored using 16-bit integers, there might be minor deviations between the values set using, for example, &lt;a href=&quot;QColor.html#setRgbF(double, double, double, double)&quot;&gt;&lt;tt&gt;setRgbF&lt;/tt&gt;&lt;/a&gt; and the values returned by the getRgbF() function due to rounding.&lt;/p&gt;
&lt;p&gt;While the integer based functions take values in the range 0-255 (except &lt;a href=&quot;QColor.html#hue()&quot;&gt;&lt;tt&gt;hue&lt;/tt&gt;&lt;/a&gt; which must can be specified within the range 0-359), the floating point functions accept values in the range 0.0 - 1.0&amp;#x2e;&lt;/p&gt;
&lt;a name=&quot;alpha-blended-drawing&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Alpha-Blended Drawing&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;QColor.html#QColor(java.lang.String)&quot;&gt;&lt;tt&gt;QColor&lt;/tt&gt;&lt;/a&gt; also support alpha-blended outlining and filling. The alpha channel of a color specifies the transparency effect, 0 represents a fully transparent color, while 255 represents a fully opaque color. For example:&lt;/p&gt;
&lt;pre&gt;&lt;span class=&quot;comment&quot;&gt;    // Specfiy semi-transparent red&lt;/span&gt;
    painter.setBrush(QColor(255, 0, 0, 127));
    painter.drawRect(0, 0, width()/2, height());

&lt;span class=&quot;comment&quot;&gt;    // Specify semi-transparend blue&lt;/span&gt;
    painter.setBrush(QColor(0, 0, 255, 127));
    painter.drawRect(0, 0, width(), height()/2);&lt;/pre&gt;
&lt;p&gt;The code above produces the following output:&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/alphafill.png&quot; /&gt;&lt;/p&gt;&lt;p&gt;Alpha-blended drawing is supported on Windows, Mac OS X, and on X11 systems that have the X Render extension installed.&lt;/p&gt;
&lt;p&gt;The alpha channel of a color can be retrieved and set using the &lt;a href=&quot;QColor.html#alpha()&quot;&gt;&lt;tt&gt;alpha&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QColor.html#setAlpha(int)&quot;&gt;&lt;tt&gt;setAlpha&lt;/tt&gt;&lt;/a&gt; functions if its value is an integer, and &lt;a href=&quot;QColor.html#alphaF()&quot;&gt;&lt;tt&gt;alphaF&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QColor.html#setAlphaF(double)&quot;&gt;&lt;tt&gt;setAlphaF&lt;/tt&gt;&lt;/a&gt; if its value is qreal (double). By default, the alpha-channel is set to 255 (opaque). To retrieve and set &lt;i&gt;all&lt;/i&gt; the RGB color components (including the alpha-channel) in one go, use the &lt;a href=&quot;QColor.html#rgba()&quot;&gt;&lt;tt&gt;rgba&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QColor.html#setRgba(int)&quot;&gt;&lt;tt&gt;setRgba&lt;/tt&gt;&lt;/a&gt; functions.&lt;/p&gt;
&lt;a name=&quot;predefined-colors&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Predefined Colors&lt;/h3&gt;
&lt;p&gt;There are 20 predefined QColors: Qt::white, Qt::black, Qt::red, Qt::darkRed, Qt::green, Qt::darkGreen, Qt::blue, Qt::darkBlue, Qt::cyan, Qt::darkCyan, Qt::magenta, Qt::darkMagenta, Qt::yellow, Qt::darkYellow, Qt::gray, Qt::darkGray, Qt::lightGray, Qt::color0, Qt::color1, and Qt::transparent.&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/qt-colors.png&quot; alt=&quot;Qt Colors&quot; /&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=&quot;QColor.html#QColor(java.lang.String)&quot;&gt;&lt;tt&gt;QColor&lt;/tt&gt;&lt;/a&gt; provides the static &lt;a href=&quot;QColor.html#colorNames()&quot;&gt;&lt;tt&gt;colorNames&lt;/tt&gt;&lt;/a&gt; function which returns a &lt;a href=&quot;%2E%2E/porting4.html#qstringlist&quot;&gt;&lt;tt&gt;QStringList&lt;/tt&gt;&lt;/a&gt; containing the color names Qt knows about.&lt;/p&gt;
&lt;p&gt;The colors Qt::color0 (zero pixel value) and Qt::color1 (non-zero pixel value) are special colors for drawing in QBitmaps. Painting with Qt::color0 sets the bitmap bits to 0 (transparent, i.e&amp;#x2e; background), and painting with Qt::color1 sets the bits to 1 (opaque, i.e&amp;#x2e; foreground).&lt;/p&gt;
&lt;a name=&quot;the-hsv-color-model&quot;&gt;&lt;/a&gt;
&lt;h3&gt;The HSV Color Model&lt;/h3&gt;
&lt;p&gt;The RGB model is hardware-oriented. Its representation is close to what most monitors show. In contrast, HSV represents color in a way more suited to the human perception of color. For example, the relationships &amp;quot;stronger than&amp;quot;, &amp;quot;darker than&amp;quot;, and &amp;quot;the opposite of&amp;quot; are easily expressed in HSV but are much harder to express in RGB.&lt;/p&gt;
&lt;p&gt;HSV, like RGB, has three components:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;H, for hue, is in the range 0 to 359 if the color is chromatic (not gray), or meaningless if it is gray. It represents degrees on the color wheel familiar to most people. Red is 0 (degrees), green is 120, and blue is 240.&lt;p&gt;&lt;img src=&quot;%2E%2E/images/qcolor-hue.png&quot; /&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;S, for saturation, is in the range 0 to 255, and the bigger it is, the stronger the color is. Grayish colors have saturation near 0; very strong colors have saturation near 255.&lt;p&gt;&lt;img src=&quot;%2E%2E/images/qcolor-saturation.png&quot; /&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;V, for value, is in the range 0 to 255 and represents lightness or brightness of the color. 0 is black; 255 is as far from black as possible.&lt;p&gt;&lt;img src=&quot;%2E%2E/images/qcolor-value.png&quot; /&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Here are some examples: pure red is H=0, S=255, V=255; a dark red, moving slightly towards the magenta, could be H=350 (equivalent to -10), S=255, V=180; a grayish light red could have H about 0 (say 350-359 or 0-10), S about 50-100, and S=255.&lt;/p&gt;
&lt;p&gt;Qt returns a hue value of -1 for achromatic colors. If you pass a hue value that is too large, Qt forces it into range. Hue 360 or 720 is treated as 0; hue 540 is treated as 180.&lt;/p&gt;
&lt;p&gt;In addition to the standard HSV model, Qt provides an alpha-channel to feature alpha-blended drawing&lt;/tt&gt;.&lt;/p&gt;
&lt;a name=&quot;the-cmyk-color-model&quot;&gt;&lt;/a&gt;
&lt;h3&gt;The CMYK Color Model&lt;/h3&gt;
&lt;p&gt;While the RGB and HSV color models are used for display on computer monitors, the CMYK model is used in the four-color printing process of printing presses and some hard-copy devices.&lt;/p&gt;
&lt;p&gt;CMYK has four components, all in the range 0-255: cyan (C), magenta (M), yellow (Y) and black (K). Cyan, magenta and yellow are called subtractive colors; the CMYK color model creates color by starting with a white surface and then subtracting color by applying the appropriate components. While combining cyan, magenta and yellow gives the color black, subtracting one or more will yield any other color. When combined in various percentages, these three colors can create the entire spectrum of colors.&lt;/p&gt;
&lt;p&gt;Mixing 100 percent of cyan, magenta and yellow &lt;i&gt;does&lt;/i&gt; produce black, but the result is unsatisfactory since it wastes ink, increases drying time, and gives a muddy colour when printing. For that reason, black is added in professional printing to provide a solid black tone; hence the term 'four color process'.&lt;/p&gt;
&lt;p&gt;In addition to the standard CMYK model, Qt provides an alpha-channel to feature alpha-blended drawing&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QPalette.html&quot;&gt;&lt;tt&gt;QPalette&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QBrush.html&quot;&gt;&lt;tt&gt;QBrush&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QApplication::setColorSpec&lt;/tt&gt; */">
    <method name="public QColor(int rgb)" doc="/**
&lt;p&gt;Constructs a color with the value &lt;tt&gt;rgb&lt;/tt&gt;. The alpha component is ignored and set to solid.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#fromRgb(int, int, int, int)&quot;&gt;&lt;tt&gt;fromRgb&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QColor(com.trolltech.qt.core.Qt.GlobalColor color)" doc="/**
&lt;p&gt;Constructs a new color with a color value of &lt;tt&gt;color&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt;
@see Predefined Colors&lt;/tt&gt; */"/>
    <method name="public QColor(int r, int g, int b, int a)" doc="/**
&lt;p&gt;Constructs a color with the RGB value &lt;tt&gt;r&lt;/tt&gt;, &lt;tt&gt;g&lt;/tt&gt;, &lt;tt&gt;b&lt;/tt&gt;, and the alpha-channel (transparency) value of &lt;tt&gt;a&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The color is left invalid if any of the arguments are invalid.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#setRgba(int)&quot;&gt;&lt;tt&gt;setRgba&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QColor(int r, int g, int b)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QColor.html#QColor(java.lang.String)&quot;&gt;&lt;tt&gt;QColor&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;r&lt;/tt&gt;, &lt;tt&gt;g&lt;/tt&gt;, &lt;tt&gt;b&lt;/tt&gt;, 255). */"/>
    <method name="public QColor(com.trolltech.qt.gui.QColor color)" doc="/**
&lt;p&gt;Constructs a color that is a copy of &lt;tt&gt;color&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QColor()" doc="/**
&lt;p&gt;Constructs an invalid color with the RGB value (0, 0, 0). An invalid color is a color that is not properly set up for the underlying window system.&lt;/p&gt;
&lt;p&gt;The alpha value of an invalid color is unspecified.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public QColor(java.lang.String name)" doc="/**
&lt;p&gt;Constructs a named color in the same way as &lt;a href=&quot;QColor.html#setNamedColor(java.lang.String)&quot;&gt;&lt;tt&gt;setNamedColor&lt;/tt&gt;&lt;/a&gt; using the given &lt;tt&gt;name&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The color is left invalid if the &lt;tt&gt;name&lt;/tt&gt; cannot be parsed.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#setNamedColor(java.lang.String)&quot;&gt;&lt;tt&gt;setNamedColor&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#name()&quot;&gt;&lt;tt&gt;name&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int alpha()" doc="/**
&lt;p&gt;Returns the alpha color component of this color.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#setAlpha(int)&quot;&gt;&lt;tt&gt;setAlpha&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#alphaF()&quot;&gt;&lt;tt&gt;alphaF&lt;/tt&gt;&lt;/a&gt;
@see Alpha-Blended Drawing&lt;/tt&gt; */"/>
    <method name="public final double alphaF()" doc="/**
&lt;p&gt;Returns the alpha color component of this color.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#setAlphaF(double)&quot;&gt;&lt;tt&gt;setAlphaF&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#alpha()&quot;&gt;&lt;tt&gt;alpha&lt;/tt&gt;&lt;/a&gt;
@see Alpha-Blended Drawing&lt;/tt&gt; */"/>
    <method name="public final int black()" doc="/**
&lt;p&gt;Returns the black color component of this color.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#blackF()&quot;&gt;&lt;tt&gt;blackF&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;getCmyk&lt;/tt&gt;
@see The CMYK Color Model&lt;/tt&gt; */"/>
    <method name="public final double blackF()" doc="/**
&lt;p&gt;Returns the black color component of this color.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#black()&quot;&gt;&lt;tt&gt;black&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;getCmykF&lt;/tt&gt;
@see The CMYK Color Model&lt;/tt&gt; */"/>
    <method name="public final int blue()" doc="/**
&lt;p&gt;Returns the blue color component of this color.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#setBlue(int)&quot;&gt;&lt;tt&gt;setBlue&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#blueF()&quot;&gt;&lt;tt&gt;blueF&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;getRgb&lt;/tt&gt; */"/>
    <method name="public final double blueF()" doc="/**
&lt;p&gt;Returns the blue color component of this color.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#setBlueF(double)&quot;&gt;&lt;tt&gt;setBlueF&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#blue()&quot;&gt;&lt;tt&gt;blue&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;getRgbF&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QColor convertTo(com.trolltech.qt.gui.QColor.Spec colorSpec)" doc="/**
&lt;p&gt;Creates a copy of &lt;i&gt;this&lt;/i&gt; color in the format specified by &lt;tt&gt;colorSpec&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#spec()&quot;&gt;&lt;tt&gt;spec&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#toCmyk()&quot;&gt;&lt;tt&gt;toCmyk&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#toHsv()&quot;&gt;&lt;tt&gt;toHsv&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#toRgb()&quot;&gt;&lt;tt&gt;toRgb&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int cyan()" doc="/**
&lt;p&gt;Returns the cyan color component of this color.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#cyanF()&quot;&gt;&lt;tt&gt;cyanF&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;getCmyk&lt;/tt&gt;
@see The CMYK Color Model&lt;/tt&gt; */"/>
    <method name="public final double cyanF()" doc="/**
&lt;p&gt;Returns the cyan color component of this color.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#cyan()&quot;&gt;&lt;tt&gt;cyan&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;getCmykF&lt;/tt&gt;
@see The CMYK Color Model&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QColor darker(int f)" doc="/**
&lt;p&gt;Returns a darker (or lighter) color, but does not change this object.&lt;/p&gt;
&lt;p&gt;If the &lt;tt&gt;f&lt;/tt&gt; is greater than 100, this functions returns a darker color. Setting &lt;tt&gt;f&lt;/tt&gt; to 300 returns a color that has one-third the brightness. If the &lt;tt&gt;f&lt;/tt&gt; is less than 100, the return color is lighter, but we recommend using the &lt;a href=&quot;QColor.html#lighter(int)&quot;&gt;&lt;tt&gt;lighter&lt;/tt&gt;&lt;/a&gt; function for this purpose. If the &lt;tt&gt;f&lt;/tt&gt; is 0 or negative, the return value is unspecified.&lt;/p&gt;
&lt;p&gt;The function converts the current RGB color to HSV, divides the value (V) component by &lt;tt&gt;f&lt;/tt&gt; and converts the color back to RGB.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#lighter(int)&quot;&gt;&lt;tt&gt;lighter&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QColor darker()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QColor.html#darker(int)&quot;&gt;darker&lt;/tt&gt;&lt;/a&gt;(200). */"/>
    <method name="public final int green()" doc="/**
&lt;p&gt;Returns the green color component of this color.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#setGreen(int)&quot;&gt;&lt;tt&gt;setGreen&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#greenF()&quot;&gt;&lt;tt&gt;greenF&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;getRgb&lt;/tt&gt; */"/>
    <method name="public final double greenF()" doc="/**
&lt;p&gt;Returns the green color component of this color.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#setGreenF(double)&quot;&gt;&lt;tt&gt;setGreenF&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#green()&quot;&gt;&lt;tt&gt;green&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;getRgbF&lt;/tt&gt; */"/>
    <method name="public final int hue()" doc="/**
&lt;p&gt;Returns the hue color component of this color.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#hueF()&quot;&gt;&lt;tt&gt;hueF&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;getHsv&lt;/tt&gt;
@see The HSV Color Model&lt;/tt&gt; */"/>
    <method name="public final double hueF()" doc="/**
&lt;p&gt;Returns the hue color component of this color.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#hue()&quot;&gt;&lt;tt&gt;hue&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;getHsvF&lt;/tt&gt;
@see The HSV Color Model&lt;/tt&gt; */"/>
    <method name="public final boolean isValid()" doc="/**
&lt;p&gt;Returns true if the color is valid; otherwise returns false.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QColor lighter(int f)" doc="/**
&lt;p&gt;Returns a lighter (or darker) color, but does not change this object.&lt;/p&gt;
&lt;p&gt;If the &lt;tt&gt;f&lt;/tt&gt; is greater than 100, this functions returns a lighter color. Setting &lt;tt&gt;f&lt;/tt&gt; to 150 returns a color that is 50% brighter. If the &lt;tt&gt;f&lt;/tt&gt; is less than 100, the return color is darker, but we recommend using the &lt;a href=&quot;QColor.html#darker(int)&quot;&gt;&lt;tt&gt;darker&lt;/tt&gt;&lt;/a&gt; function for this purpose. If the &lt;tt&gt;f&lt;/tt&gt; is 0 or negative, the return value is unspecified.&lt;/p&gt;
&lt;p&gt;The function converts the current RGB color to HSV, multiplies the value (V) component by &lt;tt&gt;f&lt;/tt&gt; and converts the color back to RGB.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#darker(int)&quot;&gt;&lt;tt&gt;darker&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QColor lighter()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QColor.html#lighter(int)&quot;&gt;lighter&lt;/tt&gt;&lt;/a&gt;(150). */"/>
    <method name="public final int magenta()" doc="/**
&lt;p&gt;Returns the magenta color component of this color.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#magentaF()&quot;&gt;&lt;tt&gt;magentaF&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;getCmyk&lt;/tt&gt;
@see The CMYK Color Model&lt;/tt&gt; */"/>
    <method name="public final double magentaF()" doc="/**
&lt;p&gt;Returns the magenta color component of this color.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#magenta()&quot;&gt;&lt;tt&gt;magenta&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;getCmykF&lt;/tt&gt;
@see The CMYK Color Model&lt;/tt&gt; */"/>
    <method name="public final java.lang.String name()" doc="/**
&lt;p&gt;Returns the name of the color in the format &amp;quot;#RRGGBB&amp;quot;; i.e&amp;#x2e; a &amp;quot;#&amp;quot; character followed by three two-digit hexadecimal numbers.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#setNamedColor(java.lang.String)&quot;&gt;&lt;tt&gt;setNamedColor&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void writeTo(com.trolltech.qt.core.QDataStream arg__1)"/>
    <method name="public final void readFrom(com.trolltech.qt.core.QDataStream arg__1)"/>
    <method name="public final int red()" doc="/**
&lt;p&gt;Returns the red color component of this color.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#setRed(int)&quot;&gt;&lt;tt&gt;setRed&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#redF()&quot;&gt;&lt;tt&gt;redF&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;getRgb&lt;/tt&gt; */"/>
    <method name="public final double redF()" doc="/**
&lt;p&gt;Returns the red color component of this color.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#setRedF(double)&quot;&gt;&lt;tt&gt;setRedF&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#red()&quot;&gt;&lt;tt&gt;red&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;getRgbF&lt;/tt&gt; */"/>
    <method name="public final int rgb()" doc="/**
&lt;p&gt;Returns the RGB value of the color. The alpha is stripped for compatibility.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#setRgb(int)&quot;&gt;&lt;tt&gt;setRgb&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;getRgb&lt;/tt&gt;
@see &lt;a href=&quot;QColor.html#rgba()&quot;&gt;&lt;tt&gt;rgba&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int rgba()" doc="/**
&lt;p&gt;Returns the RGB value of the color. Note that unlike &lt;a href=&quot;QColor.html#rgb()&quot;&gt;&lt;tt&gt;rgb&lt;/tt&gt;&lt;/a&gt;, the alpha is not stripped.&lt;/p&gt;
&lt;p&gt;For an invalid color, the alpha value of the returned color is unspecified.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#setRgba(int)&quot;&gt;&lt;tt&gt;setRgba&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#rgb()&quot;&gt;&lt;tt&gt;rgb&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int saturation()" doc="/**
&lt;p&gt;Returns the saturation color component of this color.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#saturationF()&quot;&gt;&lt;tt&gt;saturationF&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;getHsv&lt;/tt&gt;
@see The HSV Color Model&lt;/tt&gt; */"/>
    <method name="public final double saturationF()" doc="/**
&lt;p&gt;Returns the saturation color component of this color.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#saturation()&quot;&gt;&lt;tt&gt;saturation&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;getHsvF&lt;/tt&gt;
@see The HSV Color Model&lt;/tt&gt; */"/>
    <method name="public final void setAlpha(int alpha)" doc="/**
&lt;p&gt;Sets the alpha of this color to &lt;tt&gt;alpha&lt;/tt&gt;. Integer alpha is specified in the range 0-255.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#alpha()&quot;&gt;&lt;tt&gt;alpha&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#alphaF()&quot;&gt;&lt;tt&gt;alphaF&lt;/tt&gt;&lt;/a&gt;
@see Alpha-Blended Drawing&lt;/tt&gt; */"/>
    <method name="public final void setAlphaF(double alpha)" doc="/**
&lt;p&gt;Sets the alpha of this color to &lt;tt&gt;alpha&lt;/tt&gt;. qreal alpha is specified in the range 0.0-1.0&amp;#x2e;&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#alphaF()&quot;&gt;&lt;tt&gt;alphaF&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#alpha()&quot;&gt;&lt;tt&gt;alpha&lt;/tt&gt;&lt;/a&gt;
@see Alpha-Blended Drawing&lt;/tt&gt; */"/>
    <method name="public final void setBlue(int blue)" doc="/**
&lt;p&gt;Sets the blue color component of this color to &lt;tt&gt;blue&lt;/tt&gt;. Int components are specified in the range 0-255.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#blue()&quot;&gt;&lt;tt&gt;blue&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#blueF()&quot;&gt;&lt;tt&gt;blueF&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#setRgb(int)&quot;&gt;&lt;tt&gt;setRgb&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setBlueF(double blue)" doc="/**
&lt;p&gt;Sets the blue color component of this color to &lt;tt&gt;blue&lt;/tt&gt;. Float components are specified in the range 0.0-1.0&amp;#x2e;&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#blueF()&quot;&gt;&lt;tt&gt;blueF&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#blue()&quot;&gt;&lt;tt&gt;blue&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#setRgbF(double, double, double, double)&quot;&gt;&lt;tt&gt;setRgbF&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setCmyk(int c, int m, int y, int k, int a)" doc="/**
&lt;p&gt;Sets the color to CMYK values, &lt;tt&gt;c&lt;/tt&gt; (cyan), &lt;tt&gt;m&lt;/tt&gt; (magenta), &lt;tt&gt;y&lt;/tt&gt; (yellow), &lt;tt&gt;k&lt;/tt&gt; (black), and &lt;tt&gt;a&lt;/tt&gt; (alpha-channel, i.e&amp;#x2e; transparency).&lt;/p&gt;
&lt;p&gt;All the values must be in the range 0-255.&lt;/p&gt;

@see &lt;tt&gt;getCmyk&lt;/tt&gt;
@see &lt;a href=&quot;QColor.html#setCmykF(double, double, double, double, double)&quot;&gt;&lt;tt&gt;setCmykF&lt;/tt&gt;&lt;/a&gt;
@see The CMYK Color Model&lt;/tt&gt; */"/>
    <method name="public final void setCmyk(int c, int m, int y, int k)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QColor.html#setCmyk(int, int, int, int, int)&quot;&gt;&lt;tt&gt;setCmyk&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;c&lt;/tt&gt;, &lt;tt&gt;m&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;k&lt;/tt&gt;, 255). */"/>
    <method name="public final void setCmykF(double c, double m, double y, double k, double a)" doc="/**
&lt;p&gt;Sets the color to CMYK values, &lt;tt&gt;c&lt;/tt&gt; (cyan), &lt;tt&gt;m&lt;/tt&gt; (magenta), &lt;tt&gt;y&lt;/tt&gt; (yellow), &lt;tt&gt;k&lt;/tt&gt; (black), and &lt;tt&gt;a&lt;/tt&gt; (alpha-channel, i.e&amp;#x2e; transparency).&lt;/p&gt;
&lt;p&gt;All the values must be in the range 0.0-1.0&amp;#x2e;&lt;/p&gt;

@see &lt;tt&gt;getCmykF&lt;/tt&gt;
@see &lt;a href=&quot;QColor.html#setCmyk(int, int, int, int, int)&quot;&gt;&lt;tt&gt;setCmyk&lt;/tt&gt;&lt;/a&gt;
@see The CMYK Color Model&lt;/tt&gt; */"/>
    <method name="public final void setCmykF(double c, double m, double y, double k)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QColor.html#setCmykF(double, double, double, double, double)&quot;&gt;&lt;tt&gt;setCmykF&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;c&lt;/tt&gt;, &lt;tt&gt;m&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;k&lt;/tt&gt;, 1.0). */"/>
    <method name="public final void setGreen(int green)" doc="/**
&lt;p&gt;Sets the green color component of this color to &lt;tt&gt;green&lt;/tt&gt;. Int components are specified in the range 0-255.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#green()&quot;&gt;&lt;tt&gt;green&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#greenF()&quot;&gt;&lt;tt&gt;greenF&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#setRgb(int)&quot;&gt;&lt;tt&gt;setRgb&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setGreenF(double green)" doc="/**
&lt;p&gt;Sets the green color component of this color to &lt;tt&gt;green&lt;/tt&gt;. Float components are specified in the range 0.0-1.0&amp;#x2e;&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#greenF()&quot;&gt;&lt;tt&gt;greenF&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#green()&quot;&gt;&lt;tt&gt;green&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#setRgbF(double, double, double, double)&quot;&gt;&lt;tt&gt;setRgbF&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setHsv(int h, int s, int v, int a)" doc="/**
&lt;p&gt;Sets a HSV color value; &lt;tt&gt;h&lt;/tt&gt; is the hue, &lt;tt&gt;s&lt;/tt&gt; is the saturation, &lt;tt&gt;v&lt;/tt&gt; is the value and &lt;tt&gt;a&lt;/tt&gt; is the alpha component of the HSV color.&lt;/p&gt;
&lt;p&gt;The saturation, value and alpha-channel values must be in the range 0-255, and the hue value must be greater than -1.&lt;/p&gt;

@see &lt;tt&gt;getHsv&lt;/tt&gt;
@see &lt;a href=&quot;QColor.html#setHsvF(double, double, double, double)&quot;&gt;&lt;tt&gt;setHsvF&lt;/tt&gt;&lt;/a&gt;
@see The HSV Color Model&lt;/tt&gt; */"/>
    <method name="public final void setHsv(int h, int s, int v)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QColor.html#setHsv(int, int, int, int)&quot;&gt;&lt;tt&gt;setHsv&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;h&lt;/tt&gt;, &lt;tt&gt;s&lt;/tt&gt;, &lt;tt&gt;v&lt;/tt&gt;, 255). */"/>
    <method name="public final void setHsvF(double h, double s, double v, double a)" doc="/**
&lt;p&gt;Sets a HSV color value; &lt;tt&gt;h&lt;/tt&gt; is the hue, &lt;tt&gt;s&lt;/tt&gt; is the saturation, &lt;tt&gt;v&lt;/tt&gt; is the value and &lt;tt&gt;a&lt;/tt&gt; is the alpha component of the HSV color.&lt;/p&gt;
&lt;p&gt;All the values must be in the range 0.0-1.0&amp;#x2e;&lt;/p&gt;

@see &lt;tt&gt;getHsvF&lt;/tt&gt;
@see &lt;a href=&quot;QColor.html#setHsv(int, int, int, int)&quot;&gt;&lt;tt&gt;setHsv&lt;/tt&gt;&lt;/a&gt;
@see The HSV Color Model&lt;/tt&gt; */"/>
    <method name="public final void setHsvF(double h, double s, double v)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QColor.html#setHsvF(double, double, double, double)&quot;&gt;&lt;tt&gt;setHsvF&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;h&lt;/tt&gt;, &lt;tt&gt;s&lt;/tt&gt;, &lt;tt&gt;v&lt;/tt&gt;, 1.0). */"/>
    <method name="public final void setNamedColor(java.lang.String name)" doc="/**
&lt;p&gt;Sets the RGB value of this &lt;a href=&quot;QColor.html#QColor(java.lang.String)&quot;&gt;&lt;tt&gt;QColor&lt;/tt&gt;&lt;/a&gt; to &lt;tt&gt;name&lt;/tt&gt;, which may be in one of these formats:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;#RGB (each of R, G, and B is a single hex digit)&lt;/li&gt;
&lt;li&gt;#RRGGBB&lt;/li&gt;
&lt;li&gt;#RRRGGGBBB&lt;/li&gt;
&lt;li&gt;#RRRRGGGGBBBB&lt;/li&gt;
&lt;li&gt;A name from the list of colors defined in the list of SVG color keyword names&lt;/tt&gt; provided by the World Wide Web Consortium; for example, &amp;quot;steelblue&amp;quot; or &amp;quot;gainsboro&amp;quot;. These color names work on all platforms.&lt;/li&gt;
&lt;li&gt;&lt;tt&gt;transparent&lt;/tt&gt; - representing the absence of a color.&lt;/li&gt;
&lt;li&gt;&lt;i&gt;X11 only&lt;/i&gt;: If allowX11ColorNames() returns true, any valid X11 color name. See the documentation for &lt;tt&gt;XParseColor()&lt;/tt&gt; for information about valid X11 color names.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The color is invalid if &lt;tt&gt;name&lt;/tt&gt; cannot be parsed.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#QColor(java.lang.String)&quot;&gt;&lt;tt&gt;QColor&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#name()&quot;&gt;&lt;tt&gt;name&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;allowX11ColorNames&lt;/tt&gt; */"/>
    <method name="public final void setRed(int red)" doc="/**
&lt;p&gt;Sets the red color component of this color to &lt;tt&gt;red&lt;/tt&gt;. Int components are specified in the range 0-255.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#red()&quot;&gt;&lt;tt&gt;red&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#redF()&quot;&gt;&lt;tt&gt;redF&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#setRgb(int)&quot;&gt;&lt;tt&gt;setRgb&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setRedF(double red)" doc="/**
&lt;p&gt;Sets the red color component of this color to &lt;tt&gt;red&lt;/tt&gt;. Float components are specified in the range 0.0-1.0&amp;#x2e;&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#redF()&quot;&gt;&lt;tt&gt;redF&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#red()&quot;&gt;&lt;tt&gt;red&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#setRgbF(double, double, double, double)&quot;&gt;&lt;tt&gt;setRgbF&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setRgb(int r, int g, int b, int a)" doc="/**
&lt;p&gt;Sets the RGB value to &lt;tt&gt;r&lt;/tt&gt;, &lt;tt&gt;g&lt;/tt&gt;, &lt;tt&gt;b&lt;/tt&gt; and the alpha value to &lt;tt&gt;a&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;All the values must be in the range 0-255.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#rgb()&quot;&gt;&lt;tt&gt;rgb&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;getRgb&lt;/tt&gt;
@see &lt;a href=&quot;QColor.html#setRgbF(double, double, double, double)&quot;&gt;&lt;tt&gt;setRgbF&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setRgb(int r, int g, int b)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QColor.html#setRgb(int)&quot;&gt;&lt;tt&gt;setRgb&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;r&lt;/tt&gt;, &lt;tt&gt;g&lt;/tt&gt;, &lt;tt&gt;b&lt;/tt&gt;, 255). */"/>
    <method name="public final void setRgb(int rgb)" doc="/**
&lt;p&gt;Sets the RGB value to &lt;tt&gt;rgb&lt;/tt&gt;, ignoring the alpha.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#rgb()&quot;&gt;&lt;tt&gt;rgb&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setRgbF(double r, double g, double b, double a)" doc="/**
&lt;p&gt;Sets the color channels of this color to &lt;tt&gt;r&lt;/tt&gt; (red), &lt;tt&gt;g&lt;/tt&gt; (green), &lt;tt&gt;b&lt;/tt&gt; (blue) and &lt;tt&gt;a&lt;/tt&gt; (alpha, transparency).&lt;/p&gt;
&lt;p&gt;All values must be in the range 0.0-1.0&amp;#x2e;&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#rgb()&quot;&gt;&lt;tt&gt;rgb&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;getRgbF&lt;/tt&gt;
@see &lt;a href=&quot;QColor.html#setRgb(int)&quot;&gt;&lt;tt&gt;setRgb&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setRgbF(double r, double g, double b)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QColor.html#setRgbF(double, double, double, double)&quot;&gt;&lt;tt&gt;setRgbF&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;r&lt;/tt&gt;, &lt;tt&gt;g&lt;/tt&gt;, &lt;tt&gt;b&lt;/tt&gt;, 1.0). */"/>
    <method name="public final void setRgba(int rgba)" doc="/**
&lt;p&gt;Sets the RGBA value to &lt;tt&gt;rgba&lt;/tt&gt;. Note that unlike &lt;a href=&quot;QColor.html#setRgb(int)&quot;&gt;&lt;tt&gt;setRgb&lt;/tt&gt;&lt;/a&gt;(QRgb rgb), this function does not ignore the alpha.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#rgba()&quot;&gt;&lt;tt&gt;rgba&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#rgb()&quot;&gt;&lt;tt&gt;rgb&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QColor.Spec spec()" doc="/**
&lt;p&gt;Returns how the color was specified.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#Spec-enum&quot;&gt;Spec&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#convertTo(com.trolltech.qt.gui.QColor.Spec)&quot;&gt;&lt;tt&gt;convertTo&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QColor toCmyk()" doc="/**
&lt;p&gt;Creates and returns a CMYK &lt;a href=&quot;QColor.html#QColor(java.lang.String)&quot;&gt;&lt;tt&gt;QColor&lt;/tt&gt;&lt;/a&gt; based on this color.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#fromCmyk(int, int, int, int, int)&quot;&gt;&lt;tt&gt;fromCmyk&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#convertTo(com.trolltech.qt.gui.QColor.Spec)&quot;&gt;&lt;tt&gt;convertTo&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt;
@see The CMYK Color Model&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QColor toHsv()" doc="/**
&lt;p&gt;Creates and returns an HSV &lt;a href=&quot;QColor.html#QColor(java.lang.String)&quot;&gt;&lt;tt&gt;QColor&lt;/tt&gt;&lt;/a&gt; based on this color.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#fromHsv(int, int, int, int)&quot;&gt;&lt;tt&gt;fromHsv&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#convertTo(com.trolltech.qt.gui.QColor.Spec)&quot;&gt;&lt;tt&gt;convertTo&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt;
@see The HSV Color Model&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QColor toRgb()" doc="/**
&lt;p&gt;Create and returns an RGB &lt;a href=&quot;QColor.html#QColor(java.lang.String)&quot;&gt;&lt;tt&gt;QColor&lt;/tt&gt;&lt;/a&gt; based on this color.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#fromRgb(int, int, int, int)&quot;&gt;&lt;tt&gt;fromRgb&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#convertTo(com.trolltech.qt.gui.QColor.Spec)&quot;&gt;&lt;tt&gt;convertTo&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final int value()" doc="/**
&lt;p&gt;Returns the value color component of this color.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#valueF()&quot;&gt;&lt;tt&gt;valueF&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;getHsv&lt;/tt&gt;
@see The HSV Color Model&lt;/tt&gt; */"/>
    <method name="public final double valueF()" doc="/**
&lt;p&gt;Returns the value color component of this color.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#value()&quot;&gt;&lt;tt&gt;value&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;getHsvF&lt;/tt&gt;
@see The HSV Color Model&lt;/tt&gt; */"/>
    <method name="public final int yellow()" doc="/**
&lt;p&gt;Returns the yellow color component of this color.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#yellowF()&quot;&gt;&lt;tt&gt;yellowF&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;getCmyk&lt;/tt&gt;
@see The CMYK Color Model&lt;/tt&gt; */"/>
    <method name="public final double yellowF()" doc="/**
&lt;p&gt;Returns the yellow color component of this color.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#yellow()&quot;&gt;&lt;tt&gt;yellow&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;getCmykF&lt;/tt&gt;
@see The CMYK Color Model&lt;/tt&gt; */"/>
    <method name="public native static java.util.List&lt;java.lang.String&gt; colorNames()" doc="/**
&lt;p&gt;Returns a &lt;a href=&quot;%2E%2E/porting4.html#qstringlist&quot;&gt;&lt;tt&gt;QStringList&lt;/tt&gt;&lt;/a&gt; containing the color names Qt knows about.&lt;/p&gt;

@see Predefined Colors&lt;/tt&gt; */"/>
    <method name="public native static com.trolltech.qt.gui.QColor fromCmyk(int c, int m, int y, int k, int a)" doc="/**
&lt;p&gt;Static convenience function that returns a &lt;a href=&quot;QColor.html#QColor(java.lang.String)&quot;&gt;&lt;tt&gt;QColor&lt;/tt&gt;&lt;/a&gt; constructed from the given CMYK color values: &lt;tt&gt;c&lt;/tt&gt; (cyan), &lt;tt&gt;m&lt;/tt&gt; (magenta), &lt;tt&gt;y&lt;/tt&gt; (yellow), &lt;tt&gt;k&lt;/tt&gt; (black), and &lt;tt&gt;a&lt;/tt&gt; (alpha-channel, i.e&amp;#x2e; transparency).&lt;/p&gt;
&lt;p&gt;All the values must be in the range 0-255.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#toCmyk()&quot;&gt;&lt;tt&gt;toCmyk&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#fromCmykF(double, double, double, double, double)&quot;&gt;&lt;tt&gt;fromCmykF&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt;
@see The CMYK Color Model&lt;/tt&gt; */"/>
    <method name="public static com.trolltech.qt.gui.QColor fromCmyk(int c, int m, int y, int k)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QColor.html#fromCmyk(int, int, int, int, int)&quot;&gt;&lt;tt&gt;fromCmyk&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;c&lt;/tt&gt;, &lt;tt&gt;m&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;k&lt;/tt&gt;, 255). */"/>
    <method name="public native static com.trolltech.qt.gui.QColor fromCmykF(double c, double m, double y, double k, double a)" doc="/**
&lt;p&gt;Static convenience function that returns a &lt;a href=&quot;QColor.html#QColor(java.lang.String)&quot;&gt;&lt;tt&gt;QColor&lt;/tt&gt;&lt;/a&gt; constructed from the given CMYK color values: &lt;tt&gt;c&lt;/tt&gt; (cyan), &lt;tt&gt;m&lt;/tt&gt; (magenta), &lt;tt&gt;y&lt;/tt&gt; (yellow), &lt;tt&gt;k&lt;/tt&gt; (black), and &lt;tt&gt;a&lt;/tt&gt; (alpha-channel, i.e&amp;#x2e; transparency).&lt;/p&gt;
&lt;p&gt;All the values must be in the range 0.0-1.0&amp;#x2e;&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#toCmyk()&quot;&gt;&lt;tt&gt;toCmyk&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#fromCmyk(int, int, int, int, int)&quot;&gt;&lt;tt&gt;fromCmyk&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt;
@see The CMYK Color Model&lt;/tt&gt; */"/>
    <method name="public static com.trolltech.qt.gui.QColor fromCmykF(double c, double m, double y, double k)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QColor.html#fromCmykF(double, double, double, double, double)&quot;&gt;&lt;tt&gt;fromCmykF&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;c&lt;/tt&gt;, &lt;tt&gt;m&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;k&lt;/tt&gt;, 1.0). */"/>
    <method name="public native static com.trolltech.qt.gui.QColor fromHsv(int h, int s, int v, int a)" doc="/**
&lt;p&gt;Static convenience function that returns a &lt;a href=&quot;QColor.html#QColor(java.lang.String)&quot;&gt;&lt;tt&gt;QColor&lt;/tt&gt;&lt;/a&gt; constructed from the HSV color values, &lt;tt&gt;h&lt;/tt&gt; (hue), &lt;tt&gt;s&lt;/tt&gt; (saturation), &lt;tt&gt;v&lt;/tt&gt; (value), and &lt;tt&gt;a&lt;/tt&gt; (alpha-channel, i.e&amp;#x2e; transparency).&lt;/p&gt;
&lt;p&gt;The value of &lt;tt&gt;s&lt;/tt&gt;, &lt;tt&gt;v&lt;/tt&gt;, and &lt;tt&gt;a&lt;/tt&gt; must all be in the range 0-255; the value of &lt;tt&gt;h&lt;/tt&gt; must be in the range 0-359.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#toHsv()&quot;&gt;&lt;tt&gt;toHsv&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#fromHsvF(double, double, double, double)&quot;&gt;&lt;tt&gt;fromHsvF&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt;
@see The HSV Color Model&lt;/tt&gt; */"/>
    <method name="public static com.trolltech.qt.gui.QColor fromHsv(int h, int s, int v)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QColor.html#fromHsv(int, int, int, int)&quot;&gt;&lt;tt&gt;fromHsv&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;h&lt;/tt&gt;, &lt;tt&gt;s&lt;/tt&gt;, &lt;tt&gt;v&lt;/tt&gt;, 255). */"/>
    <method name="public native static com.trolltech.qt.gui.QColor fromHsvF(double h, double s, double v, double a)" doc="/**
&lt;p&gt;Static convenience function that returns a &lt;a href=&quot;QColor.html#QColor(java.lang.String)&quot;&gt;&lt;tt&gt;QColor&lt;/tt&gt;&lt;/a&gt; constructed from the HSV color values, &lt;tt&gt;h&lt;/tt&gt; (hue), &lt;tt&gt;s&lt;/tt&gt; (saturation), &lt;tt&gt;v&lt;/tt&gt; (value), and &lt;tt&gt;a&lt;/tt&gt; (alpha-channel, i.e&amp;#x2e; transparency).&lt;/p&gt;
&lt;p&gt;All the values must be in the range 0.0-1.0&amp;#x2e;&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#toHsv()&quot;&gt;&lt;tt&gt;toHsv&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#fromHsv(int, int, int, int)&quot;&gt;&lt;tt&gt;fromHsv&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt;
@see The HSV Color Model&lt;/tt&gt; */"/>
    <method name="public static com.trolltech.qt.gui.QColor fromHsvF(double h, double s, double v)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QColor.html#fromHsvF(double, double, double, double)&quot;&gt;&lt;tt&gt;fromHsvF&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;h&lt;/tt&gt;, &lt;tt&gt;s&lt;/tt&gt;, &lt;tt&gt;v&lt;/tt&gt;, 1.0). */"/>
    <method name="public native static com.trolltech.qt.gui.QColor fromRgb(int rgb)" doc="/**
&lt;p&gt;Static convenience function that returns a &lt;a href=&quot;QColor.html#QColor(java.lang.String)&quot;&gt;&lt;tt&gt;QColor&lt;/tt&gt;&lt;/a&gt; constructed from the given QRgb value &lt;tt&gt;rgb&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Note that the alpha component of &lt;tt&gt;rgb&lt;/tt&gt; is ignored (i.e&amp;#x2e; it is automatically set to 255), use the &lt;a href=&quot;QColor.html#fromRgba(int)&quot;&gt;&lt;tt&gt;fromRgba&lt;/tt&gt;&lt;/a&gt; function to include the alpha-channel specified by the given QRgb value.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#fromRgba(int)&quot;&gt;&lt;tt&gt;fromRgba&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#fromRgbF(double, double, double, double)&quot;&gt;&lt;tt&gt;fromRgbF&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#toRgb()&quot;&gt;&lt;tt&gt;toRgb&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public native static com.trolltech.qt.gui.QColor fromRgb(int r, int g, int b, int a)" doc="/**
&lt;p&gt;Static convenience function that returns a &lt;a href=&quot;QColor.html#QColor(java.lang.String)&quot;&gt;&lt;tt&gt;QColor&lt;/tt&gt;&lt;/a&gt; constructed from the RGB color values, &lt;tt&gt;r&lt;/tt&gt; (red), &lt;tt&gt;g&lt;/tt&gt; (green), &lt;tt&gt;b&lt;/tt&gt; (blue), and &lt;tt&gt;a&lt;/tt&gt; (alpha-channel, i.e&amp;#x2e; transparency).&lt;/p&gt;
&lt;p&gt;All the values must be in the range 0-255.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#toRgb()&quot;&gt;&lt;tt&gt;toRgb&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#fromRgbF(double, double, double, double)&quot;&gt;&lt;tt&gt;fromRgbF&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static com.trolltech.qt.gui.QColor fromRgb(int r, int g, int b)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QColor.html#fromRgb(int, int, int, int)&quot;&gt;&lt;tt&gt;fromRgb&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;r&lt;/tt&gt;, &lt;tt&gt;g&lt;/tt&gt;, &lt;tt&gt;b&lt;/tt&gt;, 255). */"/>
    <method name="public native static com.trolltech.qt.gui.QColor fromRgbF(double r, double g, double b, double a)" doc="/**
&lt;p&gt;Static convenience function that returns a &lt;a href=&quot;QColor.html#QColor(java.lang.String)&quot;&gt;&lt;tt&gt;QColor&lt;/tt&gt;&lt;/a&gt; constructed from the RGB color values, &lt;tt&gt;r&lt;/tt&gt; (red), &lt;tt&gt;g&lt;/tt&gt; (green), &lt;tt&gt;b&lt;/tt&gt; (blue), and &lt;tt&gt;a&lt;/tt&gt; (alpha-channel, i.e&amp;#x2e; transparency).&lt;/p&gt;
&lt;p&gt;All the values must be in the range 0.0-1.0&amp;#x2e;&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#fromRgb(int, int, int, int)&quot;&gt;&lt;tt&gt;fromRgb&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#toRgb()&quot;&gt;&lt;tt&gt;toRgb&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public static com.trolltech.qt.gui.QColor fromRgbF(double r, double g, double b)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QColor.html#fromRgbF(double, double, double, double)&quot;&gt;&lt;tt&gt;fromRgbF&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;r&lt;/tt&gt;, &lt;tt&gt;g&lt;/tt&gt;, &lt;tt&gt;b&lt;/tt&gt;, 1.0). */"/>
    <method name="public native static com.trolltech.qt.gui.QColor fromRgba(int rgba)" doc="/**
&lt;p&gt;Static convenience function that returns a &lt;a href=&quot;QColor.html#QColor(java.lang.String)&quot;&gt;&lt;tt&gt;QColor&lt;/tt&gt;&lt;/a&gt; constructed from the given QRgb value &lt;tt&gt;rgba&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Note that unlike the &lt;a href=&quot;QColor.html#fromRgb(int, int, int, int)&quot;&gt;&lt;tt&gt;fromRgb&lt;/tt&gt;&lt;/a&gt; function, the alpha-channel specified by the given QRgb value is included.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#fromRgb(int, int, int, int)&quot;&gt;&lt;tt&gt;fromRgb&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#isValid()&quot;&gt;&lt;tt&gt;isValid&lt;/tt&gt;&lt;/a&gt; */"/>
    <enum name="Spec" doc="/**
&lt;p&gt;The type of color specified, either RGB, HSV or CMYK.&lt;/p&gt;

@see &lt;a href=&quot;QColor.html#spec()&quot;&gt;&lt;tt&gt;spec&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QColor.html#convertTo(com.trolltech.qt.gui.QColor.Spec)&quot;&gt;&lt;tt&gt;convertTo&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="Invalid" doc="/**
Internal. */"/>
        <enum-value name="Rgb" doc="/**
Internal. */"/>
        <enum-value name="Hsv" doc="/**
Internal. */"/>
        <enum-value name="Cmyk" doc="/**
Internal. */"/>
</enum>
</class>