<class name="QStyleOptionToolButton" doc="/**
&lt;p&gt;The &lt;a href=&quot;QStyleOptionToolButton.html#QStyleOptionToolButton(int)&quot;&gt;&lt;tt&gt;QStyleOptionToolButton&lt;/tt&gt;&lt;/a&gt; class is used to describe the parameters for drawing a tool button.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QStyleOptionToolButton.html#QStyleOptionToolButton(int)&quot;&gt;&lt;tt&gt;QStyleOptionToolButton&lt;/tt&gt;&lt;/a&gt; contains all the information that &lt;a href=&quot;QStyle.html&quot;&gt;&lt;tt&gt;QStyle&lt;/tt&gt;&lt;/a&gt; functions need to draw &lt;a href=&quot;QToolButton.html&quot;&gt;&lt;tt&gt;QToolButton&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;For performance reasons, the access to the member variables is direct (i.e&amp;#x2e;, using the &lt;tt&gt;.&lt;/tt&gt; or &lt;tt&gt;-&amp;gt;&lt;/tt&gt; operator). This low-level feel makes the structures straightforward to use and emphasizes that these are simply parameters used by the style functions.&lt;/p&gt;
&lt;p&gt;For an example demonstrating how style options can be used, see the Styles&lt;/tt&gt; example.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOption.html#QStyleOption(int, int)&quot;&gt;&lt;tt&gt;QStyleOption&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QStyleOptionComplex.html#QStyleOptionComplex(int, int)&quot;&gt;&lt;tt&gt;QStyleOptionComplex&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QStyleOptionButton.html&quot;&gt;&lt;tt&gt;QStyleOptionButton&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QStyleOptionToolButton(com.trolltech.qt.gui.QStyleOptionToolButton other)" doc="/**
&lt;p&gt;Constructs a copy of the &lt;tt&gt;other&lt;/tt&gt; style option.&lt;/p&gt;
 */"/>
    <method name="public QStyleOptionToolButton()" doc="/**
&lt;p&gt;Constructs a &lt;a href=&quot;QStyleOptionToolButton.html#QStyleOptionToolButton(int)&quot;&gt;&lt;tt&gt;QStyleOptionToolButton&lt;/tt&gt;&lt;/a&gt;, initializing the members variables to their default values.&lt;/p&gt;
 */"/>
    <method name="protected QStyleOptionToolButton(int version)" doc="/**
&lt;p&gt;&lt;/p&gt;
 */"/>
    <enum name="StyleOptionVersion" doc="/**
&lt;p&gt;This enum is used to hold information about the version of the style option, and is defined for each &lt;a href=&quot;QStyleOption.html#QStyleOption(int, int)&quot;&gt;&lt;tt&gt;QStyleOption&lt;/tt&gt;&lt;/a&gt; subclass.&lt;/p&gt;
&lt;p&gt;The version is used by &lt;a href=&quot;QStyleOption.html#QStyleOption(int, int)&quot;&gt;&lt;tt&gt;QStyleOption&lt;/tt&gt;&lt;/a&gt; subclasses to implement extensions without breaking compatibility. If you use qstyleoption_cast(), you normally don't need to check it.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionToolButton.html#StyleOptionType-enum&quot;&gt;&lt;tt&gt;StyleOptionType&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="Version" doc="/**
&lt;p&gt;1&lt;/p&gt;
 */"/>
</enum>
    <enum name="ToolButtonFeature" doc="/**
&lt;p&gt;Describes the various features that a tool button can have.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionToolButton.html#features()&quot;&gt;features&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QToolButton::toolButtonStyle&lt;/tt&gt;
@see &lt;tt&gt;QToolButton::popupMode&lt;/tt&gt; */">
        <enum-value name="None" doc="/**
&lt;p&gt;A normal tool button.&lt;/p&gt;
 */"/>
        <enum-value name="Arrow" doc="/**
&lt;p&gt;The tool button is an arrow.&lt;/p&gt;
 */"/>
        <enum-value name="Menu" doc="/**
&lt;p&gt;The tool button has a menu.&lt;/p&gt;
 */"/>
        <enum-value name="MenuButtonPopup" doc="/**
&lt;p&gt;The button should display an arrow to indicate that a menu is present.&lt;/p&gt;
 */"/>
        <enum-value name="PopupDelay" doc="/**
&lt;p&gt;There is a delay to showing the menu.&lt;/p&gt;
 */"/>
        <enum-value name="HasMenu" doc="/**
&lt;p&gt;The button has a popup menu.&lt;/p&gt;
 */"/>
</enum>
    <enum name="StyleOptionType" doc="/**
