// EXTERNAL INCLUDES
#include <Ecore_X.h>
-#include <pixmap-image.h>
// INTERNAL INCLUDES
+#include <pixmap-image.h>
namespace Dali
{
namespace Adaptor
{
-class Adaptor;
class EglImageExtensions;
/**
* @param[in] width The width of the image.
* @param[in] height The height of the image.
* @param[in] depth color depth of the pixmap
- * @param[in] adaptor reference to dali adaptor
* @param[in] pixmap contains either: pixmap of type X11 Pixmap , a Ecore_X_Pixmap or is empty
* @return A smart-pointer to a newly allocated image.
*/
static PixmapImage* New(unsigned int width,
unsigned int height,
Dali::PixmapImage::ColorDepth depth,
- Dali::Adaptor& adaptor,
Any pixmap);
- /**
- * @copydoc Dali::PixmapImage::GetPixmap()
- */
- Any GetPixmap(Dali::PixmapImage::PixmapAPI api) const;
-
- /**
- * @copydoc Dali::PixmapImage::GetDisplay()
- */
- Any GetDisplay() const;
-
/**
* @copydoc Dali::PixmapImage::GetPixels()
*/
* @param[in] width The width of the image.
* @param[in] height The height of the image.
* @param[in] colour depth of the pixmap
- * @param[in] adaptor a reference to Dali adaptor
* @param[in] pixmap contains either: pixmap of type X11 Pixmap , a Ecore_X_Pixmap or is empty
*/
PixmapImage(unsigned int width,
unsigned int height,
Dali::PixmapImage::ColorDepth depth,
- Dali::Adaptor &adaptor,
Any pixmap);
/**
*/
void GetPixmapDetails();
- /**
- * Returns the egl image extensions class from the adaptor
- * @return reference to egl image extensionsa
- */
- EglImageExtensions* GetEglImageExtensions() const;
-
private:
unsigned int mWidth; ///< pixmap width
unsigned int mHeight; ///< pixmap heights
bool mOwnPixmap; ///< Whether we created pixmap or not
Ecore_X_Pixmap mPixmap; ///< From Xlib
- Ecore_X_Display* mDisplay; ///< x-connection used to create pixmap (if it was not created outside of PixmapImage)
Pixel::Format mPixelFormat; ///< pixmap pixel format
Dali::PixmapImage::ColorDepth mColorDepth; ///< color depth of pixmap
- Adaptor& mAdaptor; ///< adaptor
void* mEglImageKHR; ///< From EGL extension
+ EglImageExtensions* mEglImageExtensions; ///< The EGL Image Extensions
};
} // namespace Adaptor