|
Fluid
|
Represents the corner radii for a rectangular material-design shape. More...
#include <cornersgroup.h>
Public Member Functions | |
| Q_INVOKABLE | CornersGroup () noexcept |
| Default constructs all radii to 0. | |
| Q_INVOKABLE | CornersGroup (qreal) noexcept |
| Constructs with all four radii set to r. | |
| Q_INVOKABLE | CornersGroup (qreal topLeft, qreal topRight, qreal bottomLeft, qreal bottomRight) noexcept |
| Constructs with individually specified radii. | |
| ~CornersGroup () | |
| Default destructor. | |
| CornersGroup (const CornersGroup &)=default | |
| CornersGroup (CornersGroup &&)=default | |
| CornersGroup & | operator= (const CornersGroup &)=default |
| CornersGroup & | operator= (CornersGroup &&)=default |
| qreal | radius () const noexcept |
| Returns the largest of the four corner radii. | |
| void | setRadius (qreal) noexcept |
| Sets all four corner radii to the same value. | |
| qreal | topLeft () const noexcept |
| Returns the top-left corner radius. | |
| void | setTopLeft (qreal newTopLeft) noexcept |
| Sets the top-left corner radius. | |
| qreal | topRight () const noexcept |
| Returns the top-right corner radius. | |
| void | setTopRight (qreal newTopRight) noexcept |
| Sets the top-right corner radius. | |
| qreal | bottomLeft () const noexcept |
| Returns the bottom-left corner radius. | |
| void | setBottomLeft (qreal newBottomLeft) noexcept |
| Sets the bottom-left corner radius. | |
| qreal | bottomRight () const noexcept |
| Returns the bottom-right corner radius. | |
| void | setBottomRight (qreal newBottomRight) noexcept |
| Sets the bottom-right corner radius. | |
| Q_INVOKABLE QVector4D | toVector4D () const noexcept |
| Converts the corner radii to a QVector4D. | |
| operator QVector4D () const noexcept | |
| Conversion operator to QVector4D. | |
Properties | |
| QML_CONSTRUCTIBLE_VALUEqreal | radius |
| qreal | topLeft |
| qreal | topRight |
| qreal | bottomLeft |
| qreal | bottomRight |
Represents the corner radii for a rectangular material-design shape.
CornersGroup stores four independent corner radii (top-left, top-right, bottom-left, bottom-right) used to describe the rounded corners of a shape. Radii are expressed in the framework's logical units (qreal) and may be converted to a QVector4D for GPU/paint operations or uniform uploads.
The class is lightweight, trivially copyable, and all accessor and mutator operations are noexcept.
Usage notes:
Threading:
Examples:
|
noexcept |
Default constructs all radii to 0.
|
noexcept |
Constructs with all four radii set to r.
| r | Radius applied to all corners. |
|
noexcept |
Constructs with individually specified radii.
| topLeft | Radius for the top-left corner. |
| topRight | Radius for the top-right corner. |
| bottomLeft | Radius for the bottom-left corner. |
| bottomRight | Radius for the bottom-right corner. |
| Fluid::CornersGroup::~CornersGroup | ( | ) |
Default destructor.
|
default |
|
default |
|
noexcept |
Returns the bottom-left corner radius.
|
noexcept |
Returns the bottom-right corner radius.
|
noexcept |
Conversion operator to QVector4D.
|
default |
|
default |
|
noexcept |
Returns the largest of the four corner radii.
|
noexcept |
Sets the bottom-left corner radius.
| newBottomLeft | New radius for the bottom-left corner. |
|
noexcept |
Sets the bottom-right corner radius.
| newBottomRight | New radius for the bottom-right corner. |
|
noexcept |
Sets all four corner radii to the same value.
| v | Radius value applied to every corner. |
|
noexcept |
Sets the top-left corner radius.
| newTopLeft | New radius for the top-left corner. |
|
noexcept |
Sets the top-right corner radius.
| newTopRight | New radius for the top-right corner. |
|
noexcept |
Returns the top-left corner radius.
|
noexcept |
Returns the top-right corner radius.
|
noexcept |
Converts the corner radii to a QVector4D.
|
readwrite |
|
readwrite |
|
read |
|
readwrite |
|
readwrite |