CopperSpice API  1.7.2
QStyleOptionFocusRect Class Reference

Used to describe the parameters for drawing a focus rectangle with QStyle. More...

Inheritance diagram for QStyleOptionFocusRect:
QStyleOption

Public Types

enum  StyleOptionType
 
enum  StyleOptionVersion
 
- Public Types inherited from QStyleOption
enum  OptionType
 
enum  StyleOptionType
 
enum  StyleOptionVersion
 

Public Methods

 QStyleOptionFocusRect ()
 
 QStyleOptionFocusRect (const QStyleOptionFocusRect &other)
 
QStyleOptionFocusRect & operator= (const QStyleOptionFocusRect &other) = default
 
- Public Methods inherited from QStyleOption
 QStyleOption (const QStyleOption &other)
 
 QStyleOption (int version=QStyleOption::Version, int type=SO_Default)
 
 ~QStyleOption ()
 
void initFrom (const QWidget *widget)
 
QStyleOption & operator= (const QStyleOption &other)
 

Additional Inherited Members

Detailed Description

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.

See also
QStyleOption

Member Enumeration Documentation

This enum is used to hold information about the type of the style option and is defined for each QStyleOption subclass.

ConstantValueDescription
QStyleOptionFocusRect::Type SO_FocusRect The type of style option provided (SO_FocusRect for this class).
See also
StyleOptionVersion, qstyleoption_cast()

This enum is used to hold information about the version of the style option and is defined for each QStyleOption subclass.

ConstantValueDescription
QStyleOptionFocusRect::Version 11
See also
StyleOptionType, qstyleoption_cast()

Constructor & Destructor Documentation

QStyleOptionFocusRect::QStyleOptionFocusRect ( )

Constructs an empty QStyleOptionFocusRect.

QStyleOptionFocusRect::QStyleOptionFocusRect ( const QStyleOptionFocusRect &  other)
inline

Copy constructs a new QStyleOptionFocusRect from other.

Method Documentation

QStyleOptionFocusRect & QStyleOptionFocusRect::operator= ( const QStyleOptionFocusRect &  other)
default

Copy assigns from other and returns a reference to this object.