com.trolltech.qt.gui
Class QStyleOptionFocusRect
java.lang.Object
com.trolltech.qt.internal.QSignalEmitterInternal
com.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.gui.QStyleOption
com.trolltech.qt.gui.QStyleOptionFocusRect
- All Implemented Interfaces:
- QtJambiInterface, java.lang.Cloneable
public class QStyleOptionFocusRect
- extends QStyleOption
- implements java.lang.Cloneable
The QStyleOptionFocusRect
class is used to describe the parameters for drawing a focus rectangle with QStyle
. 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.
See also:
QStyleOption
.
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 |
Fields inherited from class com.trolltech.qt.internal.QSignalEmitterInternal |
currentSender |
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.internal.QSignalEmitterInternal |
__qt_signalInitialization |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QStyleOptionFocusRect
public QStyleOptionFocusRect()
- Constructs a
QStyleOptionFocusRect
, initializing the members variables to their default values.
QStyleOptionFocusRect
public QStyleOptionFocusRect(QStyleOptionFocusRect other)
- Constructs a copy of the other style option.
setBackgroundColor
public final void setBackgroundColor(QColor backgroundColor)
- This variable holds the background color on which the focus rectangle is being drawn. 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.
backgroundColor
public final QColor backgroundColor()
- This variable holds the background color on which the focus rectangle is being drawn. 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.
clone
public QStyleOptionFocusRect clone()
- This method is reimplemented for internal reasons
- Overrides:
clone
in class QStyleOption