|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.trolltech.qt.internal.QSignalEmitterInternal
com.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.gui.QStyleOption
com.trolltech.qt.gui.QStyleOptionComplex
com.trolltech.qt.gui.QStyleOptionSlider
public class QStyleOptionSlider
The QStyleOptionSlider class is used to describe the parameters needed for drawing a slider. QStyleOptionSlider contains all the information that QStyle
functions need to draw QSlider
and QScrollBar
.
For performance reasons, the access to the member variables is direct (i.e., using the . or -> operator). This low-level feel makes the structures straightforward to use and emphasizes that these are simply parameters used by the style functions.
For an example demonstrating how style options can be used, see the Styles example.
QStyleOptionComplex
, QSlider
, and QScrollBar
.
Nested Class Summary | |
---|---|
static class |
QStyleOptionSlider.StyleOptionType
This enum is used to hold information about the type of the style option, and is defined for each QStyleOption subclass. |
static class |
QStyleOptionSlider.StyleOptionVersion
This enum is used to hold information about the version of the style option, and is defined for each QStyleOption subclass. |
Nested classes/interfaces inherited from class com.trolltech.qt.gui.QStyleOption |
---|
QStyleOption.OptionType |
Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter |
---|
QSignalEmitter.AbstractSignal, QSignalEmitter.Signal0, QSignalEmitter.Signal1, QSignalEmitter.Signal2, QSignalEmitter.Signal3, QSignalEmitter.Signal4, QSignalEmitter.Signal5, QSignalEmitter.Signal6, QSignalEmitter.Signal7, QSignalEmitter.Signal8, QSignalEmitter.Signal9 |
Nested classes/interfaces inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
---|
com.trolltech.qt.internal.QSignalEmitterInternal.AbstractSignalInternal |
Field Summary |
---|
Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
---|
currentSender |
Constructor Summary | |
---|---|
QStyleOptionSlider()
Constructs a QStyleOptionSlider, initializing the members variables to their default values. |
|
QStyleOptionSlider(QStyleOptionSlider other)
Constructs a copy of the other style option. |
Method Summary | |
---|---|
QStyleOptionSlider |
clone()
This method is reimplemented for internal reasons |
boolean |
dialWrapping()
This variable holds whether the dial should wrap or not. |
int |
maximum()
This variable holds the maximum value for the slider. |
int |
minimum()
This variable holds the minimum value for the slider. |
double |
notchTarget()
This variable holds the number of pixel between notches. |
Qt.Orientation |
orientation()
This variable holds the slider's orientation (horizontal or vertical). |
int |
pageStep()
This variable holds the size of the page step of the slider. |
void |
setDialWrapping(boolean dialWrapping)
This variable holds whether the dial should wrap or not. |
void |
setMaximum(int maximum)
This variable holds the maximum value for the slider. |
void |
setMinimum(int minimum)
This variable holds the minimum value for the slider. |
void |
setNotchTarget(double notchTarget)
This variable holds the number of pixel between notches. |
void |
setOrientation(Qt.Orientation orientation)
This variable holds the slider's orientation (horizontal or vertical). |
void |
setPageStep(int pageStep)
This variable holds the size of the page step of the slider. |
void |
setSingleStep(int singleStep)
This variable holds the size of the single step of the slider. |
void |
setSliderPosition(int sliderPosition)
This variable holds the position of the slider handle. |
void |
setSliderValue(int sliderValue)
This variable holds the value of the slider. |
void |
setTickInterval(int tickInterval)
This variable holds the interval that should be drawn between tick marks. |
void |
setTickPosition(QSlider.TickPosition tickPosition)
This variable holds the position of the slider's tick marks, if any. |
void |
setUpsideDown(boolean upsideDown)
This variable holds the slider control orientation. |
int |
singleStep()
This variable holds the size of the single step of the slider. |
int |
sliderPosition()
This variable holds the position of the slider handle. |
int |
sliderValue()
This variable holds the value of the slider. |
int |
tickInterval()
This variable holds the interval that should be drawn between tick marks. |
QSlider.TickPosition |
tickPosition()
This variable holds the position of the slider's tick marks, if any. |
boolean |
upsideDown()
This variable holds the slider control orientation. |
Methods inherited from class com.trolltech.qt.gui.QStyleOptionComplex |
---|
activeSubControls, setActiveSubControls, setSubControls, subControls |
Methods inherited from class com.trolltech.qt.gui.QStyleOption |
---|
direction, fontMetrics, initFrom, palette, rect, setDirection, setFontMetrics, setPalette, setRect, setState, setState, setType, setVersion, state, type, version |
Methods inherited from class com.trolltech.qt.QtJambiObject |
---|
dispose, disposed, equals, finalize, reassignNativeResources, tr, tr, tr |
Methods inherited from class com.trolltech.qt.QSignalEmitter |
---|
blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread |
Methods inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
---|
__qt_signalInitialization |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.trolltech.qt.QtJambiInterface |
---|
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership |
Constructor Detail |
---|
public QStyleOptionSlider()
public QStyleOptionSlider(QStyleOptionSlider other)
Method Detail |
---|
public final void setTickInterval(int tickInterval)
public final int tickInterval()
public final void setMinimum(int minimum)
public final int minimum()
public final void setNotchTarget(double notchTarget)
QDial::notchTarget()
.
public final double notchTarget()
QDial::notchTarget()
.
public final void setMaximum(int maximum)
public final int maximum()
public final void setSliderPosition(int sliderPosition)
QAbstractSlider::tracking
is true), this value will be the same as sliderValue. Otherwise, it will have the current position of the handle. The default value is 0. QAbstractSlider::tracking
, and sliderValue.
public final int sliderPosition()
QAbstractSlider::tracking
is true), this value will be the same as sliderValue. Otherwise, it will have the current position of the handle. The default value is 0. QAbstractSlider::tracking
, and sliderValue.
public final void setDialWrapping(boolean dialWrapping)
QDial::wrapping()
.
public final boolean dialWrapping()
QDial::wrapping()
.
public final void setSliderValue(int sliderValue)
QAbstractSlider::tracking
is true), this value will be the same as sliderPosition. Otherwise, it will have the value the slider had before the mouse was pressed. The default value is 0.
QAbstractSlider::tracking
, and sliderPosition.
public final int sliderValue()
QAbstractSlider::tracking
is true), this value will be the same as sliderPosition. Otherwise, it will have the value the slider had before the mouse was pressed. The default value is 0.
QAbstractSlider::tracking
, and sliderPosition.
public final void setSingleStep(int singleStep)
QAbstractSlider::singleStep
.
public final int singleStep()
QAbstractSlider::singleStep
.
public final void setTickPosition(QSlider.TickPosition tickPosition)
QSlider::NoTicks
. QSlider::TickPosition
.
public final QSlider.TickPosition tickPosition()
QSlider::NoTicks
. QSlider::TickPosition
.
public final void setPageStep(int pageStep)
QAbstractSlider::pageStep
.
public final int pageStep()
QAbstractSlider::pageStep
.
public final void setOrientation(Qt.Orientation orientation)
Qt::Horizontal
. Qt::Orientation
.
public final Qt.Orientation orientation()
Qt::Horizontal
. Qt::Orientation
.
public final void setUpsideDown(boolean upsideDown)
QStyle::sliderPositionFromValue()
, QStyle::sliderValueFromPosition()
, and QAbstractSlider::invertedAppearance
.
public final boolean upsideDown()
QStyle::sliderPositionFromValue()
, QStyle::sliderValueFromPosition()
, and QAbstractSlider::invertedAppearance
.
public QStyleOptionSlider clone()
clone
in class QStyleOptionComplex
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |