• Skip to content
  • Skip to link menu
KDE 4.6 API Reference
  • KDE API Reference
  • kdelibs
  • KDE Home
  • Contact Us
 

KDEUI

kpixmapsequenceoverlaypainter.h

Go to the documentation of this file.
00001 /*
00002   Copyright 2009 Sebastian Trueg <trueg@kde.org>
00003 
00004   This library is free software; you can redistribute it and/or
00005   modify it under the terms of the GNU Lesser General Public
00006   License as published by the Free Software Foundation; either
00007   version 2.1 of the License, or (at your option) any later version.
00008 
00009   This library is distributed in the hope that it will be useful,
00010   but WITHOUT ANY WARRANTY; without even the implied warranty of
00011   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012   Lesser General Public License for more details.
00013 
00014   You should have received a copy of the GNU Lesser General Public License
00015   along with this library; see the file COPYING.LIB.  If not, write to
00016   the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017   Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef _K_PIXMAPSEQUENCE_OVERLAY_PAINTER_H_
00021 #define _K_PIXMAPSEQUENCE_OVERLAY_PAINTER_H_
00022 
00023 #include <QtCore/QObject>
00024 #include <QtCore/QPoint>
00025 
00026 #include "kdeui_export.h"
00027 
00028 class KPixmapSequence;
00029 class QWidget;
00030 class QEvent;
00031 class QRect;
00032 
00046 class KDEUI_EXPORT KPixmapSequenceOverlayPainter : public QObject
00047 {
00048     Q_OBJECT
00049 
00050 public:
00054     KPixmapSequenceOverlayPainter(QObject *parent = 0);
00055 
00059     ~KPixmapSequenceOverlayPainter();
00060 
00066     KPixmapSequence sequence() const;
00067 
00073     int interval() const;
00074 
00079     QRect rect() const;
00080 
00085     Qt::Alignment alignment() const;
00086 
00091     QPoint offset() const;
00092 
00093 public Q_SLOTS:
00097     void setSequence(const KPixmapSequence &seq);
00098 
00102     void setInterval(int msecs);
00103 
00107     void setWidget(QWidget *w);
00108 
00120     void setRect(const QRect &rect);
00121 
00128     void setAlignment(Qt::Alignment align);
00129 
00138     void setOffset(const QPoint &offset);
00139 
00145     void start();
00146 
00150     void stop();
00151 
00152 private:
00153     bool eventFilter(QObject *obj, QEvent *event);
00154 
00155     class Private;
00156     Private *const d;
00157 
00158     Q_PRIVATE_SLOT(d, void _k_timeout())
00159 };
00160 
00161 #endif

KDEUI

Skip menu "KDEUI"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.7.3
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal