From: Wonsik Jung Date: Thu, 2 Jan 2020 02:27:04 +0000 (+0900) Subject: Add to set Available Orientations X-Git-Tag: dali_1.5.0~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=866a13f2c8ec7d8917dd983af271a5be324c188b;p=platform%2Fcore%2Fuifw%2Fdali-csharp-binder.git Add to set Available Orientations Add to set Available Orientations. This API is for adding several orientations one time. Change-Id: I43d0b5c523160d3ed7e1cca276e05c9f35f663e0 --- diff --git a/dali-csharp-binder/src/window.cpp b/dali-csharp-binder/src/window.cpp index 05929b1..fc66a31 100755 --- a/dali-csharp-binder/src/window.cpp +++ b/dali-csharp-binder/src/window.cpp @@ -820,6 +820,47 @@ SWIGEXPORT int SWIGSTDCALL CSharp_Dali_Window_GetCurrentOrientation(void * jarg1 return jresult; } +SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Window_SetAvailableOrientations(void * jarg1, int* jarg2, int jarg3) { + Dali::Window* window = (Dali::Window*)jarg1; + if (!window) { + SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Window", 0); + return; + } + int *arg2 = (int *) 0 ; + int count = jarg3; + + arg2 = jarg2; + Dali::Vector< Dali::Window::WindowOrientation> orientations; + orientations.Resize( count ); + for( int i = 0; i(arg2[i]); + } + { + try { + Dali::DevelWindow::SetAvailableOrientations(*window, orientations); + } 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_GetNativeHandle(void * jarg1) { void * jresult ; Dali::Window *arg1 = (Dali::Window *) 0 ;