<class name="QIcon" doc="/**
&lt;p&gt;The &lt;a href=&quot;QIcon.html#QIcon(com.trolltech.qt.gui.QIconEngine)&quot;&gt;&lt;tt&gt;QIcon&lt;/tt&gt;&lt;/a&gt; class provides scalable icons in different modes and states.&lt;/p&gt;
&lt;p&gt;A &lt;a href=&quot;QIcon.html#QIcon(com.trolltech.qt.gui.QIconEngine)&quot;&gt;&lt;tt&gt;QIcon&lt;/tt&gt;&lt;/a&gt; can generate smaller, larger, active, and disabled pixmaps from the set of pixmaps it is given. Such pixmaps are used by Qt widgets to show an icon representing a particular action.&lt;/p&gt;
&lt;p&gt;The simplest use of &lt;a href=&quot;QIcon.html#QIcon(com.trolltech.qt.gui.QIconEngine)&quot;&gt;&lt;tt&gt;QIcon&lt;/tt&gt;&lt;/a&gt; is to create one from a &lt;a href=&quot;QPixmap.html&quot;&gt;&lt;tt&gt;QPixmap&lt;/tt&gt;&lt;/a&gt; file or resource, and then use it, allowing Qt to work out all the required icon styles and sizes. For example:&lt;/p&gt;
&lt;pre&gt;    QToolButton *button = new QToolButton;
    button-&amp;gt;setIcon(QIcon(&amp;quot;open.xpm&amp;quot;));&lt;/pre&gt;
&lt;p&gt;To undo a &lt;a href=&quot;QIcon.html#QIcon(com.trolltech.qt.gui.QIconEngine)&quot;&gt;&lt;tt&gt;QIcon&lt;/tt&gt;&lt;/a&gt;, simply set a null icon in its place:&lt;/p&gt;
&lt;pre&gt;    button-&amp;gt;setIcon(QIcon());&lt;/pre&gt;
&lt;p&gt;Use the QImageReader::supportedImageFormats() and QImageWriter::supportedImageFormats() functions to retrieve a complete list of the supported file formats.&lt;/p&gt;
&lt;p&gt;When you retrieve a pixmap using pixmap(&lt;a href=&quot;%2E%2E/core/QSize.html&quot;&gt;&lt;tt&gt;QSize&lt;/tt&gt;&lt;/a&gt;, Mode, State), and no pixmap for this given size, mode and state has been added with &lt;a href=&quot;QIcon.html#addFile(java.lang.String, com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)&quot;&gt;&lt;tt&gt;addFile&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QIcon.html#addPixmap(com.trolltech.qt.gui.QPixmap, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)&quot;&gt;&lt;tt&gt;addPixmap&lt;/tt&gt;&lt;/a&gt;, then &lt;a href=&quot;QIcon.html#QIcon(com.trolltech.qt.gui.QIconEngine)&quot;&gt;&lt;tt&gt;QIcon&lt;/tt&gt;&lt;/a&gt; will generate one on the fly. This pixmap generation happens in a &lt;a href=&quot;QIconEngineV2.html&quot;&gt;&lt;tt&gt;QIconEngineV2&lt;/tt&gt;&lt;/a&gt;. The default engine scales pixmaps down if required, but never up, and it uses the current style to calculate a disabled appearance. By using custom icon engines, you can customize every aspect of generated icons. With QIconEnginePluginV2 it is possible to register different icon engines for different file suffixes, so you could provide a SVG icon engine or any other scalable format.&lt;/p&gt;
&lt;a name=&quot;making-classes-that-use-qicon&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Making Classes that Use QIcon&lt;/h3&gt;
&lt;p&gt;If you write your own widgets that have an option to set a small pixmap, consider allowing a &lt;a href=&quot;QIcon.html#QIcon(com.trolltech.qt.gui.QIconEngine)&quot;&gt;&lt;tt&gt;QIcon&lt;/tt&gt;&lt;/a&gt; to be set for that pixmap. The Qt class &lt;a href=&quot;QToolButton.html&quot;&gt;&lt;tt&gt;QToolButton&lt;/tt&gt;&lt;/a&gt; is an example of such a widget.&lt;/p&gt;
&lt;p&gt;Provide a method to set a &lt;a href=&quot;QIcon.html#QIcon(com.trolltech.qt.gui.QIconEngine)&quot;&gt;&lt;tt&gt;QIcon&lt;/tt&gt;&lt;/a&gt;, and when you draw the icon, choose whichever pixmap is appropriate for the current state of your widget. For example:&lt;/p&gt;
&lt;pre&gt;     void MyWidget::drawIcon(QPainter *painter, QPoint pos)
     {
         QPixmap pixmap = icon.pixmap(QSize(22, 22),
                                        isEnabled() ? QIcon::Normal
                                                    : QIcon::Disabled,
                                        isOn() ? QIcon::On
                                               : QIcon::Off);
         painter-&amp;gt;drawPixmap(pos, pixmap);
     }&lt;/pre&gt;
