Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSCanvasSprite_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSCanvasSprite_p.h
00003  -------------------
00004  begin                : 06/10/2011
00005  copyright            : (C) 2003-2011 by InfoSiAL S.L.
00006  email                : mail@infosial.com
00007  ***************************************************************************/
00008 /***************************************************************************
00009  *   This program is free software; you can redistribute it and/or modify  *
00010  *   it under the terms of the GNU General Public License as published by  *
00011  *   the Free Software Foundation; version 2 of the License.               *
00012  ***************************************************************************/
00013 /***************************************************************************
00014  Este  programa es software libre. Puede redistribuirlo y/o modificarlo
00015  bajo  los  trminos  de  la  Licencia  Pblica General de GNU   en  su
00016  versin 2, publicada  por  la  Free  Software Foundation.
00017  ***************************************************************************/
00018 
00019 #ifndef AQSCANVASSPRITE_P_H_
00020 #define AQSCANVASSPRITE_P_H_
00021 
00022 #include "AQSCanvasItem_p.h"
00023 #include "AQSCanvasPixmapArray_p.h"
00024 
00025 class AQSCanvasSprite : public AQSCanvasItem
00026 {
00027   Q_OBJECT
00028 
00029   AQ_DECLARE_AQS_VOID(CanvasSprite, CanvasItem);
00030 
00031   //@AQ_BEGIN_DEF_PUB_SLOTS@
00032 public slots:
00033   void setSequence(QCanvasPixmapArray *);
00034   void setSequence(AQSCanvasPixmapArray *);
00035   virtual void move(double, double, int);
00036   void setFrame(int);
00037   virtual void setFrameAnimation(uint = QCanvasSprite::Cycle, int = 1, int = 0);
00038   int frame() const;
00039   int frameCount() const;
00040   virtual int rtti() const;
00041   virtual QRect boundingRect() const;
00042   int width() const;
00043   int height() const;
00044   int leftEdge() const;
00045   int topEdge() const;
00046   int rightEdge() const;
00047   int bottomEdge() const;
00048   int leftEdge(int) const;
00049   int topEdge(int) const;
00050   int rightEdge(int) const;
00051   int bottomEdge(int) const;
00052   QCanvasPixmap *image() const;
00053   virtual QCanvasPixmap *imageAdvanced() const;
00054   QCanvasPixmap *image(int) const;
00055   virtual void advance(int);
00056   virtual void draw(QPainter &);
00057 
00058 protected:
00059   static void *construct(const QSArgumentList &args) {
00060     QMap<int, QStringList> candidates;
00061     candidates[2].append(QString::fromLatin1("QCanvasPixmapArray*,QCanvas*"));
00062     QString sgt(castArgsSignature(args, candidates));
00063     if (sgt == QString::fromLatin1("QCanvasPixmapArray*,QCanvas*"))
00064       return new QCanvasSprite(argValue<QCanvasPixmapArray *>(args[0]),
00065                                argValue<QCanvas *>(args[1]));
00066     return 0;
00067   }
00068 
00069 public:
00070   static QMap<int, QStringList> candidateConstructors() {
00071     QMap<int, QStringList> candidates;
00072     candidates[2].append(QString::fromLatin1("QCanvasPixmapArray*,QCanvas*"));
00073     return candidates;
00074   }
00075   //@AQ_END_DEF_PUB_SLOTS@
00076 };
00077 
00078 //@AQ_BEGIN_IMP_PUB_SLOTS@
00079 inline void AQSCanvasSprite::setSequence(QCanvasPixmapArray *arg0)
00080 {
00081   AQ_CALL_VOID(setSequence(arg0));
00082 }
00083 inline void AQSCanvasSprite::setSequence(AQSCanvasPixmapArray *arg0)
00084 {
00085   AQ_CALL_VOID(setSequence(*arg0));
00086 }
00087 inline void AQSCanvasSprite::move(double arg0,  double arg1,  int arg2)
00088 {
00089   AQ_CALL_VOID(move(arg0, arg1, arg2));
00090 }
00091 inline void AQSCanvasSprite::setFrame(int arg0)
00092 {
00093   AQ_CALL_VOID(setFrame(arg0));
00094 }
00095 inline void AQSCanvasSprite::setFrameAnimation(uint arg0,  int arg1,  int arg2)
00096 {
00097   AQ_CALL_VOID(setFrameAnimation(static_cast<QCanvasSprite::FrameAnimationType>(arg0), arg1, arg2));
00098 }
00099 inline int AQSCanvasSprite::frame() const
00100 {
00101   AQ_CALL_RET_V(frame(), int);
00102 }
00103 inline int AQSCanvasSprite::frameCount() const
00104 {
00105   AQ_CALL_RET_V(frameCount(), int);
00106 }
00107 inline int AQSCanvasSprite::rtti() const
00108 {
00109   AQ_CALL_RET_V(rtti(), int);
00110 }
00111 inline QRect AQSCanvasSprite::boundingRect() const
00112 {
00113   AQ_CALL_RET_V(boundingRect(), QRect);
00114 }
00115 inline int AQSCanvasSprite::width() const
00116 {
00117   AQ_CALL_RET_V(width(), int);
00118 }
00119 inline int AQSCanvasSprite::height() const
00120 {
00121   AQ_CALL_RET_V(height(), int);
00122 }
00123 inline int AQSCanvasSprite::leftEdge() const
00124 {
00125   AQ_CALL_RET_V(leftEdge(), int);
00126 }
00127 inline int AQSCanvasSprite::topEdge() const
00128 {
00129   AQ_CALL_RET_V(topEdge(), int);
00130 }
00131 inline int AQSCanvasSprite::rightEdge() const
00132 {
00133   AQ_CALL_RET_V(rightEdge(), int);
00134 }
00135 inline int AQSCanvasSprite::bottomEdge() const
00136 {
00137   AQ_CALL_RET_V(bottomEdge(), int);
00138 }
00139 inline int AQSCanvasSprite::leftEdge(int arg0) const
00140 {
00141   AQ_CALL_RET_V(leftEdge(arg0), int);
00142 }
00143 inline int AQSCanvasSprite::topEdge(int arg0) const
00144 {
00145   AQ_CALL_RET_V(topEdge(arg0), int);
00146 }
00147 inline int AQSCanvasSprite::rightEdge(int arg0) const
00148 {
00149   AQ_CALL_RET_V(rightEdge(arg0), int);
00150 }
00151 inline int AQSCanvasSprite::bottomEdge(int arg0) const
00152 {
00153   AQ_CALL_RET_V(bottomEdge(arg0), int);
00154 }
00155 inline QCanvasPixmap *AQSCanvasSprite::image() const
00156 {
00157   AQ_CALL_RET(image());
00158 }
00159 inline QCanvasPixmap *AQSCanvasSprite::imageAdvanced() const
00160 {
00161   AQ_CALL_RET(imageAdvanced());
00162 }
00163 inline QCanvasPixmap *AQSCanvasSprite::image(int arg0) const
00164 {
00165   AQ_CALL_RET(image(arg0));
00166 }
00167 inline void AQSCanvasSprite::advance(int arg0)
00168 {
00169   AQ_CALL_VOID(advance(arg0));
00170 }
00171 inline void AQSCanvasSprite::draw(QPainter &arg0)
00172 {
00173   AQ_CALL_VOID(draw(arg0));
00174 }
00175 //@AQ_END_IMP_PUB_SLOTS@
00176 
00177 #endif /* AQSCANVASSPRITE_P_H_ */
00178 // @AQSVOIDPTR@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'