CopperSpice API  1.9.2
QStyleOptionFrame Class Reference

Describes the parameters for drawing a frame. More...

Inheritance diagram for QStyleOptionFrame:
QStyleOption

Public Typedefs

using FrameFeatures = QFlags< FrameFeature >
 

Public Types

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

Public Methods

 QStyleOptionFrame ()
 
 QStyleOptionFrame (const QStyleOptionFrame &other)
 
QStyleOptionFrame & operator= (const QStyleOptionFrame &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)
 

Public Members

FrameFeatures features
 
QFrame::Shape frameShape
 
int lineWidth
 
int midLineWidth
 
- Public Members inherited from QStyleOption
int type
 
int version
 

Additional Inherited Members

Detailed Description

The QStyleOptionFrame class is used to describe the parameters for drawing a frame. QStyleOptionFrame is used for drawing several built-in CopperSpice widgets, including QFrame, QGroupBox, QLineEdit, and QMenu.

An instance of the QStyleOptionFrame class has type SO_Frame and version 3.

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.

See also
QStyleOption

Member Typedef Documentation

Typedef for QFlags<FrameFeature> which contains an OR combination of FrameFeature values.

Refer to QStyleOptionFrame::FrameFeature for the enum documentation.

Member Enumeration Documentation

This enum describes the different types of features available for a frame.

ConstantValueDescription
QStyleOptionFrame::None 0x00 Normal frame
QStyleOptionFrame::Flat 0x01 Flat frame
QStyleOptionFrame::Rounded 0x02 Rounded frame

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

ConstantValueDescription
QStyleOptionFrame::Type SO_Frame The type of style option provided (SO_Frame 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

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

ConstantValueDescription
QStyleOptionFrame::Version 3 3

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.

See also
StyleOptionType

Constructor & Destructor Documentation

QStyleOptionFrame::QStyleOptionFrame ( )

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

QStyleOptionFrame::QStyleOptionFrame ( const QStyleOptionFrame &  other)
inline

Copy constructs a new QStyleOptionFrame from other.

Method Documentation

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

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

Member Data Documentation

FrameFeatures QStyleOptionFrame::features

This variable holds a bitwise OR of the features that describe this frame.

See also
FrameFeature
QFrame::Shape QStyleOptionFrame::frameShape

This property holds the frame shape value of the frame.

See also
QFrame::frameShape
int QStyleOptionFrame::lineWidth

This variable holds the line width for drawing the frame. The default value is 0.

See also
QFrame::lineWidth
int QStyleOptionFrame::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