com.trolltech.qt.gui
Class QStyleOptionFrame

java.lang.Object
  extended by com.trolltech.qt.internal.QSignalEmitterInternal
      extended by com.trolltech.qt.QSignalEmitter
          extended by com.trolltech.qt.QtJambiObject
              extended by com.trolltech.qt.gui.QStyleOption
                  extended by com.trolltech.qt.gui.QStyleOptionFrame
All Implemented Interfaces:
QtJambiInterface, java.lang.Cloneable
Direct Known Subclasses:
QStyleOptionFrameV2

public class QStyleOptionFrame
extends QStyleOption
implements java.lang.Cloneable

The QStyleOptionFrame class is used to describe the parameters for drawing a frame. QStyleOptionFrame is used for drawing several built-in Qt widgets, including QFrame, QGroupBox, QLineEdit, and QMenu. Note that to describe the parameters necessary for drawing a frame in Qt 4.1 or above, you must use the QStyleOptionFrameV2 subclass.

An instance of the QStyleOptionFrame class has typeSO_Frame and version 1.

The type is used internally by QStyleOption, 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 QStyleOption subclass and your own styles. The version is used by QStyleOption subclasses to implement extensions without breaking compatibility. If you use qstyleoption_cast(), you normally do not need to check it.

If you create your own QStyle subclass, you should handle both QStyleOptionFrame and QStyleOptionFrameV2.

For an example demonstrating how style options can be used, see the Styles example.

See also:
QStyleOptionFrameV2, and QStyleOption.


Nested Class Summary
static class QStyleOptionFrame.StyleOptionType
          This enum is used to hold information about the type of the style option, and is defined for each QStyleOption subclass.
static class QStyleOptionFrame.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.PrivateSignal0, QSignalEmitter.PrivateSignal1, QSignalEmitter.PrivateSignal2, QSignalEmitter.PrivateSignal3, QSignalEmitter.PrivateSignal4, QSignalEmitter.PrivateSignal5, QSignalEmitter.PrivateSignal6, QSignalEmitter.PrivateSignal7, QSignalEmitter.PrivateSignal8, QSignalEmitter.PrivateSignal9, 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
QStyleOptionFrame()
          Constructs a QStyleOptionFrame, initializing the members variables to their default values.
QStyleOptionFrame(QStyleOptionFrame other)
          Constructs a copy of the other style option.
 
Method Summary
 QStyleOptionFrame clone()
          This method is reimplemented for internal reasons
 int lineWidth()
          This variable holds the line width for drawing the frame.
 int midLineWidth()
          This variable holds the mid-line width for drawing the frame.
 void setLineWidth(int lineWidth)
          This variable holds the line width for drawing the frame.
 void setMidLineWidth(int midLineWidth)
          This variable holds the mid-line width for drawing the frame.
 
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

QStyleOptionFrame

public QStyleOptionFrame()
Constructs a QStyleOptionFrame, initializing the members variables to their default values.


QStyleOptionFrame

public QStyleOptionFrame(QStyleOptionFrame other)
Constructs a copy of the other style option.

Method Detail

setLineWidth

public final void setLineWidth(int lineWidth)
This variable holds the line width for drawing the frame. The default value is 0.

See also:
QFrame::lineWidth.


lineWidth

public final int lineWidth()
This variable holds the line width for drawing the frame. The default value is 0.

See also:
QFrame::lineWidth.


setMidLineWidth

public final void setMidLineWidth(int midLineWidth)
This variable holds the mid-line width for drawing the frame. This is usually used in drawing sunken or raised frames.

The default value is 0.

See also:
QFrame::midLineWidth.


midLineWidth

public final int midLineWidth()
This variable holds the mid-line width for drawing the frame. This is usually used in drawing sunken or raised frames.

The default value is 0.

See also:
QFrame::midLineWidth.


clone

public QStyleOptionFrame clone()
This method is reimplemented for internal reasons

Overrides:
clone in class QStyleOption