Dali::Toolkit::ImageView* result = 0;
{
try {
- result = (Dali::Toolkit::ImageView*)&(arg1)->GetFavicon();
+ Dali::Toolkit::ImageView favicon = (arg1)->GetFavicon();
+ if (favicon)
+ {
+ result = new Dali::Toolkit::ImageView((const Dali::Toolkit::ImageView &)favicon);
+ }
} CALL_CATCH_EXCEPTION(0);
}
return result;
SWIGEXPORT void *SWIGSTDCALL CSharp_Dali_WebView_GetScreenshot(void * jarg1, void * jarg2, float jarg3) {
Dali::Toolkit::WebView *arg1 = (Dali::Toolkit::WebView *)jarg1;
Dali::Rect<int32_t> *arg = (Dali::Rect<int32_t> *)jarg2;
- Dali::Toolkit::ImageView result;
+ Dali::Toolkit::ImageView* result = 0;
{
try {
- result = (arg1)->GetScreenshot(*arg, jarg3);
+ Dali::Toolkit::ImageView screenshot = (arg1)->GetScreenshot(*arg, jarg3);
+ if (screenshot)
+ {
+ result = new Dali::Toolkit::ImageView((const Dali::Toolkit::ImageView &)screenshot);
+ }
} CALL_CATCH_EXCEPTION(0);
}
- void * jresult =
- new Dali::Toolkit::ImageView((const Dali::Toolkit::ImageView &)result);
- return jresult;
+ return result;
}
using SWIG_CallbackWebViewScreenshotCaptured = void(SWIGSTDCALL *)(Dali::Toolkit::ImageView *);
SWIG_CallbackWebViewScreenshotCaptured swig_callbackOnWebViewScreenshotCaptured;
void OnWebViewScreenshotCapturedCallback(Dali::Toolkit::ImageView imageView) {
- Dali::Toolkit::ImageView *pImageView = &imageView;
+ if (!imageView)
+ return;
+
+ Dali::Toolkit::ImageView* pImageView = &imageView;
swig_callbackOnWebViewScreenshotCaptured(pImageView);
}
Dali::Window arg1 ;
Dali::WindowNotificationLevel arg2 ;
Dali::Window *argp1 ;
- bool result;
+ int result;
argp1 = (Dali::Window *)jarg1;
if (!argp1) {
arg2 = (Dali::WindowNotificationLevel)jarg2;
{
try {
- result = (bool)arg1.SetNotificationLevel(arg2);
+ result = (int)arg1.SetNotificationLevel(arg2);
} catch (std::out_of_range& e) {
{
SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
Dali::Window arg1 ;
Dali::WindowScreenOffMode arg2 ;
Dali::Window *argp1 ;
- bool result;
+ int result;
argp1 = (Dali::Window *)jarg1;
if (!argp1) {
arg2 = (Dali::WindowScreenOffMode)jarg2;
{
try {
- result = (bool)arg1.SetScreenOffMode(arg2);
+ result = (int)arg1.SetScreenOffMode(arg2);
} catch (std::out_of_range& e) {
{
SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
Dali::Window arg1 ;
int arg2 ;
Dali::Window *argp1 ;
- bool result;
+ int result;
argp1 = (Dali::Window *)jarg1;
if (!argp1) {
arg2 = (int)jarg2;
{
try {
- result = (bool)arg1.SetBrightness(arg2);
+ result = (int)arg1.SetBrightness(arg2);
} catch (std::out_of_range& e) {
{
SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;