QStyleOptionRubberBand Class Reference

#include <qstyleoption.h>

Inheritance diagram for QStyleOptionRubberBand:

Inheritance graph
[legend]
Collaboration diagram for QStyleOptionRubberBand:

Collaboration graph
[legend]
List of all members.

Detailed Description

the icon for the tool box tabthe text for the tool box tabThe QStyleOptionRubberBand class is used to describe the parameters needed for drawing a rubber band.

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.

See also:
QStyleOption, QRubberBand

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)


Member Enumeration Documentation

enum QStyleOptionRubberBand::StyleOptionType

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.

See also:
StyleOptionVersion

Reimplemented from QStyleOption.

Definition at line 495 of file qstyleoption.h.

00495 { Type = SO_RubberBand };

enum QStyleOptionRubberBand::StyleOptionVersion

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.

See also:
StyleOptionType

Reimplemented from QStyleOption.

Definition at line 496 of file qstyleoption.h.

00496 { Version = 1 };


Constructor & Destructor Documentation

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 }


Member Data Documentation

QRubberBand::Shape QStyleOptionRubberBand::shape

Definition at line 498 of file qstyleoption.h.

Referenced by Q3IconView::drawRubber(), QRubberBandPrivate::getStyleOption(), and Q3ListBox::viewportPaintEvent().

bool QStyleOptionRubberBand::opaque

Definition at line 499 of file qstyleoption.h.

Referenced by QRubberBandPrivate::getStyleOption(), and Q3ListBox::viewportPaintEvent().


The documentation for this class was generated from the following files:
Generated on Thu Mar 15 19:10:43 2007 for Qt 4.2 User's Guide by  doxygen 1.5.1