&lt;p&gt;This enum is used to hold information about the type of the style option, and is defined for each &lt;a href=&quot;QStyleOption.html#QStyleOption(int, int)&quot;&gt;&lt;tt&gt;QStyleOption&lt;/tt&gt;&lt;/a&gt; subclass.&lt;/p&gt;
&lt;p&gt;The type is used internally by &lt;a href=&quot;QStyleOption.html#QStyleOption(int, int)&quot;&gt;&lt;tt&gt;QStyleOption&lt;/tt&gt;&lt;/a&gt;, its subclasses, and qstyleoption_cast() to determine the type of style option. In general you do not need to worry about this unless you want to create your own &lt;a href=&quot;QStyleOption.html#QStyleOption(int, int)&quot;&gt;&lt;tt&gt;QStyleOption&lt;/tt&gt;&lt;/a&gt; subclass and your own styles.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionToolButton.html#StyleOptionVersion-enum&quot;&gt;&lt;tt&gt;StyleOptionVersion&lt;/tt&gt;&lt;/a&gt; */">
        <enum-value name="Type" doc="/**
&lt;p&gt;The type of style option provided (&lt;a href=&quot;QStyleOption.html#OptionType-enum&quot;&gt;&lt;tt&gt;SO_ToolButton&lt;/tt&gt;&lt;/a&gt; for this class).&lt;/p&gt;
 */"/>
</enum>
    <method name="public final com.trolltech.qt.core.QSize iconSize()" doc="/**
&lt;p&gt;Returns the size of the icon for the tool button.&lt;/p&gt;
&lt;p&gt;The default value is &lt;a href=&quot;%2E%2E/core/QSize.html&quot;&gt;&lt;tt&gt;QSize&lt;/tt&gt;&lt;/a&gt;(-1, -1), i.e&amp;#x2e; an invalid size.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionToolButton.html#setIconSize(com.trolltech.qt.core.QSize)&quot;&gt;&lt;tt&gt;setIconSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setIconSize(com.trolltech.qt.core.QSize iconSize)" doc="/**
&lt;p&gt;Sets the size of the icon for the tool button to &lt;tt&gt;iconSize&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default value is &lt;a href=&quot;%2E%2E/core/QSize.html&quot;&gt;&lt;tt&gt;QSize&lt;/tt&gt;&lt;/a&gt;(-1, -1), i.e&amp;#x2e; an invalid size.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionToolButton.html#iconSize()&quot;&gt;&lt;tt&gt;iconSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.Qt.ToolButtonStyle toolButtonStyle()" doc="/**
&lt;p&gt;Returns a Qt::ToolButtonStyle value describing the appearance of the tool button.&lt;/p&gt;
&lt;p&gt;The default value is Qt::ToolButtonIconOnly.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionToolButton.html#setToolButtonStyle(com.trolltech.qt.core.Qt.ToolButtonStyle)&quot;&gt;&lt;tt&gt;setToolButtonStyle&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QToolButton::toolButtonStyle&lt;/tt&gt; */"/>
    <method name="public final void setToolButtonStyle(com.trolltech.qt.core.Qt.ToolButtonStyle toolButtonStyle)" doc="/**
&lt;p&gt;Sets a Qt::ToolButtonStyle value describing the appearance of the tool button to &lt;tt&gt;toolButtonStyle&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default value is Qt::ToolButtonIconOnly.&lt;/p&gt;

@see &lt;tt&gt;QToolButton::toolButtonStyle&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QStyleOptionToolButton.ToolButtonFeatures features()" doc="/**
&lt;p&gt;Returns an OR combination of the tool button's features.&lt;/p&gt;
&lt;p&gt;The default value is &lt;a href=&quot;QStyleOptionToolButton.html#ToolButtonFeature-enum&quot;&gt;None&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionToolButton.html#setFeatures(com.trolltech.qt.gui.QStyleOptionToolButton.ToolButtonFeatures)&quot;&gt;&lt;tt&gt;setFeatures&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QStyleOptionToolButton.html#ToolButtonFeature-enum&quot;&gt;&lt;tt&gt;ToolButtonFeature&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFeatures(com.trolltech.qt.gui.QStyleOptionToolButton.ToolButtonFeatures features)" doc="/**
&lt;p&gt;Sets an OR combination of the tool button's features to &lt;tt&gt;features&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default value is &lt;a href=&quot;QStyleOptionToolButton.html#ToolButtonFeature-enum&quot;&gt;None&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionToolButton.html#features()&quot;&gt;&lt;tt&gt;features&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QStyleOptionToolButton.html#ToolButtonFeature-enum&quot;&gt;&lt;tt&gt;ToolButtonFeature&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.Qt.ArrowType arrowType()" doc="/**
&lt;p&gt;Returns the direction of the arrow for the tool button.&lt;/p&gt;
&lt;p&gt;This value is only used if &lt;a href=&quot;QStyleOptionToolButton.html#features()&quot;&gt;features&lt;/tt&gt;&lt;/a&gt; includes &lt;a href=&quot;QStyleOptionToolButton.html#ToolButtonFeature-enum&quot;&gt;Arrow&lt;/tt&gt;&lt;/a&gt;. The default value is Qt::DownArrow.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionToolButton.html#setArrowType(com.trolltech.qt.core.Qt.ArrowType)&quot;&gt;&lt;tt&gt;setArrowType&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setArrowType(com.trolltech.qt.core.Qt.ArrowType arrowType)" doc="/**
&lt;p&gt;Sets the direction of the arrow for the tool button to &lt;tt&gt;arrowType&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This value is only used if &lt;a href=&quot;QStyleOptionToolButton.html#features()&quot;&gt;features&lt;/tt&gt;&lt;/a&gt; includes &lt;a href=&quot;QStyleOptionToolButton.html#ToolButtonFeature-enum&quot;&gt;Arrow&lt;/tt&gt;&lt;/a&gt;. The default value is Qt::DownArrow.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionToolButton.html#arrowType()&quot;&gt;&lt;tt&gt;arrowType&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QIcon icon()" doc="/**
&lt;p&gt;Returns the icon for the tool button.&lt;/p&gt;
&lt;p&gt;The default value is an empty icon, i.e&amp;#x2e; an icon with neither a pixmap nor a filename.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionToolButton.html#setIcon(com.trolltech.qt.gui.QIcon)&quot;&gt;&lt;tt&gt;setIcon&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QStyleOptionToolButton.html#iconSize()&quot;&gt;&lt;tt&gt;iconSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setIcon(com.trolltech.qt.gui.QIcon icon)" doc="/**
&lt;p&gt;Sets the icon for the tool button to &lt;tt&gt;icon&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default value is an empty icon, i.e&amp;#x2e; an icon with neither a pixmap nor a filename.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionToolButton.html#iconSize()&quot;&gt;&lt;tt&gt;iconSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QPoint pos()" doc="/**
&lt;p&gt;Returns the position of the tool button.&lt;/p&gt;
&lt;p&gt;The default value is a null point, i.e&amp;#x2e; (0, 0)&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionToolButton.html#setPos(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;setPos&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setPos(com.trolltech.qt.core.QPoint pos)" doc="/**
&lt;p&gt;Sets the position of the tool button to &lt;tt&gt;pos&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default value is a null point, i.e&amp;#x2e; (0, 0)&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionToolButton.html#pos()&quot;&gt;&lt;tt&gt;pos&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final java.lang.String text()" doc="/**
&lt;p&gt;Returns the text of the tool button.&lt;/p&gt;
&lt;p&gt;This value is only used if &lt;a href=&quot;QStyleOptionToolButton.html#toolButtonStyle()&quot;&gt;&lt;tt&gt;toolButtonStyle&lt;/tt&gt;&lt;/a&gt; is Qt::ToolButtonTextUnderIcon, Qt::ToolButtonTextBesideIcon, or Qt::ToolButtonTextOnly. The default value is an empty string.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionToolButton.html#setText(java.lang.String)&quot;&gt;&lt;tt&gt;setText&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setText(java.lang.String text)" doc="/**
&lt;p&gt;Sets the text of the tool button to &lt;tt&gt;text&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This value is only used if &lt;a href=&quot;QStyleOptionToolButton.html#toolButtonStyle()&quot;&gt;&lt;tt&gt;toolButtonStyle&lt;/tt&gt;&lt;/a&gt; is Qt::ToolButtonTextUnderIcon, Qt::ToolButtonTextBesideIcon, or Qt::ToolButtonTextOnly. The default value is an empty string.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionToolButton.html#text()&quot;&gt;&lt;tt&gt;text&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QFont font()" doc="/**
&lt;p&gt;Returns the font that is used for the text.&lt;/p&gt;
&lt;p&gt;This value is only used if &lt;a href=&quot;QStyleOptionToolButton.html#toolButtonStyle()&quot;&gt;&lt;tt&gt;toolButtonStyle&lt;/tt&gt;&lt;/a&gt; is Qt::ToolButtonTextUnderIcon, Qt::ToolButtonTextBesideIcon, or Qt::ToolButtonTextOnly. By default, the application's default font is used.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionToolButton.html#setFont(com.trolltech.qt.gui.QFont)&quot;&gt;&lt;tt&gt;setFont&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFont(com.trolltech.qt.gui.QFont font)" doc="/**
&lt;p&gt;Sets the font that is used for the text to &lt;tt&gt;font&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This value is only used if &lt;a href=&quot;QStyleOptionToolButton.html#toolButtonStyle()&quot;&gt;&lt;tt&gt;toolButtonStyle&lt;/tt&gt;&lt;/a&gt; is Qt::ToolButtonTextUnderIcon, Qt::ToolButtonTextBesideIcon, or Qt::ToolButtonTextOnly. By default, the application's default font is used.&lt;/p&gt;

@see &lt;a href=&quot;QStyleOptionToolButton.html#font()&quot;&gt;&lt;tt&gt;font&lt;/tt&gt;&lt;/a&gt; */"/>
</class>