&lt;p&gt;You might also make use of the &lt;tt&gt;Active&lt;/tt&gt; mode, perhaps making your widget &lt;tt&gt;Active&lt;/tt&gt; when the mouse is over the widget (see &lt;tt&gt;QWidget::enterEvent&lt;/tt&gt;), while the mouse is pressed pending the release that will activate the function, or when it is the currently selected item. If the widget can be toggled, the &amp;quot;On&amp;quot; mode might be used to draw a different icon.&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/icon.png&quot; alt=&quot;QIcon&quot; /&gt;&lt;/p&gt;
@see &lt;a href=&quot;%2E%2E/guibooks.html#fowler&quot;&gt;GUI Design Handbook: Iconic Label&lt;/tt&gt;&lt;/a&gt;
@see Icons Example&lt;/tt&gt; */">
    <method name="public QIcon(com.trolltech.qt.gui.QPixmap pixmap)" doc="/**
&lt;p&gt;Constructs an icon from a &lt;tt&gt;pixmap&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QIcon(java.lang.String fileName)" doc="/**
&lt;p&gt;Constructs an icon from the file with the given &lt;tt&gt;fileName&lt;/tt&gt;. The file will be loaded on demand.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;fileName&lt;/tt&gt; contains a relative path (e.g&amp;#x2e; the filename only) the relevant file must be found relative to the runtime working directory.&lt;/p&gt;
&lt;p&gt;The file name can be either refer to an actual file on disk or to one of the application's embedded resources. See the &lt;a href=&quot;%2E%2E/resources.html&quot;&gt;Resource System&lt;/tt&gt;&lt;/a&gt; overview for details on how to embed images and other resource files in the application's executable.&lt;/p&gt;
&lt;p&gt;Use the QImageReader::supportedImageFormats() and QImageWriter::supportedImageFormats() functions to retrieve a complete list of the supported file formats.&lt;/p&gt;
 */"/>
    <method name="public QIcon(com.trolltech.qt.gui.QIconEngineV2 engine)" doc="/**
&lt;p&gt;Creates an icon with a specific icon &lt;tt&gt;engine&lt;/tt&gt;. The icon takes ownership of the engine.&lt;/p&gt;
 */"/>
    <method name="public QIcon(com.trolltech.qt.gui.QIcon other)" doc="/**
&lt;p&gt;Constructs a copy of &lt;tt&gt;other&lt;/tt&gt;. This is very fast.&lt;/p&gt;
 */"/>
    <method name="public QIcon()" doc="/**
&lt;p&gt;Constructs a null icon.&lt;/p&gt;
 */"/>
    <method name="public QIcon(com.trolltech.qt.gui.QIconEngine engine)" doc="/**
&lt;p&gt;Creates an icon with a specific icon &lt;tt&gt;engine&lt;/tt&gt;. The icon takes ownership of the engine.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.QSize actualSize(com.trolltech.qt.core.QSize size, com.trolltech.qt.gui.QIcon.Mode mode, com.trolltech.qt.gui.QIcon.State state)" doc="/**
&lt;p&gt;Returns the actual size of the icon for the requested &lt;tt&gt;size&lt;/tt&gt;, &lt;tt&gt;mode&lt;/tt&gt;, and &lt;tt&gt;state&lt;/tt&gt;. The result might be smaller than requested, but never larger.&lt;/p&gt;

@see &lt;a href=&quot;QIcon.html#pixmap(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)&quot;&gt;&lt;tt&gt;pixmap&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QIcon.html#paint(com.trolltech.qt.gui.QPainter, int, int, int, int, com.trolltech.qt.core.Qt.Alignment, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)&quot;&gt;&lt;tt&gt;paint&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QSize actualSize(com.trolltech.qt.core.QSize size, com.trolltech.qt.gui.QIcon.Mode mode)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QIcon.html#actualSize(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)&quot;&gt;&lt;tt&gt;actualSize&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;size&lt;/tt&gt;, &lt;tt&gt;mode&lt;/tt&gt;, Off). */"/>
    <method name="public final com.trolltech.qt.core.QSize actualSize(com.trolltech.qt.core.QSize size)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QIcon.html#actualSize(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)&quot;&gt;&lt;tt&gt;actualSize&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;size&lt;/tt&gt;, Normal, Off). */"/>
    <method name="public final void addFile(java.lang.String fileName, com.trolltech.qt.core.QSize size, com.trolltech.qt.gui.QIcon.Mode mode, com.trolltech.qt.gui.QIcon.State state)" doc="/**
&lt;p&gt;Adds a pixmap from the file with the given &lt;tt&gt;fileName&lt;/tt&gt; to the icon, as a specialization for &lt;tt&gt;size&lt;/tt&gt;, &lt;tt&gt;mode&lt;/tt&gt; and &lt;tt&gt;state&lt;/tt&gt;. The file will be loaded on demand. Note: custom icon engines are free to ignore additionally added pixmaps.&lt;/p&gt;
&lt;p&gt;If &lt;tt&gt;fileName&lt;/tt&gt; contains a relative path (e.g&amp;#x2e; the filename only) the relevant file must be found relative to the runtime working directory.&lt;/p&gt;
&lt;p&gt;The file name can be either refer to an actual file on disk or to one of the application's embedded resources. See the &lt;a href=&quot;%2E%2E/resources.html&quot;&gt;Resource System&lt;/tt&gt;&lt;/a&gt; overview for details on how to embed images and other resource files in the application's executable.&lt;/p&gt;
&lt;p&gt;Use the QImageReader::supportedImageFormats() and QImageWriter::supportedImageFormats() functions to retrieve a complete list of the supported file formats.&lt;/p&gt;

@see &lt;a href=&quot;QIcon.html#addPixmap(com.trolltech.qt.gui.QPixmap, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)&quot;&gt;&lt;tt&gt;addPixmap&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void addFile(java.lang.String fileName, com.trolltech.qt.core.QSize size, com.trolltech.qt.gui.QIcon.Mode mode)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QIcon.html#addFile(java.lang.String, com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)&quot;&gt;&lt;tt&gt;addFile&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;fileName&lt;/tt&gt;, &lt;tt&gt;size&lt;/tt&gt;, &lt;tt&gt;mode&lt;/tt&gt;, Off). */"/>
    <method name="public final void addFile(java.lang.String fileName, com.trolltech.qt.core.QSize size)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QIcon.html#addFile(java.lang.String, com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)&quot;&gt;&lt;tt&gt;addFile&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;fileName&lt;/tt&gt;, &lt;tt&gt;size&lt;/tt&gt;, Normal, Off). */"/>
    <method name="public final void addFile(java.lang.String fileName)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QIcon.html#addFile(java.lang.String, com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)&quot;&gt;&lt;tt&gt;addFile&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;fileName&lt;/tt&gt;, QSize(), Normal, Off). */"/>
    <method name="public final void addPixmap(com.trolltech.qt.gui.QPixmap pixmap, com.trolltech.qt.gui.QIcon.Mode mode, com.trolltech.qt.gui.QIcon.State state)" doc="/**
&lt;p&gt;Adds &lt;tt&gt;pixmap&lt;/tt&gt; to the icon, as a specialization for &lt;tt&gt;mode&lt;/tt&gt; and &lt;tt&gt;state&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Custom icon engines are free to ignore additionally added pixmaps.&lt;/p&gt;

@see &lt;a href=&quot;QIcon.html#addFile(java.lang.String, com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)&quot;&gt;&lt;tt&gt;addFile&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void addPixmap(com.trolltech.qt.gui.QPixmap pixmap, com.trolltech.qt.gui.QIcon.Mode mode)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QIcon.html#addPixmap(com.trolltech.qt.gui.QPixmap, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)&quot;&gt;&lt;tt&gt;addPixmap&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;pixmap&lt;/tt&gt;, &lt;tt&gt;mode&lt;/tt&gt;, Off). */"/>
    <method name="public final void addPixmap(com.trolltech.qt.gui.QPixmap pixmap)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QIcon.html#addPixmap(com.trolltech.qt.gui.QPixmap, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)&quot;&gt;&lt;tt&gt;addPixmap&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;pixmap&lt;/tt&gt;, Normal, Off). */"/>
    <method name="public final long cacheKey()" doc="/**
&lt;p&gt;Returns a number that identifies the contents of this &lt;a href=&quot;QIcon.html#QIcon(com.trolltech.qt.gui.QIconEngine)&quot;&gt;&lt;tt&gt;QIcon&lt;/tt&gt;&lt;/a&gt; object. Distinct &lt;a href=&quot;QIcon.html#QIcon(com.trolltech.qt.gui.QIconEngine)&quot;&gt;&lt;tt&gt;QIcon&lt;/tt&gt;&lt;/a&gt; objects can have the same key if they refer to the same contents.&lt;/p&gt;
&lt;p&gt;The &lt;a href=&quot;QIcon.html#cacheKey()&quot;&gt;&lt;tt&gt;cacheKey&lt;/tt&gt;&lt;/a&gt; will change when the icon is altered via &lt;a href=&quot;QIcon.html#addPixmap(com.trolltech.qt.gui.QPixmap, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)&quot;&gt;&lt;tt&gt;addPixmap&lt;/tt&gt;&lt;/a&gt; or &lt;a href=&quot;QIcon.html#addFile(java.lang.String, com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)&quot;&gt;&lt;tt&gt;addFile&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Cache keys are mostly useful in conjunction with caching.&lt;/p&gt;

@see &lt;tt&gt;QPixmap::cacheKey&lt;/tt&gt; */"/>
    <method name="public final boolean isNull()" doc="/**
&lt;p&gt;Returns true if the icon is empty; otherwise returns false.&lt;/p&gt;
&lt;p&gt;An icon is empty if it has neither a pixmap nor a filename.&lt;/p&gt;
&lt;p&gt;Note: Even a non-null icon might not be able to create valid pixmaps, eg. if the file does not exist or cannot be read.&lt;/p&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 void paint(com.trolltech.qt.gui.QPainter painter, com.trolltech.qt.core.QRect rect, com.trolltech.qt.core.Qt.Alignment alignment, com.trolltech.qt.gui.QIcon.Mode mode, com.trolltech.qt.gui.QIcon.State state)" doc="/**
&lt;p&gt;Uses the &lt;tt&gt;painter&lt;/tt&gt; to paint the icon with specified &lt;tt&gt;alignment&lt;/tt&gt;, required &lt;tt&gt;mode&lt;/tt&gt;, and &lt;tt&gt;state&lt;/tt&gt; into the rectangle &lt;tt&gt;rect&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QIcon.html#actualSize(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)&quot;&gt;&lt;tt&gt;actualSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QIcon.html#pixmap(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)&quot;&gt;&lt;tt&gt;pixmap&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void paint(com.trolltech.qt.gui.QPainter painter, com.trolltech.qt.core.QRect rect, com.trolltech.qt.core.Qt.Alignment alignment, com.trolltech.qt.gui.QIcon.Mode mode)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QIcon.html#paint(com.trolltech.qt.gui.QPainter, int, int, int, int, com.trolltech.qt.core.Qt.Alignment, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)&quot;&gt;paint&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;painter&lt;/tt&gt;, &lt;tt&gt;rect&lt;/tt&gt;, &lt;tt&gt;alignment&lt;/tt&gt;, &lt;tt&gt;mode&lt;/tt&gt;, Off). */"/>
    <method name="public final void paint(com.trolltech.qt.gui.QPainter painter, com.trolltech.qt.core.QRect rect, com.trolltech.qt.core.Qt.Alignment alignment)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QIcon.html#paint(com.trolltech.qt.gui.QPainter, int, int, int, int, com.trolltech.qt.core.Qt.Alignment, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)&quot;&gt;paint&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;painter&lt;/tt&gt;, &lt;tt&gt;rect&lt;/tt&gt;, &lt;tt&gt;alignment&lt;/tt&gt;, Normal, Off). */"/>
    <method name="public final void paint(com.trolltech.qt.gui.QPainter painter, com.trolltech.qt.core.QRect rect)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QIcon.html#paint(com.trolltech.qt.gui.QPainter, int, int, int, int, com.trolltech.qt.core.Qt.Alignment, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)&quot;&gt;paint&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;painter&lt;/tt&gt;, &lt;tt&gt;rect&lt;/tt&gt;, Qt::AlignCenter, Normal, Off). */"/>
    <method name="public final void paint(com.trolltech.qt.gui.QPainter painter, int x, int y, int w, int h, com.trolltech.qt.core.Qt.Alignment alignment, com.trolltech.qt.gui.QIcon.Mode mode, com.trolltech.qt.gui.QIcon.State state)" doc="/**
&lt;p&gt;Paints the icon into the rectangle &lt;a href=&quot;%2E%2E/core/QRect.html&quot;&gt;&lt;tt&gt;QRect&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt;).&lt;/p&gt;
 */"/>
    <method name="public final void paint(com.trolltech.qt.gui.QPainter painter, int x, int y, int w, int h, com.trolltech.qt.core.Qt.Alignment alignment, com.trolltech.qt.gui.QIcon.Mode mode)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QIcon.html#paint(com.trolltech.qt.gui.QPainter, int, int, int, int, com.trolltech.qt.core.Qt.Alignment, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)&quot;&gt;paint&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;painter&lt;/tt&gt;, &lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt;, &lt;tt&gt;alignment&lt;/tt&gt;, &lt;tt&gt;mode&lt;/tt&gt;, Off). */"/>
    <method name="public final void paint(com.trolltech.qt.gui.QPainter painter, int x, int y, int w, int h, com.trolltech.qt.core.Qt.Alignment alignment)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QIcon.html#paint(com.trolltech.qt.gui.QPainter, int, int, int, int, com.trolltech.qt.core.Qt.Alignment, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)&quot;&gt;paint&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;painter&lt;/tt&gt;, &lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt;, &lt;tt&gt;alignment&lt;/tt&gt;, Normal, Off). */"/>
    <method name="public final void paint(com.trolltech.qt.gui.QPainter painter, int x, int y, int w, int h)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QIcon.html#paint(com.trolltech.qt.gui.QPainter, int, int, int, int, com.trolltech.qt.core.Qt.Alignment, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)&quot;&gt;paint&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;painter&lt;/tt&gt;, &lt;tt&gt;x&lt;/tt&gt;, &lt;tt&gt;y&lt;/tt&gt;, &lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt;, Qt::AlignCenter, Normal, Off). */"/>
    <method name="public final com.trolltech.qt.gui.QPixmap pixmap(int extent, com.trolltech.qt.gui.QIcon.Mode mode, com.trolltech.qt.gui.QIcon.State state)" doc="/**
&lt;p&gt;Returns a pixmap of size &lt;a href=&quot;%2E%2E/core/QSize.html&quot;&gt;&lt;tt&gt;QSize&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;extent&lt;/tt&gt;, &lt;tt&gt;extent&lt;/tt&gt;). The pixmap might be smaller than requested, but never larger.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QPixmap pixmap(int extent, com.trolltech.qt.gui.QIcon.Mode mode)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QIcon.html#pixmap(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)&quot;&gt;pixmap&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;extent&lt;/tt&gt;, &lt;tt&gt;mode&lt;/tt&gt;, Off). */"/>
    <method name="public final com.trolltech.qt.gui.QPixmap pixmap(int extent)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QIcon.html#pixmap(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)&quot;&gt;pixmap&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;extent&lt;/tt&gt;, Normal, Off). */"/>
    <method name="public final com.trolltech.qt.gui.QPixmap pixmap(int w, int h, com.trolltech.qt.gui.QIcon.Mode mode, com.trolltech.qt.gui.QIcon.State state)" doc="/**
&lt;p&gt;Returns a pixmap of size &lt;a href=&quot;%2E%2E/core/QSize.html&quot;&gt;&lt;tt&gt;QSize&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt;). The pixmap might be smaller than requested, but never larger.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QPixmap pixmap(int w, int h, com.trolltech.qt.gui.QIcon.Mode mode)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QIcon.html#pixmap(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)&quot;&gt;pixmap&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt;, &lt;tt&gt;mode&lt;/tt&gt;, Off). */"/>
    <method name="public final com.trolltech.qt.gui.QPixmap pixmap(int w, int h)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QIcon.html#pixmap(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)&quot;&gt;pixmap&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;w&lt;/tt&gt;, &lt;tt&gt;h&lt;/tt&gt;, Normal, Off). */"/>
    <method name="public final com.trolltech.qt.gui.QPixmap pixmap(com.trolltech.qt.core.QSize size, com.trolltech.qt.gui.QIcon.Mode mode, com.trolltech.qt.gui.QIcon.State state)" doc="/**
