<class name="QStyleOptionGroupBox" doc="/** <p>The <a href="QStyleOptionGroupBox.html#QStyleOptionGroupBox(int)"><tt>QStyleOptionGroupBox</tt></a> class describes the parameters for drawing a group box.</p> <p><a href="QStyleOptionButton.html"><tt>QStyleOptionButton</tt></a> contains all the information that <a href="QStyle.html"><tt>QStyle</tt></a> functions need the various graphical elements of a group box.</p> <p>It holds the <a href="QStyleOptionGroupBox.html#lineWidth()"><tt>lineWidth</tt></a> and the <a href="QStyleOptionGroupBox.html#midLineWidth()"><tt>midLineWidth</tt></a> for drawing the panel, the group box's <a href="QStyleOptionGroupBox.html#text()">title</tt></a> and the title's <a href="QStyleOptionGroupBox.html#textAlignment()">alignment</tt></a> and <a href="QStyleOptionGroupBox.html#textColor()">color</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="QStyleOptionComplex.html#QStyleOptionComplex(int, int)"><tt>QStyleOptionComplex</tt></a> @see <a href="QGroupBox.html"><tt>QGroupBox</tt></a> */"> <method name="public QStyleOptionGroupBox(com.trolltech.qt.gui.QStyleOptionGroupBox other)" doc="/** <p>Constructs a copy of the <tt>other</tt> style option.</p> */"/> <method name="public QStyleOptionGroupBox()" doc="/** <p>Constructs a <a href="QStyleOptionGroupBox.html#QStyleOptionGroupBox(int)"><tt>QStyleOptionGroupBox</tt></a>, initializing the members variables to their default values.</p> */"/> <method name="protected QStyleOptionGroupBox(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="QStyleOptionGroupBox.html#StyleOptionType-enum"><tt>StyleOptionType</tt></a> */"> <enum-value name="Version" doc="/** <p>1</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="QStyleOptionGroupBox.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_GroupBox</tt></a> for this class).</p> */"/> </enum> <method name="public final int lineWidth()" doc="/** <p>Returns the line width for drawing the panel.</p> <p>The value of this variable is, currently, always 1.</p> @see <a href="QStyleOptionGroupBox.html#setLineWidth(int)"><tt>setLineWidth</tt></a> @see <tt>QFrame::lineWidth</tt> */"/> <method name="public final void setLineWidth(int lineWidth)" doc="/** <p>Sets the line width for drawing the panel to <tt>lineWidth</tt>.</p> <p>The value of this variable is, currently, always 1.</p> @see <tt>QFrame::lineWidth</tt> */"/> <method name="public final com.trolltech.qt.gui.QStyleOptionFrameV2.FrameFeatures features()" doc="/** <p>Returns the features of the group box frame.</p> <p>The frame is flat by default.</p> @see <a href="QStyleOptionGroupBox.html#setFeatures(com.trolltech.qt.gui.QStyleOptionFrameV2.FrameFeatures)"><tt>setFeatures</tt></a> @see <tt>QStyleOptionFrameV2::FrameFeature</tt> */"/> <method name="public final void setFeatures(com.trolltech.qt.gui.QStyleOptionFrameV2.FrameFeatures features)" doc="/** <p>Sets the features of the group box frame to <tt>features</tt>.</p> <p>The frame is flat by default.</p> @see <a href="QStyleOptionGroupBox.html#features()"><tt>features</tt></a> @see <tt>QStyleOptionFrameV2::FrameFeature</tt> */"/> <method name="public final com.trolltech.qt.core.Qt.Alignment textAlignment()" doc="/** <p>Returns the alignment of the group box title.</p> <p>The default value is Qt::AlignLeft.</p> @see <a href="QStyleOptionGroupBox.html#setTextAlignment(com.trolltech.qt.core.Qt.Alignment)"><tt>setTextAlignment</tt></a> @see <tt>QGroupBox::alignment</tt> */"/> <method name="public final void setTextAlignment(com.trolltech.qt.core.Qt.Alignment textAlignment)" doc="/** <p>Sets the alignment of the group box title to <tt>textAlignment</tt>.</p> <p>The default value is Qt::AlignLeft.</p> @see <a href="QStyleOptionGroupBox.html#textAlignment()"><tt>textAlignment</tt></a> @see <tt>QGroupBox::alignment</tt> */"/> <method name="public final int midLineWidth()" doc="/** <p>Returns the mid-line width for drawing the panel.</p> <p>The mid-line width is usually used when drawing sunken or raised group box frames. The value of this variable is, currently, always 0.</p> @see <a href="QStyleOptionGroupBox.html#setMidLineWidth(int)"><tt>setMidLineWidth</tt></a> @see <tt>QFrame::midLineWidth</tt> */"/> <method name="public final void setMidLineWidth(int midLineWidth)" doc="/** <p>Sets the mid-line width for drawing the panel to <tt>midLineWidth</tt>.</p> <p>The mid-line width is usually used when drawing sunken or raised group box frames. The value of this variable is, currently, always 0.</p> @see <tt>QFrame::midLineWidth</tt> */"/> <method name="public final java.lang.String text()" doc="/** <p>Returns the text of the group box.</p> <p>The default value is an empty string.</p> @see <a href="QStyleOptionGroupBox.html#setText(java.lang.String)"><tt>setText</tt></a> @see <tt>QGroupBox::title</tt> */"/> <method name="public final void setText(java.lang.String text)" doc="/** <p>Sets the text of the group box to <tt>text</tt>.</p> <p>The default value is an empty string.</p> @see <a href="QStyleOptionGroupBox.html#text()"><tt>text</tt></a> @see <tt>QGroupBox::title</tt> */"/> <method name="public final com.trolltech.qt.gui.QColor textColor()" doc="/** <p>Returns the color of the group box title.</p> <p>The default value is 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.</p> @see <a href="QStyleOptionGroupBox.html#setTextColor(com.trolltech.qt.gui.QColor)"><tt>setTextColor</tt></a> */"/> <method name="public final void setTextColor(com.trolltech.qt.gui.QColor textColor)" doc="/** <p>Sets the color of the group box title to <tt>textColor</tt>.</p> <p>The default value is 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.</p> @see <a href="QStyleOptionGroupBox.html#textColor()"><tt>textColor</tt></a> */"/> </class>