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