&lt;p&gt;Returns a pixmap with the requested &lt;tt&gt;size&lt;/tt&gt;, &lt;tt&gt;mode&lt;/tt&gt;, and &lt;tt&gt;state&lt;/tt&gt;, generating one if necessary. The pixmap might be smaller than requested, but never larger.&lt;/p&gt;

@see &lt;a href=&quot;QIcon.html#actualSize(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)&quot;&gt;&lt;tt&gt;actualSize&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QIcon.html#paint(com.trolltech.qt.gui.QPainter, int, int, int, int, com.trolltech.qt.core.Qt.Alignment, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)&quot;&gt;&lt;tt&gt;paint&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QPixmap pixmap(com.trolltech.qt.core.QSize size, com.trolltech.qt.gui.QIcon.Mode mode)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QIcon.html#pixmap(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)&quot;&gt;pixmap&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;size&lt;/tt&gt;, &lt;tt&gt;mode&lt;/tt&gt;, Off). */"/>
    <method name="public final com.trolltech.qt.gui.QPixmap pixmap(com.trolltech.qt.core.QSize size)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QIcon.html#pixmap(com.trolltech.qt.core.QSize, com.trolltech.qt.gui.QIcon.Mode, com.trolltech.qt.gui.QIcon.State)&quot;&gt;pixmap&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;size&lt;/tt&gt;, Normal, Off). */"/>
    <enum name="Mode" doc="/**
