Eneboo - Documentación para desarrolladores
|
00001 /*************************************************************************** 00002 AQSCanvasPixmap_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 AQSCANVASPIXMAP_P_H_ 00020 #define AQSCANVASPIXMAP_P_H_ 00021 00022 #include "AQSPixmap_p.h" 00023 #include <qcanvas.h> 00024 00025 class AQSCanvasPixmap : public AQSPixmap 00026 { 00027 Q_OBJECT 00028 00029 AQ_DECLARE_AQS_VOID(CanvasPixmap, Pixmap); 00030 00031 //@AQ_BEGIN_DEF_PUB_SLOTS@ 00032 public slots: 00033 int offsetX() const; 00034 int offsetY() const; 00035 void setOffset(int, int); 00036 00037 protected: 00038 static void *construct(const QSArgumentList &args) { 00039 QMap<int, QStringList> candidates; 00040 candidates[1].append(QString::fromLatin1("QString")); 00041 candidates[1].append(QString::fromLatin1("QImage*")); 00042 candidates[2].append(QString::fromLatin1("QPixmap*,QPoint")); 00043 QString sgt(castArgsSignature(args, candidates)); 00044 if (sgt == QString::fromLatin1("QString")) 00045 return new QCanvasPixmap(*(argValue<QString *>(args[0]))); 00046 if (sgt == QString::fromLatin1("QImage*")) 00047 return new QCanvasPixmap(*argValue<QImage *>(args[0])); 00048 if (sgt == QString::fromLatin1("QPixmap*,QPoint")) 00049 return new QCanvasPixmap(*argValue<QPixmap *>(args[0]), 00050 *(argValue<QPoint *>(args[1]))); 00051 return 0; 00052 } 00053 00054 public: 00055 static QMap<int, QStringList> candidateConstructors() { 00056 QMap<int, QStringList> candidates; 00057 candidates[1].append(QString::fromLatin1("QString")); 00058 candidates[1].append(QString::fromLatin1("QImage*")); 00059 candidates[2].append(QString::fromLatin1("QPixmap*,QPoint")); 00060 return candidates; 00061 } 00062 //@AQ_END_DEF_PUB_SLOTS@ 00063 }; 00064 00065 //@AQ_BEGIN_IMP_PUB_SLOTS@ 00066 inline int AQSCanvasPixmap::offsetX() const 00067 { 00068 AQ_CALL_RET_V(offsetX(), int); 00069 } 00070 inline int AQSCanvasPixmap::offsetY() const 00071 { 00072 AQ_CALL_RET_V(offsetY(), int); 00073 } 00074 inline void AQSCanvasPixmap::setOffset(int arg0, int arg1) 00075 { 00076 AQ_CALL_VOID(setOffset(arg0, arg1)); 00077 } 00078 //@AQ_END_IMP_PUB_SLOTS@ 00079 00080 #endif /* AQSCANVASPIXMAP_P_H_ */ 00081 // @AQSVOIDPTR@