CopperSpice API
1.9.2
|
Describes the parameters for drawing a frame. More...
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 | |
Related Functions inherited from QStyleOption | |
T | qstyleoption_cast (const QStyleOption *option) |
T | qstyleoption_cast (QStyleOption *option) |
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.
Typedef for QFlags<FrameFeature> which contains an OR combination of FrameFeature values.
Refer to QStyleOptionFrame::FrameFeature for the enum documentation.
This enum describes the different types of features available for a frame.
Constant | Value | Description |
---|---|---|
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.
Constant | Value | Description |
---|---|---|
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.
This enum is used to hold information about the version of the style option, and is defined for each QStyleOption subclass.
Constant | Value | Description |
---|---|---|
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.
QStyleOptionFrame::QStyleOptionFrame | ( | ) |
Constructs a QStyleOptionFrame, initializing the members variables to their default values.
|
inline |
Copy constructs a new QStyleOptionFrame from other.
|
default |
Copy assigns from other and returns a reference to this object.
FrameFeatures QStyleOptionFrame::features |
This variable holds a bitwise OR of the features that describe this frame.
QFrame::Shape QStyleOptionFrame::frameShape |
This property holds the frame shape value of the frame.
int QStyleOptionFrame::lineWidth |
This variable holds the line width for drawing the frame. The default value is 0.
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.