&lt;p&gt;This enum type describes the mode for which a pixmap is intended to be used. The currently defined modes are:&lt;/p&gt;
&lt;p&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; width=&quot;100%&quot;&gt;
&lt;tr&gt;&lt;th width=&quot;25%&quot;&gt;Constant&lt;/th&gt;&lt;th width=&quot;15%&quot;&gt;Value&lt;/th&gt;&lt;th width=&quot;60%&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Normal&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;0&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;Display the pixmap when the user is not interacting with the icon, but the functionality represented by the icon is available.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Disabled&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;1&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;Display the pixmap when the functionality represented by the icon is not available.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Active&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;2&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;Display the pixmap when the functionality represented by the icon is available and the user is interacting with the icon, for example, moving the mouse over it or clicking it.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Selected&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;3&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;Display the pixmap when the item represented by the icon is selected.&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
 */">
        <enum-value name="Normal" doc="/**
&lt;p&gt;Display the pixmap when the user is not interacting with the icon, but the functionality represented by the icon is available.&lt;/p&gt;
 */"/>
        <enum-value name="Disabled" doc="/**
&lt;p&gt;Display the pixmap when the functionality represented by the icon is not available.&lt;/p&gt;
 */"/>
        <enum-value name="Active" doc="/**
&lt;p&gt;Display the pixmap when the functionality represented by the icon is available and the user is interacting with the icon, for example, moving the mouse over it or clicking it.&lt;/p&gt;
 */"/>
        <enum-value name="Selected" doc="/**
&lt;p&gt;Display the pixmap when the item represented by the icon is selected.&lt;/p&gt;
 */"/>
</enum>
    <enum name="State" doc="/**
&lt;p&gt;This enum describes the state for which a pixmap is intended to be used. The &lt;i&gt;state&lt;/i&gt; can be:&lt;/p&gt;
&lt;p&gt;&lt;table border=&quot;1&quot; cellpadding=&quot;2&quot; cellspacing=&quot;1&quot; width=&quot;100%&quot;&gt;
&lt;tr&gt;&lt;th width=&quot;25%&quot;&gt;Constant&lt;/th&gt;&lt;th width=&quot;15%&quot;&gt;Value&lt;/th&gt;&lt;th width=&quot;60%&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;Off&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;1&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;Display the pixmap when the widget is in an &amp;quot;off&amp;quot; state&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td valign=&quot;top&quot;&gt;&lt;tt&gt;On&lt;/tt&gt;&lt;/td&gt;&lt;td align=&quot;center&quot; valign=&quot;top&quot;&gt;&lt;tt&gt;0&lt;/tt&gt;&lt;/td&gt;&lt;td valign=&quot;top&quot;&gt;Display the pixmap when the widget is in an &amp;quot;on&amp;quot; state&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;&lt;/p&gt;
 */">
        <enum-value name="On" doc="/**
&lt;p&gt;Display the pixmap when the widget is in an &amp;quot;on&amp;quot; state&lt;/p&gt;
 */"/>
        <enum-value name="Off" doc="/**
&lt;p&gt;Display the pixmap when the widget is in an &amp;quot;off&amp;quot; state&lt;/p&gt;
 */"/>
</enum>
</class>
