<class name="QStyleOptionButton" doc="/** <p>The <a href="QStyleOptionButton.html#QStyleOptionButton(int)"><tt>QStyleOptionButton</tt></a> class is used to describe the parameters for drawing buttons.</p> <p><a href="QStyleOptionButton.html#QStyleOptionButton(int)"><tt>QStyleOptionButton</tt></a> contains all the information that <a href="QStyle.html"><tt>QStyle</tt></a> functions need to draw graphical elements like <a href="QPushButton.html"><tt>QPushButton</tt></a>, <a href="QCheckBox.html"><tt>QCheckBox</tt></a>, and <a href="QRadioButton.html"><tt>QRadioButton</tt></a>.</p> <p>For performance reasons, the access to the member variables is direct (i.e&#x2e;, using the <tt>.</tt> or <tt>-&gt;</tt> operator). This low-level feel makes the structures straightforward to use and emphasizes that these are simply parameters used by the style functions.</p> <p>For an example demonstrating how style options can be used, see the Styles</tt> example.</p> @see <a href="QStyleOption.html#QStyleOption(int, int)"><tt>QStyleOption</tt></a> @see <a href="QStyleOptionToolButton.html"><tt>QStyleOptionToolButton</tt></a> */"> <method name="public QStyleOptionButton(com.trolltech.qt.gui.QStyleOptionButton other)" doc="/** <p>Constructs a copy of the <tt>other</tt> style option.</p> */"/> <method name="public QStyleOptionButton()" doc="/** <p>Constructs a <a href="QStyleOptionButton.html#QStyleOptionButton(int)"><tt>QStyleOptionButton</tt></a>, initializing the members variables to their default values.</p> */"/> <method name="protected QStyleOptionButton(int version)" doc="/** <p>This method is used internally by Qt Jambi. Do not use it in your applications.</p> */"/> <enum name="StyleOptionVersion" doc="/** <p>This enum is used to hold information about the version of the style option, and is defined for each <a href="QStyleOption.html#QStyleOption(int, int)"><tt>QStyleOption</tt></a> subclass.</p> <p>The version is used by <a href="QStyleOption.html#QStyleOption(int, int)"><tt>QStyleOption</tt></a> subclasses to implement extensions without breaking compatibility. If you use qstyleoption_cast(), you normally don't need to check it.</p> @see <a href="QStyleOptionButton.html#StyleOptionType-enum"><tt>StyleOptionType</tt></a> */"> <enum-value name="Version" doc="/** <p>1</p> */"/> </enum> <enum name="ButtonFeature" doc="/** <p>This enum describes the different types of features a push button can have.</p> @see <a href="QStyleOptionButton.html#features()">features</tt></a> */"> <enum-value name="None" doc="/** <p>Indicates a normal push button.</p> */"/> <enum-value name="Flat" doc="/** <p>Indicates a flat push button.</p> */"/> <enum-value name="HasMenu" doc="/** <p>Indicates that the button has a drop down menu.</p> */"/> <enum-value name="DefaultButton" doc="/** <p>Indicates that the button is a default button.</p> */"/> <enum-value name="AutoDefaultButton" doc="/** <p>Indicates that the button is an auto default button.</p> */"/> <enum-value name="CommandLinkButton" doc="/** <p>Indicates that the button is a Windows Vista type command link.</p> */"/> </enum> <enum name="StyleOptionType" doc="/** <p>This enum is used to hold information about the type of the style option, and is defined for each <a href="QStyleOption.html#QStyleOption(int, int)"><tt>QStyleOption</tt></a> subclass.</p> <p>The type is used internally by <a href="QStyleOption.html#QStyleOption(int, int)"><tt>QStyleOption</tt></a>, 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 <a href="QStyleOption.html#QStyleOption(int, int)"><tt>QStyleOption</tt></a> subclass and your own styles.</p> @see <a href="QStyleOptionButton.html#StyleOptionVersion-enum"><tt>StyleOptionVersion</tt></a> */"> <enum-value name="Type" doc="/** <p>The type of style option provided (<a href="QStyleOption.html#OptionType-enum"><tt>SO_Button</tt></a> for this class).</p> */"/> </enum> <method name="public final com.trolltech.qt.core.QSize iconSize()" doc="/** <p>Returns the size of the icon for the button.</p> <p>The default value is <a href="%2E%2E/core/QSize.html"><tt>QSize</tt></a>(-1, -1), i.e&#x2e; an invalid size.</p> @see <a href="QStyleOptionButton.html#setIconSize(com.trolltech.qt.core.QSize)"><tt>setIconSize</tt></a> */"/> <method name="public final void setIconSize(com.trolltech.qt.core.QSize iconSize)" doc="/** <p>Sets the size of the icon for the button to <tt>iconSize</tt>.</p> <p>The default value is <a href="%2E%2E/core/QSize.html"><tt>QSize</tt></a>(-1, -1), i.e&#x2e; an invalid size.</p> @see <a href="QStyleOptionButton.html#iconSize()"><tt>iconSize</tt></a> */"/> <method name="public final com.trolltech.qt.gui.QStyleOptionButton.ButtonFeatures features()" doc="/** <p>Returns a bitwise OR of the features that describe this button.</p> @see <a href="QStyleOptionButton.html#setFeatures(com.trolltech.qt.gui.QStyleOptionButton.ButtonFeatures)"><tt>setFeatures</tt></a> @see <a href="QStyleOptionButton.html#ButtonFeature-enum"><tt>ButtonFeature</tt></a> */"/> <method name="public final void setFeatures(com.trolltech.qt.gui.QStyleOptionButton.ButtonFeatures features)" doc="/** <p>Sets a bitwise OR of the features that describe this button to <tt>features</tt>.</p> @see <a href="QStyleOptionButton.html#features()"><tt>features</tt></a> @see <a href="QStyleOptionButton.html#ButtonFeature-enum"><tt>ButtonFeature</tt></a> */"/> <method name="public final com.trolltech.qt.gui.QIcon icon()" doc="/** <p>Returns the icon of the button.</p> <p>The default value is an empty icon, i.e&#x2e; an icon with neither a pixmap nor a filename.</p> @see <a href="QStyleOptionButton.html#setIcon(com.trolltech.qt.gui.QIcon)"><tt>setIcon</tt></a> @see <a href="QStyleOptionButton.html#iconSize()"><tt>iconSize</tt></a> */"/> <method name="public final void setIcon(com.trolltech.qt.gui.QIcon icon)" doc="/** <p>Sets the icon of the button to <tt>icon</tt>.</p> <p>The default value is an empty icon, i.e&#x2e; an icon with neither a pixmap nor a filename.</p> @see <a href="QStyleOptionButton.html#iconSize()"><tt>iconSize</tt></a> */"/> <method name="public final java.lang.String text()" doc="/** <p>Returns the text of the button.</p> <p>The default value is an empty string.</p> @see <a href="QStyleOptionButton.html#setText(java.lang.String)"><tt>setText</tt></a> */"/> <method name="public final void setText(java.lang.String text)" doc="/** <p>Sets the text of the button to <tt>text</tt>.</p> <p>The default value is an empty string.</p> @see <a href="QStyleOptionButton.html#text()"><tt>text</tt></a> */"/> </class>