#include <qstyleoption.h>
Inheritance diagram for QStyleOptionRubberBand:


QStyleOptionRubberBand contains all the information that QStyle functions need to draw QRubberBand.
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 {widgets/styles}{Styles} example.
Definition at line 492 of file qstyleoption.h.
Public Types | |
| enum | StyleOptionType |
| enum | StyleOptionVersion |
Public Member Functions | |
| QStyleOptionRubberBand () | |
| QStyleOptionRubberBand (const QStyleOptionRubberBand &other) | |
Public Attributes | |
| QRubberBand::Shape | shape |
| bool | opaque |
Protected Member Functions | |
| QStyleOptionRubberBand (int version) | |
This enum is used to hold information about the type of the style option, and is defined for each QStyleOption subclass.
Type The type of style option provided ({SO_RubberBand} for this class).
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.
Reimplemented from QStyleOption.
Definition at line 495 of file qstyleoption.h.
00495 { Type = SO_RubberBand };
This enum is used to hold information about the version of the style option, and is defined for each QStyleOption subclass.
Version 1
The version is used by QStyleOption subclasses to implement extensions without breaking compatibility. If you use qstyleoption_cast(), you normally don't need to check it.
Reimplemented from QStyleOption.
Definition at line 496 of file qstyleoption.h.
00496 { Version = 1 };
| QStyleOptionRubberBand::QStyleOptionRubberBand | ( | ) |
Creates a QStyleOptionRubberBand, initializing the members variables to their default values.
Definition at line 3472 of file qstyleoption.cpp.
03473 : QStyleOption(Version, SO_RubberBand), shape(QRubberBand::Line), opaque(false) 03474 { 03475 }
| QStyleOptionRubberBand::QStyleOptionRubberBand | ( | const QStyleOptionRubberBand & | other | ) | [inline] |
Constructs a copy of the other style option.
Definition at line 502 of file qstyleoption.h.
00502 : QStyleOption(Version, Type) { *this = other; }
| QStyleOptionRubberBand::QStyleOptionRubberBand | ( | int | version | ) | [protected] |
Definition at line 3480 of file qstyleoption.cpp.
03481 : QStyleOption(version, SO_RubberBand), shape(QRubberBand::Line), opaque(false) 03482 { 03483 }
Definition at line 498 of file qstyleoption.h.
Referenced by Q3IconView::drawRubber(), QRubberBandPrivate::getStyleOption(), and Q3ListBox::viewportPaintEvent().
Definition at line 499 of file qstyleoption.h.
Referenced by QRubberBandPrivate::getStyleOption(), and Q3ListBox::viewportPaintEvent().
1.5.1