|
|||||||||
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.QStyleOptionToolBar
public class QStyleOptionToolBar
The QStyleOptionToolBar
class is used to describe the parameters for drawing a toolbar. QStyleOptionToolBar
contains all the information that QStyle
functions need to draw QToolBar
.
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.
The QStyleOptionToolBar
class holds the lineWidth and the midLineWidth for drawing the widget. It also stores information about which area the toolbar should be located in, whether it is movable or not, which position the toolbar line should have (positionOfLine), and the toolbar's position within the line (positionWithinLine).
In addition, the class provides a couple of enums: The ToolBarFeature
enum is used to describe whether a toolbar is movable or not, and the ToolBarPosition
enum is used to describe the position of a toolbar line, as well as the toolbar's position within the line.
For an example demonstrating how style options can be used, see the Styles example.
QStyleOption
.
Nested Class Summary | |
---|---|
static class |
QStyleOptionToolBar.StyleOptionType
This enum is used to hold information about the type of the style option, and is defined for each QStyleOption subclass. |
static class |
QStyleOptionToolBar.StyleOptionVersion
This enum is used to hold information about the version of the style option, and is defined for each QStyleOption subclass. |
static class |
QStyleOptionToolBar.ToolBarFeature
This enum is used to describe whether a toolbar is movable or not. |
static class |
QStyleOptionToolBar.ToolBarFeatures
This is a flags class for com.trolltech.qt.gui.QStyleOptionToolBar.ToolBarFeature |
static class |
QStyleOptionToolBar.ToolBarPosition
See the description for details. |
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 | |
---|---|
QStyleOptionToolBar()
Constructs a QStyleOptionToolBar , initializing the members variables to their default values. |
|
QStyleOptionToolBar(QStyleOptionToolBar other)
Constructs a copy of the other style option. |
Method Summary | |
---|---|
QStyleOptionToolBar |
clone()
This method is reimplemented for internal reasons |
QStyleOptionToolBar.ToolBarFeatures |
features()
This variable holds whether the toolbar is movable or not. |
int |
lineWidth()
This variable holds the line width for drawing the toolbar. |
int |
midLineWidth()
This variable holds the mid-line width for drawing the toolbar. |
QStyleOptionToolBar.ToolBarPosition |
positionOfLine()
This variable holds the position of the toolbar line. |
QStyleOptionToolBar.ToolBarPosition |
positionWithinLine()
This variable holds the position of the toolbar within a line. |
void |
setFeatures(QStyleOptionToolBar.ToolBarFeatures features)
This variable holds whether the toolbar is movable or not. |
void |
setLineWidth(int lineWidth)
This variable holds the line width for drawing the toolbar. |
void |
setMidLineWidth(int midLineWidth)
This variable holds the mid-line width for drawing the toolbar. |
void |
setPositionOfLine(QStyleOptionToolBar.ToolBarPosition positionOfLine)
This variable holds the position of the toolbar line. |
void |
setPositionWithinLine(QStyleOptionToolBar.ToolBarPosition positionWithinLine)
This variable holds the position of the toolbar within a line. |
void |
setToolBarArea(Qt.ToolBarArea toolBarArea)
This variable holds the location for drawing the toolbar. |
Qt.ToolBarArea |
toolBarArea()
This variable holds the location for drawing the toolbar. |
Methods inherited from class com.trolltech.qt.gui.QStyleOption |
---|
direction, fontMetrics, initFrom, palette, rect, setDirection, setFontMetrics, setPalette, setRect, 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 QStyleOptionToolBar()
QStyleOptionToolBar
, initializing the members variables to their default values.
public QStyleOptionToolBar(QStyleOptionToolBar other)
Method Detail |
---|
public final void setLineWidth(int lineWidth)
The default value is 0.
public final int lineWidth()
The default value is 0.
public final void setPositionWithinLine(QStyleOptionToolBar.ToolBarPosition positionWithinLine)
The default value is QStyleOptionToolBar::OnlyOne
.
public final QStyleOptionToolBar.ToolBarPosition positionWithinLine()
The default value is QStyleOptionToolBar::OnlyOne
.
public final void setPositionOfLine(QStyleOptionToolBar.ToolBarPosition positionOfLine)
The default value is QStyleOptionToolBar::OnlyOne
.
public final QStyleOptionToolBar.ToolBarPosition positionOfLine()
The default value is QStyleOptionToolBar::OnlyOne
.
public final void setFeatures(QStyleOptionToolBar.ToolBarFeatures features)
The default value is None
.
public final QStyleOptionToolBar.ToolBarFeatures features()
The default value is None
.
public final void setToolBarArea(Qt.ToolBarArea toolBarArea)
The default value is Qt::TopToolBarArea
.
Qt::ToolBarArea
.
public final Qt.ToolBarArea toolBarArea()
The default value is Qt::TopToolBarArea
.
Qt::ToolBarArea
.
public final void setMidLineWidth(int midLineWidth)
The default value is 0.
public final int midLineWidth()
The default value is 0.
public QStyleOptionToolBar clone()
clone
in class QStyleOption
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |