recover PixmapImage::GetPixmap() without any parameter 72/32572/1
authorYoonsang Lee <ysang114.lee@samsung.com>
Fri, 19 Dec 2014 06:15:15 +0000 (15:15 +0900)
committerYoonsang Lee <ysang114.lee@samsung.com>
Fri, 19 Dec 2014 06:15:52 +0000 (15:15 +0900)
Change-Id: Iae97934376eb91ba1cc511fe751a6479aad80075

adaptors/public-api/adaptor-framework/pixmap-image.cpp
adaptors/public-api/adaptor-framework/pixmap-image.h
adaptors/x11/pixmap-image-impl-x.cpp
adaptors/x11/pixmap-image-impl.h

index e4b16eb..fcc8715 100644 (file)
@@ -34,6 +34,11 @@ PixmapImagePtr PixmapImage::New( unsigned int width, unsigned int height, ColorD
   return image;
 }
 
+Any PixmapImage::GetPixmap()
+{
+  return mImpl->GetPixmap();
+}
+
 PixmapImagePtr PixmapImage::New( Any pixmap )
 {
   PixmapImagePtr image = new PixmapImage(0, 0, COLOR_DEPTH_DEFAULT, pixmap);
index e0425a7..4960a65 100644 (file)
@@ -85,6 +85,13 @@ public:
   static PixmapImagePtr New( Any pixmap );
 
   /**
+   * @brief Retrieve the internal pixmap
+   *
+   * @return pixmap any object containing the internal pixmap
+   */
+  Any GetPixmap();
+
+  /**
    * @brief Get a copy of the pixels used by PixmapImage.
    *
    * This is only supported for 24 bit RGB and 32 bit RGBA internal formats
index c200b64..3f96cc6 100644 (file)
@@ -136,6 +136,12 @@ PixmapImage::~PixmapImage()
   }
 }
 
+Any PixmapImage::GetPixmap() const
+{
+  // return ecore x11 type
+  return Any(mPixmap);
+}
+
 bool PixmapImage::GetPixels(std::vector<unsigned char>& pixbuf, unsigned& width, unsigned& height, Pixel::Format& pixelFormat) const
 {
   DALI_ASSERT_DEBUG(sizeof(unsigned) == 4);
index bd47110..215323d 100644 (file)
@@ -54,6 +54,10 @@ public:
                           unsigned int height,
                           Dali::PixmapImage::ColorDepth depth,
                           Any pixmap);
+  /**
+   * @copydoc Dali::PixmapImage::GetPixmap()
+   */
+  Any GetPixmap() const;
 
   /**
    * @copydoc Dali::PixmapImage::GetPixels()