now its possible to call ePixmap.setPixmap from python without use of
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Wed, 21 Mar 2007 15:48:17 +0000 (15:48 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Wed, 21 Mar 2007 15:48:17 +0000 (15:48 +0000)
__deref__

lib/gui/epixmap.cpp
lib/gui/epixmap.h

index 4e15b4e..3e396c9 100644 (file)
@@ -19,6 +19,12 @@ void ePixmap::setPixmap(gPixmap *pixmap)
        event(evtChangedPixmap);
 }
 
        event(evtChangedPixmap);
 }
 
+void ePixmap::setPixmap(ePtr<gPixmap> &pixmap)
+{
+       m_pixmap = pixmap;
+       event(evtChangedPixmap);
+}
+
 void ePixmap::setPixmapFromFile(const char *filename)
 {
        loadPNG(m_pixmap, filename);
 void ePixmap::setPixmapFromFile(const char *filename)
 {
        loadPNG(m_pixmap, filename);
index ce1e7a5..04196be 100644 (file)
@@ -10,6 +10,7 @@ public:
        ePixmap(eWidget *parent);
        
        void setPixmap(gPixmap *pixmap);
        ePixmap(eWidget *parent);
        
        void setPixmap(gPixmap *pixmap);
+       void setPixmap(ePtr<gPixmap> &pixmap);
        void setPixmapFromFile(const char *filename);
        void setAlphatest(bool alphatest);
 protected:
        void setPixmapFromFile(const char *filename);
        void setAlphatest(bool alphatest);
 protected: