#include <dali/public-api/adaptor-framework/timer.h>
#include <dali/public-api/adaptor-framework/style-change.h>
#include <dali/devel-api/adaptor-framework/drag-and-drop-detector.h>
-#include <dali/devel-api/adaptor-framework/application-extensions.h>
#include <dali/devel-api/adaptor-framework/environment-variable.h>
#include <dali/devel-api/images/nine-patch-image.h>
arg6 = (Dali::PixelData::ReleaseFunction)jarg6;
{
try {
- result = Dali::PixelData::New(arg1,arg2,arg3,arg4,arg5,arg6);
+ auto pixelBuffer = new unsigned char[jarg2];
+ memcpy( pixelBuffer, arg1, arg2);
+ result = Dali::PixelData::New(pixelBuffer,arg2,arg3,arg4,arg5,arg6);
} catch (std::out_of_range& e) {
{
SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
return jresult;
}
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_ApplicationExtensions__SWIG_0() {
- void * jresult ;
- Dali::ApplicationExtensions *result = 0 ;
-
- {
- try {
- result = (Dali::ApplicationExtensions *)new Dali::ApplicationExtensions();
- } 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;
- };
- }
- }
-
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_ApplicationExtensions__SWIG_1(void * jarg1) {
- void * jresult ;
- Dali::Application *arg1 = (Dali::Application *) 0 ;
- Dali::ApplicationExtensions *result = 0 ;
-
- arg1 = (Dali::Application *)jarg1;
- {
- try {
- result = (Dali::ApplicationExtensions *)new Dali::ApplicationExtensions(arg1);
- } 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;
- };
- }
- }
-
- jresult = (void *)result;
- return jresult;
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_ApplicationExtensions(void * jarg1) {
- Dali::ApplicationExtensions *arg1 = (Dali::ApplicationExtensions *) 0 ;
-
- arg1 = (Dali::ApplicationExtensions *)jarg1;
- {
- try {
- delete arg1;
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
- };
- } catch (Dali::DaliException e) {
- {
- SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
- };
- }
- }
-
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ApplicationExtensions_Init(void * jarg1) {
- Dali::ApplicationExtensions *arg1 = (Dali::ApplicationExtensions *) 0 ;
-
- arg1 = (Dali::ApplicationExtensions *)jarg1;
- {
- try {
- (arg1)->Init();
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
- };
- } catch (Dali::DaliException e) {
- {
- SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
- };
- }
- }
-
-}
-
-SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ApplicationExtensions_Start(void * jarg1) {
- Dali::ApplicationExtensions *arg1 = (Dali::ApplicationExtensions *) 0 ;
-
- arg1 = (Dali::ApplicationExtensions *)jarg1;
- {
- try {
- (arg1)->Start();
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
- };
- } catch (DaliException e) { SWIG_CSharpException(SWIG_UnknownError, e.condition); return ; } catch (...) { SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ; }
- }
-}
-
-SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ApplicationExtensions_Terminate(void * jarg1) {
- Dali::ApplicationExtensions *arg1 = (Dali::ApplicationExtensions *) 0 ;
-
- arg1 = (Dali::ApplicationExtensions *)jarg1;
- {
- try {
- (arg1)->Terminate();
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
- };
- } catch (Dali::DaliException e) {
- {
- SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
- };
- }
- }
-
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ApplicationExtensions_Pause(void * jarg1) {
- Dali::ApplicationExtensions *arg1 = (Dali::ApplicationExtensions *) 0 ;
-
- arg1 = (Dali::ApplicationExtensions *)jarg1;
- {
- try {
- (arg1)->Pause();
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
- };
- } catch (Dali::DaliException e) {
- {
- SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
- };
- }
- }
-
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ApplicationExtensions_Resume(void * jarg1) {
- Dali::ApplicationExtensions *arg1 = (Dali::ApplicationExtensions *) 0 ;
-
- arg1 = (Dali::ApplicationExtensions *)jarg1;
- {
- try {
- (arg1)->Resume();
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
- };
- } catch (Dali::DaliException e) {
- {
- SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
- };
- }
- }
-
-}
-
-
-SWIGEXPORT void SWIGSTDCALL CSharp_Dali_ApplicationExtensions_LanguageChange(void * jarg1) {
- Dali::ApplicationExtensions *arg1 = (Dali::ApplicationExtensions *) 0 ;
-
- arg1 = (Dali::ApplicationExtensions *)jarg1;
- {
- try {
- (arg1)->LanguageChange();
- } catch (std::out_of_range& e) {
- {
- SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
- };
- } catch (std::exception& e) {
- {
- SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
- };
- } catch (Dali::DaliException e) {
- {
- SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
- };
- } catch (...) {
- {
- SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
- };
- }
- }
-
-}
-
-
-
SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_TimerSignalType_Empty(void * jarg1) {
unsigned int jresult ;
Dali::Signal< bool () > *arg1 = (Dali::Signal< bool () > *) 0 ;
return jresult;
}
+SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_GetOriginalImageSize(char * jarg1) {
+ void * jresult ;
+ std::string *arg1 = 0 ;
+ Dali::ImageDimensions result;
+
+ if (!jarg1) {
+ SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
+ return 0;
+ }
+ std::string arg1_str(jarg1);
+ arg1 = &arg1_str;
+ {
+ try {
+ result = Dali::GetOriginalImageSize((std::string const &)*arg1);
+ } 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 (...) {
+ {
+ SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
+ };
+ }
+ }
+ jresult = new Dali::ImageDimensions((const Dali::ImageDimensions &)result);
+
+ return jresult;
+}
SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_DownloadImageSynchronously__SWIG_0(char * jarg1, void * jarg2, int jarg3, int jarg4, unsigned int jarg5) {
void * jresult ;
}
}
+SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WebView_AddJavaScriptMessageHandler(void* jarg1, char* jarg2, void* jarg3)
+{
+ if (!jarg2) {
+ SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "null string", 0);
+ return;
+ }
+
+ Dali::Toolkit::WebView* webview = (Dali::Toolkit::WebView *) jarg1;
+ std::string exposedObjectName = jarg2;
+ void (*handler)(char*) = (void (*)(char*)) jarg3;
+
+ {
+ try {
+ webview->AddJavaScriptMessageHandler(exposedObjectName, [handler](const std::string& message) {
+ handler(SWIG_csharp_string_callback(message.c_str()));
+ });
+ } catch (std::out_of_range& e) {
+ {
+ SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
+ };
+ } catch (std::exception& e) {
+ {
+ SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
+ };
+ } catch (Dali::DaliException e) {
+ {
+ SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
+ };
+ } catch (...) {
+ {
+ SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
+ };
+ }
+ }
+}
+
SWIGEXPORT void SWIGSTDCALL CSharp_Dali_WebView_ClearHistory(void * jarg1) {
Dali::Toolkit::WebView *arg1 = (Dali::Toolkit::WebView *) 0 ;