#include <dali/devel-api/update/frame-callback-interface.h>
#include <dali/devel-api/update/update-proxy.h>
+#include <dali-toolkit/public-api/image-loader/image.h>
+
// add here SWIG version check
return jresult;
}
+SWIGEXPORT char* SWIGSTDCALL CSharp_Dali_PixelData_GenerateUrl(void* handle)
+{
+ std::string url = "";
+ Dali::PixelData* pixelData = (Dali::PixelData*)handle;
+
+ if (!pixelData)
+ {
+ SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "some argument is null", 0);
+ return 0;
+ }
+ {
+ try
+ {
+ url = Dali::Toolkit::Image::GenerateUrl(*pixelData);
+ }
+ catch (std::out_of_range& e)
+ {
+ SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what()));
+ return 0;
+ }
+ catch (std::exception& e)
+ {
+ SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what()));
+ return 0;
+ }
+ catch (Dali::DaliException e)
+ {
+ SWIG_CSharpException(SWIG_UnknownError, e.condition);
+ return 0;
+ }
+ catch (...)
+ {
+ SWIG_CSharpException(SWIG_UnknownError, "unknown error");
+ return 0;
+ }
+ }
+ return SWIG_csharp_string_callback( (const char *)url.c_str() );
+}
+
SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_POSITIVE_X_get() {
unsigned int jresult ;
return jresult;
}
+SWIGEXPORT char* SWIGSTDCALL CSharp_Dali_NativeImageSource_GenerateUrl(void* handle)
+{
+ std::string url = "";
+ NativeImageSource* nativeImageSource = (NativeImageSource*)handle;
+
+ if (!nativeImageSource)
+ {
+ SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "some argument is null", 0);
+ return 0;
+ }
+ {
+ try
+ {
+ url = Dali::Toolkit::Image::GenerateUrl(nativeImageSource);
+ }
+ catch (std::out_of_range& e)
+ {
+ SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what()));
+ return 0;
+ }
+ catch (std::exception& e)
+ {
+ SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what()));
+ return 0;
+ }
+ catch (Dali::DaliException e)
+ {
+ SWIG_CSharpException(SWIG_UnknownError, e.condition);
+ return 0;
+ }
+ catch (...)
+ {
+ SWIG_CSharpException(SWIG_UnknownError, "unknown error");
+ return 0;
+ }
+ }
+ return SWIG_csharp_string_callback( (const char *)url.c_str() );
+}
+
#ifdef __cplusplus
}