From: Jiyun Yang Date: Mon, 12 Nov 2018 10:44:15 +0000 (+0900) Subject: Add binding function for Window::SetPositionSize() X-Git-Tag: dali_1.3.51~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F95%2F192895%2F2;p=platform%2Fcore%2Fuifw%2Fdali-csharp-binder.git Add binding function for Window::SetPositionSize() Window::SetPositionSize() is an in-house API for atomic "move" and "resize" of the window. Change-Id: I64017a6da47edc89141daa20926d742d55860357 Signed-off-by: Jiyun Yang --- diff --git a/dali-csharp-binder/src/window.cpp b/dali-csharp-binder/src/window.cpp index 6c7f0be..0ff624b 100755 --- a/dali-csharp-binder/src/window.cpp +++ b/dali-csharp-binder/src/window.cpp @@ -20,6 +20,7 @@ #include "common.h" #include +#include #include #include @@ -2452,6 +2453,43 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Window_GetPosition(void * jarg1) { return jresult; } +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_SetPositionSize(void* jarg1, void* jarg2) +{ + Dali::Window* window = (Dali::Window*)jarg1; + if (!window) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0); + return ; + } + + Dali::Rect* positionSize = (Dali::Rect*)jarg2; + if (!positionSize) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Rect< int > const & type is null", 0); + return ; + } + { + try { + Dali::DevelWindow::SetPositionSize(*window, *positionSize); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return ; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(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_Window_SetTransparency(void * jarg1, unsigned int jarg2) { Dali::Window arg1 ; bool arg2 ;