QSkinny 0.8.0
C++/Qt UI toolkit
|
Definition at line 21 of file QskGradient.h.
Public Types | |
enum | Type { Stops , Linear , Radial , Conic } |
enum | SpreadMode { PadSpread , ReflectSpread , RepeatSpread } |
enum | StretchMode { NoStretch , StretchToSize } |
Properties | |
Type | type |
QskLinearDirection | linear |
QskConicDirection | conic |
QskRadialDirection | radial |
QskGradientStops | stops |
SpreadMode | spreadMode |
StretchMode | stretchMode |
bool | valid |
bool | visible |
bool | monochrome |
Public Member Functions | |
QskGradient (Qt::GlobalColor) | |
QskGradient (QRgb) | |
QskGradient (const QColor &) | |
QskGradient (const QColor &, const QColor &) | |
QskGradient (QGradient::Preset) | |
QskGradient (const QskGradientStops &) | |
QskGradient (const QGradient &) | |
QskGradient (const QskGradient &) noexcept | |
QskGradient & | operator= (const QskGradient &) noexcept |
bool | operator== (const QskGradient &) const noexcept |
bool | operator!= (const QskGradient &) const noexcept |
QskGradient::Type | type () const noexcept |
void | setLinearDirection (const QskLinearDirection &) |
void | setLinearDirection (qreal, qreal, qreal, qreal) |
void | setLinearDirection (Qt::Orientation) |
QskLinearDirection | linearDirection () const |
void | setRadialDirection (const QskRadialDirection &) |
void | setRadialDirection (const qreal x, qreal y, qreal radius) |
void | setRadialDirection (const qreal x, qreal y, qreal radiusX, qreal radiusY) |
QskRadialDirection | radialDirection () const |
void | setConicDirection (qreal x, qreal y) |
void | setConicDirection (qreal x, qreal y, qreal startAngle, qreal spanAngle=360.0) |
void | setConicDirection (qreal x, qreal y, qreal startAngle, qreal spanAngle, qreal aspectRatio) |
void | setConicDirection (const QskConicDirection &) |
QskConicDirection | conicDirection () const |
void | setDirection (Type) |
void | resetDirection () |
bool | isValid () const noexcept |
bool | isMonochrome () const noexcept |
bool | isVisible () const noexcept |
void | setStops (const QskGradientStops &) |
const QskGradientStops & | stops () const noexcept |
void | setStops (const QRgb) |
void | setStops (Qt::GlobalColor) |
void | setStops (const QColor &) |
void | setStops (const QColor &, const QColor &) |
void | setStops (QGradient::Preset) |
void | clearStops () |
Q_INVOKABLE bool | hasStopAt (qreal value) const noexcept |
Q_INVOKABLE QColor | startColor () const noexcept |
Q_INVOKABLE QColor | endColor () const noexcept |
QRgb | rgbStart () const |
QRgb | rgbEnd () const |
void | setAlpha (int alpha) |
void | setSpreadMode (SpreadMode) |
SpreadMode | spreadMode () const noexcept |
void | setStretchMode (StretchMode) |
StretchMode | stretchMode () const noexcept |
void | reverse () |
QskGradient | reversed () const |
QskGradient | interpolated (const QskGradient &, qreal value) const |
void | stretchTo (const QRectF &) |
QskGradient | stretchedTo (const QSizeF &) const |
QskGradient | stretchedTo (const QRectF &) const |
QskGradient | extracted (qreal from, qreal start) const |
QskHashValue | hash (QskHashValue seed=0) const |
Q_INVOKABLE qreal | stopAt (int index) const noexcept |
Q_INVOKABLE QColor | colorAt (int index) const noexcept |
int | stepCount () const noexcept |
QGradient | toQGradient () const |
Static Public Member Functions | |
static QVariant | interpolate (const QskGradient &, const QskGradient &, qreal progress) |
enum QskGradient::SpreadMode |
Definition at line 53 of file QskGradient.h.
enum QskGradient::StretchMode |
Definition at line 61 of file QskGradient.h.
enum QskGradient::Type |
Definition at line 43 of file QskGradient.h.
|
inlinenoexcept |
Definition at line 195 of file QskGradient.h.
|
inline |
Definition at line 206 of file QskGradient.h.
|
inline |
Definition at line 211 of file QskGradient.h.
QskGradient::QskGradient | ( | const QColor & | color | ) |
Definition at line 69 of file QskGradient.cpp.
QskGradient::QskGradient | ( | const QColor & | color1, |
const QColor & | color2 | ||
) |
Definition at line 75 of file QskGradient.cpp.
QskGradient::QskGradient | ( | QGradient::Preset | preset | ) |
Definition at line 81 of file QskGradient.cpp.
QskGradient::QskGradient | ( | const QskGradientStops & | stops | ) |
Definition at line 87 of file QskGradient.cpp.
QskGradient::QskGradient | ( | const QGradient & | qGradient | ) |
Definition at line 93 of file QskGradient.cpp.
|
noexcept |
Definition at line 171 of file QskGradient.cpp.
QskGradient::~QskGradient | ( | ) |
Definition at line 185 of file QskGradient.cpp.
void QskGradient::clearStops | ( | ) |
Definition at line 572 of file QskGradient.cpp.
|
noexcept |
Definition at line 366 of file QskGradient.cpp.
QskConicDirection QskGradient::conicDirection | ( | ) | const |
Definition at line 686 of file QskGradient.cpp.
|
inlinenoexcept |
Definition at line 255 of file QskGradient.h.
QskGradient QskGradient::extracted | ( | qreal | from, |
qreal | start | ||
) | const |
Definition at line 489 of file QskGradient.cpp.
QskHashValue QskGradient::hash | ( | QskHashValue | seed = 0 | ) | const |
Definition at line 581 of file QskGradient.cpp.
|
noexcept |
Definition at line 351 of file QskGradient.cpp.
|
static |
Definition at line 566 of file QskGradient.cpp.
QskGradient QskGradient::interpolated | ( | const QskGradient & | to, |
qreal | value | ||
) | const |
Definition at line 514 of file QskGradient.cpp.
|
noexcept |
Definition at line 278 of file QskGradient.cpp.
|
noexcept |
Definition at line 270 of file QskGradient.cpp.
|
noexcept |
Definition at line 286 of file QskGradient.cpp.
QskLinearDirection QskGradient::linearDirection | ( | ) | const |
Definition at line 616 of file QskGradient.cpp.
|
inlinenoexcept |
Definition at line 216 of file QskGradient.h.
|
noexcept |
Definition at line 189 of file QskGradient.cpp.
|
noexcept |
Definition at line 210 of file QskGradient.cpp.
QskRadialDirection QskGradient::radialDirection | ( | ) | const |
Definition at line 646 of file QskGradient.cpp.
void QskGradient::resetDirection | ( | ) |
Definition at line 722 of file QskGradient.cpp.
void QskGradient::reverse | ( | ) |
Definition at line 471 of file QskGradient.cpp.
QskGradient QskGradient::reversed | ( | ) | const |
Definition at line 481 of file QskGradient.cpp.
|
inline |
Definition at line 265 of file QskGradient.h.
|
inline |
Definition at line 260 of file QskGradient.h.
void QskGradient::setAlpha | ( | int | alpha | ) |
Definition at line 374 of file QskGradient.cpp.
void QskGradient::setConicDirection | ( | const QskConicDirection & | direction | ) |
Definition at line 675 of file QskGradient.cpp.
void QskGradient::setConicDirection | ( | qreal | x, |
qreal | y | ||
) |
Definition at line 657 of file QskGradient.cpp.
void QskGradient::setConicDirection | ( | qreal | x, |
qreal | y, | ||
qreal | startAngle, | ||
qreal | spanAngle, | ||
qreal | aspectRatio | ||
) |
Definition at line 668 of file QskGradient.cpp.
void QskGradient::setConicDirection | ( | qreal | x, |
qreal | y, | ||
qreal | startAngle, | ||
qreal | spanAngle = 360.0 |
||
) |
Definition at line 662 of file QskGradient.cpp.
void QskGradient::setDirection | ( | Type | type | ) |
Definition at line 700 of file QskGradient.cpp.
void QskGradient::setLinearDirection | ( | const QskLinearDirection & | direction | ) |
Definition at line 606 of file QskGradient.cpp.
void QskGradient::setLinearDirection | ( | qreal | x1, |
qreal | y1, | ||
qreal | x2, | ||
qreal | y2 | ||
) |
Definition at line 601 of file QskGradient.cpp.
void QskGradient::setLinearDirection | ( | Qt::Orientation | orientation | ) |
Definition at line 596 of file QskGradient.cpp.
void QskGradient::setRadialDirection | ( | const qreal | x, |
qreal | y, | ||
qreal | radius | ||
) |
Definition at line 627 of file QskGradient.cpp.
void QskGradient::setRadialDirection | ( | const qreal | x, |
qreal | y, | ||
qreal | radiusX, | ||
qreal | radiusY | ||
) |
Definition at line 632 of file QskGradient.cpp.
void QskGradient::setRadialDirection | ( | const QskRadialDirection & | direction | ) |
Definition at line 636 of file QskGradient.cpp.
void QskGradient::setSpreadMode | ( | SpreadMode | spreadMode | ) |
Definition at line 389 of file QskGradient.cpp.
void QskGradient::setStops | ( | const QColor & | color | ) |
Definition at line 294 of file QskGradient.cpp.
void QskGradient::setStops | ( | const QColor & | color1, |
const QColor & | color2 | ||
) |
Definition at line 300 of file QskGradient.cpp.
|
inline |
Definition at line 240 of file QskGradient.h.
void QskGradient::setStops | ( | const QskGradientStops & | stops | ) |
Definition at line 312 of file QskGradient.cpp.
void QskGradient::setStops | ( | QGradient::Preset | preset | ) |
Definition at line 306 of file QskGradient.cpp.
|
inline |
Definition at line 245 of file QskGradient.h.
void QskGradient::setStretchMode | ( | StretchMode | stretchMode | ) |
Definition at line 394 of file QskGradient.cpp.
|
inlinenoexcept |
Definition at line 270 of file QskGradient.h.
|
inlinenoexcept |
Definition at line 250 of file QskGradient.h.
|
noexcept |
Definition at line 327 of file QskGradient.cpp.
|
noexcept |
Definition at line 343 of file QskGradient.cpp.
|
inlinenoexcept |
Definition at line 226 of file QskGradient.h.
QskGradient QskGradient::stretchedTo | ( | const QRectF & | rect | ) | const |
Definition at line 460 of file QskGradient.cpp.
QskGradient QskGradient::stretchedTo | ( | const QSizeF & | size | ) | const |
Definition at line 455 of file QskGradient.cpp.
|
inlinenoexcept |
Definition at line 275 of file QskGradient.h.
void QskGradient::stretchTo | ( | const QRectF & | rect | ) |
Definition at line 399 of file QskGradient.cpp.
QGradient QskGradient::toQGradient | ( | ) | const |
Definition at line 728 of file QskGradient.cpp.
|
inlinenoexcept |
Definition at line 221 of file QskGradient.h.
|
readwrite |
Definition at line 28 of file QskGradient.h.
|
readwrite |
Definition at line 27 of file QskGradient.h.
|
read |
Definition at line 38 of file QskGradient.h.
|
readwrite |
Definition at line 29 of file QskGradient.h.
|
readwrite |
Definition at line 33 of file QskGradient.h.
|
readwrite |
Definition at line 31 of file QskGradient.h.
|
readwrite |
Definition at line 34 of file QskGradient.h.
|
read |
Definition at line 25 of file QskGradient.h.
|
read |
Definition at line 36 of file QskGradient.h.
|
read |
Definition at line 37 of file QskGradient.h.