114 #if defined(Q_WS_WIN) && !defined(Q_WS_WINCE) 148 #if defined(Q_OS_WIN) && !defined(Q_OS_WINCE) 149 qApp->installEventFilter(
this);
159 qApp->installEventFilter(
this);
255 #if defined(Q_OS_WIN) && !defined(Q_OS_WINCE) 258 qApp->removeEventFilter(
this);
268 qApp->removeEventFilter(
this);
292 #endif // defined(Q_OS_WIN) && !defined(Q_OS_WINCE) 301 const int ia = 256 -
a;
313 for (
int sy = 0; sy < sh; sy++) {
317 for (
int sx = 0; sx < sw; sx++) {
383 :
QWidget(0, f), orientation(orient)
476 qApp->installEventFilter(
this);
537 qApp->removeEventFilter(
this);
611 #include "qeffects.moc" 613 #endif //QT_NO_EFFECTS
The QPainter class performs low-level painting on widgets and other paint devices.
QImage toImage() const
Converts the pixmap to a QImage.
The QApplication class manages the GUI application's control flow and main settings.
static QPixmap fromImage(const QImage &image, Qt::ImageConversionFlags flags=Qt::AutoColor)
Converts the given image to a pixmap using the specified flags to control the conversion.
The QKeyEvent class describes a key event.
QImage copy(const QRect &rect=QRect()) const
Returns a sub-area of the image as a new image.
Q_DECL_CONSTEXPR const T & qMin(const T &a, const T &b)
#define QT_END_NAMESPACE
This macro expands to.
QRollEffect(QWidget *w, Qt::WindowFlags f, DirFlags orient)
static QRollEffect * q_roll
bool isNull() const
Returns true if it is a null image, otherwise returns false.
int width() const
Returns the width of the rectangle.
int bytesPerLine() const
Returns the number of bytes per image scanline.
long ASN1_INTEGER_get ASN1_INTEGER * a
QPointer< QWidget > widget
int height() const
Returns the height of the rectangle.
The QObject class is the base class of all Qt objects.
The QElapsedTimer class provides a fast way to calculate elapsed times.
qint64 elapsed() const
Returns the number of milliseconds since this QElapsedTimer was last started.
Q_DECL_CONSTEXPR const T & qMax(const T &a, const T &b)
Q_GUI_EXPORT_INLINE int qRed(QRgb rgb)
static QAlphaWidget * q_blend
int key() const
Returns the code of the key that was pressed or released.
int width() const
Returns the width.
#define QT_BEGIN_NAMESPACE
This macro expands to.
void qScrollEffect(QWidget *w, QEffects::DirFlags orient, int time)
Scroll widget w in time ms.
static bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
Creates a connection of the given type from the signal in the sender object to the method in the rece...
The QImage class provides a hardware-independent image representation that allows direct access to th...
static void sendPostedEvents()
int depth() const
Returns the depth of the image.
Q_GUI_EXPORT_INLINE int qBlue(QRgb rgb)
virtual bool eventFilter(QObject *, QEvent *)
Filters events if this object has been installed as an event filter for the watched object...
static QDesktopWidget * desktop()
Returns the desktop widget (also called the root window).
uchar * bits()
Returns a pointer to the first pixel data.
void closeEvent(QCloseEvent *)
This event handler is called with the given event when Qt receives a window close request for a top-l...
int width() const
Returns the width of the image.
int y() const
Returns the y-coordinate of the rectangle's top edge.
int x() const
Returns the x-coordinate of the rectangle's left edge.
Q_GUI_EXPORT_INLINE QRgb qRgb(int r, int g, int b)
int height() const
Returns the height.
int height() const
Returns the height of the image.
The QPixmap class is an off-screen image representation that can be used as a paint device...
Q_GUI_EXPORT_INLINE int qGreen(QRgb rgb)
void drawPixmap(const QRectF &targetRect, const QPixmap &pixmap, const QRectF &sourceRect)
Draws the rectangular portion source of the given pixmap into the given target in the paint device...
void accept()
Sets the accept flag of the event object, the equivalent of calling setAccepted(true).
static QPixmap grabWindow(WId, int x=0, int y=0, int w=-1, int h=-1)
Creates and returns a pixmap constructed by grabbing the contents of the given window restricted by Q...
The QTimer class provides repetitive and single-shot timers.
void paintEvent(QPaintEvent *)
This event handler can be reimplemented in a subclass to receive paint events passed in event...
The QPaintEvent class contains event parameters for paint events.
void stop()
Stops the timer.
void qFadeEffect(QWidget *w, int time)
Fade in widget w in time ms.
void start(int msec)
Starts or restarts the timer with a timeout interval of msec milliseconds.
The QEvent class is the base class of all event classes.
Type type() const
Returns the event type.
void start()
Starts this timer.
void deleteLater()
Schedules this object for deletion.
The QCloseEvent class contains parameters that describe a close event.
static QPixmap grabWidget(QWidget *widget, const QRect &rect)
Creates a pixmap and paints the given widget, restricted by the given rectangle, in it...
Q_DECL_CONSTEXPR int qRound(qreal d)