#include <qwindowsvistastyle_p.h>
Definition at line 140 of file qwindowsvistastyle_p.h.
◆ QWindowsVistaAnimation()
QWindowsVistaAnimation::QWindowsVistaAnimation |
( |
| ) |
|
|
inline |
◆ ~QWindowsVistaAnimation()
virtual QWindowsVistaAnimation::~QWindowsVistaAnimation |
( |
| ) |
|
|
inlinevirtual |
◆ drawBlendedImage()
void QWindowsVistaAnimation::drawBlendedImage |
( |
QPainter * |
painter, |
|
|
QRect |
rect, |
|
|
float |
alpha |
|
) |
| |
|
protected |
- Warning
- This function is not part of the public interface.
Helperfunction to paint the current transition state between two animation frames.
The result is a blended image consisting of ((alpha)*_primaryImage)
- ((1-alpha)*_secondaryImage)
Definition at line 216 of file qwindowsvistastyle.cpp.
Referenced by setStartTime().
223 const int a =
qRound(alpha*256);
224 const int ia = 256 -
a;
234 for (
int sy = 0; sy < sh; sy++) {
238 for (
int sx = 0; sx < sw; sx++) {
Q_GUI_EXPORT_INLINE int qAlpha(QRgb rgb)
bool isNull() const
Returns true if it is a null image, otherwise returns false.
int bytesPerLine() const
Returns the number of bytes per image scanline.
long ASN1_INTEGER_get ASN1_INTEGER * a
Q_GUI_EXPORT_INLINE int qRed(QRgb rgb)
Q_GUI_EXPORT_INLINE QRgb qRgba(int r, int g, int b, int a)
int depth() const
Returns the depth of the image.
Q_GUI_EXPORT_INLINE int qBlue(QRgb rgb)
uchar * bits()
Returns a pointer to the first pixel data.
int width() const
Returns the width of the image.
int height() const
Returns the height of the image.
void drawImage(const QRectF &targetRect, const QImage &image, const QRectF &sourceRect, Qt::ImageConversionFlags flags=Qt::AutoColor)
Q_GUI_EXPORT_INLINE int qGreen(QRgb rgb)
Q_DECL_CONSTEXPR int qRound(qreal d)
◆ paint()
◆ running()
bool QWindowsVistaAnimation::running |
( |
| ) |
const |
|
inline |
◆ setRunning()
void QWindowsVistaAnimation::setRunning |
( |
bool |
val | ) |
|
|
inline |
◆ setStartTime()
void QWindowsVistaAnimation::setStartTime |
( |
const QTime & |
startTime | ) |
|
|
inline |
◆ setWidget()
void QWindowsVistaAnimation::setWidget |
( |
QWidget * |
widget | ) |
|
|
inline |
◆ startTime()
const QTime& QWindowsVistaAnimation::startTime |
( |
| ) |
const |
|
inline |
◆ widget()
QWidget* QWindowsVistaAnimation::widget |
( |
| ) |
const |
|
inline |
◆ _primaryImage
QImage QWindowsVistaAnimation::_primaryImage |
|
protected |
◆ _running
bool QWindowsVistaAnimation::_running |
|
protected |
◆ _secondaryImage
QImage QWindowsVistaAnimation::_secondaryImage |
|
protected |
◆ _startTime
QTime QWindowsVistaAnimation::_startTime |
|
protected |
◆ _tempImage
QImage QWindowsVistaAnimation::_tempImage |
|
protected |
◆ _widget
The documentation for this class was generated from the following files: