Eneboo - Documentación para desarrolladores
src/flbase/aqsobjects/AQSCanvasItem_p.h
Ir a la documentación de este archivo.
00001 /***************************************************************************
00002  AQSCanvasItem_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  términos  de  la  Licencia  Pública General de GNU   en  su
00016  versión 2, publicada  por  la  Free  Software Foundation.
00017  ***************************************************************************/
00018 
00019 #ifndef AQSCANVASITEM_P_H_
00020 #define AQSCANVASITEM_P_H_
00021 
00022 #include "AQSVoidPtr_p.h"
00023 #include "AQSPainter_p.h"
00024 #include <qcanvas.h>
00025 
00026 class AQSCanvasItem : public AQSVoidPtr
00027 {
00028   Q_OBJECT
00029 
00030   AQ_DECLARE_AQS_VOID(CanvasItem, VoidPtr);
00031 
00032   //@AQ_BEGIN_DEF_PUB_SLOTS@
00033 public slots:
00034   double x() const;
00035   double y() const;
00036   double z() const;
00037   virtual void moveBy(double, double);
00038   void move(double, double);
00039   void setX(double);
00040   void setY(double);
00041   void setZ(double);
00042   bool animated() const;
00043   virtual void setAnimated(bool);
00044   virtual void setVelocity(double, double);
00045   void setXVelocity(double);
00046   void setYVelocity(double);
00047   double xVelocity() const;
00048   double yVelocity() const;
00049   virtual void advance(int);
00050   virtual bool collidesWith(QCanvasItem *) const;
00051   virtual bool collidesWith(AQSCanvasItem *) const;
00052   QCanvasItemList collisions(bool) const;
00053   virtual void setCanvas(QCanvas *);
00054   virtual void draw(QPainter *);
00055   virtual void draw(AQSPainter *);
00056   void show();
00057   void hide();
00058   virtual void setVisible(bool);
00059   bool isVisible() const;
00060   virtual void setSelected(bool);
00061   bool isSelected() const;
00062   virtual void setEnabled(bool);
00063   bool isEnabled() const;
00064   virtual void setActive(bool);
00065   bool isActive() const;
00066   virtual int rtti() const;
00067   virtual QRect boundingRect() const;
00068   virtual QRect boundingRectAdvanced() const;
00069   QCanvas *canvas() const;
00070 
00071 protected:
00072   static void *construct(const QSArgumentList &args) {
00073     return 0;
00074   }
00075   //@AQ_END_DEF_PUB_SLOTS@
00076 };
00077 
00078 //@AQ_BEGIN_IMP_PUB_SLOTS@
00079 inline double AQSCanvasItem::x() const
00080 {
00081   AQ_CALL_RET_V(x(), double);
00082 }
00083 inline double AQSCanvasItem::y() const
00084 {
00085   AQ_CALL_RET_V(y(), double);
00086 }
00087 inline double AQSCanvasItem::z() const
00088 {
00089   AQ_CALL_RET_V(z(), double);
00090 }
00091 inline void AQSCanvasItem::moveBy(double arg0,  double arg1)
00092 {
00093   AQ_CALL_VOID(moveBy(arg0, arg1));
00094 }
00095 inline void AQSCanvasItem::move(double arg0,  double arg1)
00096 {
00097   AQ_CALL_VOID(move(arg0, arg1));
00098 }
00099 inline void AQSCanvasItem::setX(double arg0)
00100 {
00101   AQ_CALL_VOID(setX(arg0));
00102 }
00103 inline void AQSCanvasItem::setY(double arg0)
00104 {
00105   AQ_CALL_VOID(setY(arg0));
00106 }
00107 inline void AQSCanvasItem::setZ(double arg0)
00108 {
00109   AQ_CALL_VOID(setZ(arg0));
00110 }
00111 inline bool AQSCanvasItem::animated() const
00112 {
00113   AQ_CALL_RET_V(animated(), bool);
00114 }
00115 inline void AQSCanvasItem::setAnimated(bool arg0)
00116 {
00117   AQ_CALL_VOID(setAnimated(arg0));
00118 }
00119 inline void AQSCanvasItem::setVelocity(double arg0,  double arg1)
00120 {
00121   AQ_CALL_VOID(setVelocity(arg0, arg1));
00122 }
00123 inline void AQSCanvasItem::setXVelocity(double arg0)
00124 {
00125   AQ_CALL_VOID(setXVelocity(arg0));
00126 }
00127 inline void AQSCanvasItem::setYVelocity(double arg0)
00128 {
00129   AQ_CALL_VOID(setYVelocity(arg0));
00130 }
00131 inline double AQSCanvasItem::xVelocity() const
00132 {
00133   AQ_CALL_RET_V(xVelocity(), double);
00134 }
00135 inline double AQSCanvasItem::yVelocity() const
00136 {
00137   AQ_CALL_RET_V(yVelocity(), double);
00138 }
00139 inline void AQSCanvasItem::advance(int arg0)
00140 {
00141   AQ_CALL_VOID(advance(arg0));
00142 }
00143 inline bool AQSCanvasItem::collidesWith(QCanvasItem *arg0) const
00144 {
00145   AQ_CALL_RET_V(collidesWith(arg0), bool);
00146 }
00147 inline bool AQSCanvasItem::collidesWith(AQSCanvasItem *arg0) const
00148 {
00149   AQ_CALL_RET_V(collidesWith(*arg0), bool);
00150 }
00151 inline QCanvasItemList AQSCanvasItem::collisions(bool arg0) const
00152 {
00153   AQ_CALL_RET_V(collisions(arg0), QCanvasItemList);
00154 }
00155 inline void AQSCanvasItem::setCanvas(QCanvas *arg0)
00156 {
00157   AQ_CALL_VOID(setCanvas(arg0));
00158 }
00159 inline void AQSCanvasItem::draw(QPainter *arg0)
00160 {
00161   AQ_CALL_VOID(draw(*arg0));
00162 }
00163 inline void AQSCanvasItem::draw(AQSPainter *arg0)
00164 {
00165   AQ_CALL_VOID(draw(*arg0));
00166 }
00167 inline void AQSCanvasItem::show()
00168 {
00169   AQ_CALL_VOID(show());
00170 }
00171 inline void AQSCanvasItem::hide()
00172 {
00173   AQ_CALL_VOID(hide());
00174 }
00175 inline void AQSCanvasItem::setVisible(bool arg0)
00176 {
00177   AQ_CALL_VOID(setVisible(arg0));
00178 }
00179 inline bool AQSCanvasItem::isVisible() const
00180 {
00181   AQ_CALL_RET_V(isVisible(), bool);
00182 }
00183 inline void AQSCanvasItem::setSelected(bool arg0)
00184 {
00185   AQ_CALL_VOID(setSelected(arg0));
00186 }
00187 inline bool AQSCanvasItem::isSelected() const
00188 {
00189   AQ_CALL_RET_V(isSelected(), bool);
00190 }
00191 inline void AQSCanvasItem::setEnabled(bool arg0)
00192 {
00193   AQ_CALL_VOID(setEnabled(arg0));
00194 }
00195 inline bool AQSCanvasItem::isEnabled() const
00196 {
00197   AQ_CALL_RET_V(isEnabled(), bool);
00198 }
00199 inline void AQSCanvasItem::setActive(bool arg0)
00200 {
00201   AQ_CALL_VOID(setActive(arg0));
00202 }
00203 inline bool AQSCanvasItem::isActive() const
00204 {
00205   AQ_CALL_RET_V(isActive(), bool);
00206 }
00207 inline int AQSCanvasItem::rtti() const
00208 {
00209   AQ_CALL_RET_V(rtti(), int);
00210 }
00211 inline QRect AQSCanvasItem::boundingRect() const
00212 {
00213   AQ_CALL_RET_V(boundingRect(), QRect);
00214 }
00215 inline QRect AQSCanvasItem::boundingRectAdvanced() const
00216 {
00217   AQ_CALL_RET_V(boundingRectAdvanced(), QRect);
00218 }
00219 inline QCanvas *AQSCanvasItem::canvas() const
00220 {
00221   AQ_CALL_RET(canvas());
00222 }
00223 //@AQ_END_IMP_PUB_SLOTS@
00224 
00225 #endif /* AQSCANVASITEM_P_H_ */
00226 // @AQSVOIDPTR@
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Propiedades Amigas 'defines'