<class name="QStyleOptionSlider" doc="/** <p>The <a href="QStyleOptionSlider.html#QStyleOptionSlider(int)"><tt>QStyleOptionSlider</tt></a> class is used to describe the parameters needed for drawing a slider.</p> <p><a href="QStyleOptionSlider.html#QStyleOptionSlider(int)"><tt>QStyleOptionSlider</tt></a> contains all the information that <a href="QStyle.html"><tt>QStyle</tt></a> functions need to draw <a href="QSlider.html"><tt>QSlider</tt></a> and <a href="QScrollBar.html"><tt>QScrollBar</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="QStyleOptionComplex.html#QStyleOptionComplex(int, int)"><tt>QStyleOptionComplex</tt></a> @see <a href="QSlider.html"><tt>QSlider</tt></a> @see <a href="QScrollBar.html"><tt>QScrollBar</tt></a> */"> <method name="public QStyleOptionSlider(com.trolltech.qt.gui.QStyleOptionSlider other)" doc="/** <p>Constructs a copy of the <tt>other</tt> style option.</p> */"/> <method name="public QStyleOptionSlider()" doc="/** <p>Constructs a <a href="QStyleOptionSlider.html#QStyleOptionSlider(int)"><tt>QStyleOptionSlider</tt></a>, initializing the members variables to their default values.</p> */"/> <method name="protected QStyleOptionSlider(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="QStyleOptionSlider.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="QStyleOptionSlider.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_Slider</tt></a> for this class).</p> */"/> </enum> <method name="public final int tickInterval()" doc="/** <p>Returns the interval that should be drawn between tick marks.</p> <p>The default value is 0.</p> @see <a href="QStyleOptionSlider.html#setTickInterval(int)"><tt>setTickInterval</tt></a> */"/> <method name="public final void setTickInterval(int tickInterval)" doc="/** <p>Sets the interval that should be drawn between tick marks to <tt>tickInterval</tt>.</p> <p>The default value is 0.</p> @see <a href="QStyleOptionSlider.html#tickInterval()"><tt>tickInterval</tt></a> */"/> <method name="public final int minimum()" doc="/** <p>Returns the minimum value for the slider.</p> <p>The default value is 0.</p> @see <a href="QStyleOptionSlider.html#setMinimum(int)"><tt>setMinimum</tt></a> */"/> <method name="public final void setMinimum(int minimum)" doc="/** <p>Sets the minimum value for the slider to <tt>minimum</tt>.</p> <p>The default value is 0.</p> @see <a href="QStyleOptionSlider.html#minimum()"><tt>minimum</tt></a> */"/> <method name="public final double notchTarget()" doc="/** <p>Returns the number of pixel between notches.</p> <p>The default value is 0.0&#x2e;</p> @see <a href="QStyleOptionSlider.html#setNotchTarget(double)"><tt>setNotchTarget</tt></a> @see <tt>QDial::notchTarget</tt> */"/> <method name="public final void setNotchTarget(double notchTarget)" doc="/** <p>Sets the number of pixel between notches to <tt>notchTarget</tt>.</p> <p>The default value is 0.0&#x2e;</p> @see <tt>QDial::notchTarget</tt> */"/> <method name="public final int maximum()" doc="/** <p>Returns the maximum value for the slider.</p> <p>The default value is 0.</p> @see <a href="QStyleOptionSlider.html#setMaximum(int)"><tt>setMaximum</tt></a> */"/> <method name="public final void setMaximum(int maximum)" doc="/** <p>Sets the maximum value for the slider to <tt>maximum</tt>.</p> <p>The default value is 0.</p> @see <a href="QStyleOptionSlider.html#maximum()"><tt>maximum</tt></a> */"/> <method name="public final int sliderPosition()" doc="/** <p>Returns the position of the slider handle.</p> <p>If the slider has active feedback (i.e&#x2e;, QAbstractSlider::tracking is true), this value will be the same as <a href="QStyleOptionSlider.html#sliderValue()"><tt>sliderValue</tt></a>. Otherwise, it will have the current position of the handle. The default value is 0.</p> @see <a href="QStyleOptionSlider.html#setSliderPosition(int)"><tt>setSliderPosition</tt></a> @see <tt>QAbstractSlider::tracking</tt> @see <a href="QStyleOptionSlider.html#sliderValue()"><tt>sliderValue</tt></a> */"/> <method name="public final void setSliderPosition(int sliderPosition)" doc="/** <p>Sets the position of the slider handle to <tt>sliderPosition</tt>.</p> <p>If the slider has active feedback (i.e&#x2e;, QAbstractSlider::tracking is true), this value will be the same as <a href="QStyleOptionSlider.html#sliderValue()"><tt>sliderValue</tt></a>. Otherwise, it will have the current position of the handle. The default value is 0.</p> @see <a href="QStyleOptionSlider.html#sliderPosition()"><tt>sliderPosition</tt></a> @see <tt>QAbstractSlider::tracking</tt> @see <a href="QStyleOptionSlider.html#sliderValue()"><tt>sliderValue</tt></a> */"/> <method name="public final boolean dialWrapping()" doc="/** <p>Returns whether the dial should wrap or not.</p> <p>The default value is false, i.e&#x2e; the dial is not wrapped.</p> @see <a href="QStyleOptionSlider.html#setDialWrapping(boolean)"><tt>setDialWrapping</tt></a> @see <tt>QDial::wrapping</tt> */"/> <method name="public final void setDialWrapping(boolean dialWrapping)" doc="/** <p>Sets whether the dial should wrap or not to <tt>dialWrapping</tt>.</p> <p>The default value is false, i.e&#x2e; the dial is not wrapped.</p> @see <a href="QStyleOptionSlider.html#dialWrapping()"><tt>dialWrapping</tt></a> @see <tt>QDial::wrapping</tt> */"/> <method name="public final int sliderValue()" doc="/** <p>Returns the value of the slider.</p> <p>If the slider has active feedback (i.e&#x2e;, QAbstractSlider::tracking is true), this value will be the same as <a href="QStyleOptionSlider.html#sliderPosition()"><tt>sliderPosition</tt></a>. Otherwise, it will have the value the slider had before the mouse was pressed.</p> <p>The default value is 0.</p> @see <a href="QStyleOptionSlider.html#setSliderValue(int)"><tt>setSliderValue</tt></a> @see <tt>QAbstractSlider::tracking</tt> @see <a href="QStyleOptionSlider.html#sliderPosition()"><tt>sliderPosition</tt></a> */"/> <method name="public final void setSliderValue(int sliderValue)" doc="/** <p>Sets the value of the slider to <tt>sliderValue</tt>.</p> <p>If the slider has active feedback (i.e&#x2e;, QAbstractSlider::tracking is true), this value will be the same as <a href="QStyleOptionSlider.html#sliderPosition()"><tt>sliderPosition</tt></a>. Otherwise, it will have the value the slider had before the mouse was pressed.</p> <p>The default value is 0.</p> @see <a href="QStyleOptionSlider.html#sliderValue()"><tt>sliderValue</tt></a> @see <tt>QAbstractSlider::tracking</tt> @see <a href="QStyleOptionSlider.html#sliderPosition()"><tt>sliderPosition</tt></a> */"/> <method name="public final int singleStep()" doc="/** <p>Returns the size of the single step of the slider.</p> <p>The default value is 0.</p> @see <a href="QStyleOptionSlider.html#setSingleStep(int)"><tt>setSingleStep</tt></a> @see <tt>QAbstractSlider::singleStep</tt> */"/> <method name="public final void setSingleStep(int singleStep)" doc="/** <p>Sets the size of the single step of the slider to <tt>singleStep</tt>.</p> <p>The default value is 0.</p> @see <tt>QAbstractSlider::singleStep</tt> */"/> <method name="public final com.trolltech.qt.gui.QSlider.TickPosition tickPosition()" doc="/** <p>Returns the position of the slider's tick marks, if any.</p> <p>The default value is QSlider::NoTicks.</p> @see <a href="QStyleOptionSlider.html#setTickPosition(com.trolltech.qt.gui.QSlider.TickPosition)"><tt>setTickPosition</tt></a> @see <tt>QSlider::TickPosition</tt> */"/> <method name="public final void setTickPosition(com.trolltech.qt.gui.QSlider.TickPosition tickPosition)" doc="/** <p>Sets the position of the slider's tick marks, if any to <tt>tickPosition</tt>.</p> <p>The default value is QSlider::NoTicks.</p> @see <a href="QStyleOptionSlider.html#tickPosition()"><tt>tickPosition</tt></a> @see <tt>QSlider::TickPosition</tt> */"/> <method name="public final int pageStep()" doc="/** <p>Returns the size of the page step of the slider.</p> <p>The default value is 0.</p> @see <a href="QStyleOptionSlider.html#setPageStep(int)"><tt>setPageStep</tt></a> @see <tt>QAbstractSlider::pageStep</tt> */"/> <method name="public final void setPageStep(int pageStep)" doc="/** <p>Sets the size of the page step of the slider to <tt>pageStep</tt>.</p> <p>The default value is 0.</p> @see <tt>QAbstractSlider::pageStep</tt> */"/> <method name="public final com.trolltech.qt.core.Qt.Orientation orientation()" doc="/** <p>Returns the slider's orientation (horizontal or vertical).</p> <p>The default orientation is Qt::Horizontal.</p> @see <a href="QStyleOptionSlider.html#setOrientation(com.trolltech.qt.core.Qt.Orientation)"><tt>setOrientation</tt></a> @see Qt::Orientation</tt> */"/> <method name="public final void setOrientation(com.trolltech.qt.core.Qt.Orientation orientation)" doc="/** <p>Sets the slider's orientation (horizontal or vertical) to <tt>orientation</tt>.</p> <p>The default orientation is Qt::Horizontal.</p> @see <a href="QStyleOptionSlider.html#orientation()"><tt>orientation</tt></a> @see Qt::Orientation</tt> */"/> <method name="public final boolean upsideDown()" doc="/** <p>Returns the slider control orientation.</p> <p>Normally a slider increases as it moves up or to the right; <a href="QStyleOptionSlider.html#upsideDown()"><tt>upsideDown</tt></a> indicates that it should do the opposite (increase as it moves down or to the left). The default value is false, i.e&#x2e; the slider increases as it moves up or to the right.</p> @see <a href="QStyleOptionSlider.html#setUpsideDown(boolean)"><tt>setUpsideDown</tt></a> @see <tt>QStyle::sliderPositionFromValue</tt> @see <tt>QStyle::sliderValueFromPosition</tt> @see <tt>QAbstractSlider::invertedAppearance</tt> */"/> <method name="public final void setUpsideDown(boolean upsideDown)" doc="/** <p>Sets the slider control orientation to <tt>upsideDown</tt>.</p> <p>Normally a slider increases as it moves up or to the right; <a href="QStyleOptionSlider.html#upsideDown()"><tt>upsideDown</tt></a> indicates that it should do the opposite (increase as it moves down or to the left). The default value is false, i.e&#x2e; the slider increases as it moves up or to the right.</p> @see <a href="QStyleOptionSlider.html#upsideDown()"><tt>upsideDown</tt></a> @see <tt>QStyle::sliderPositionFromValue</tt> @see <tt>QStyle::sliderValueFromPosition</tt> @see <tt>QAbstractSlider::invertedAppearance</tt> */"/> </class>