X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali-csharp-binder%2Fsrc%2Fapplication.cpp;h=516a2bdcb04d25ce39b3e4559d77d3ff85de3298;hb=0267927ddb0c3ffd940e7ca8e64d40ad1333b826;hp=ec1e507a4998b52441d528024179f37a9914d916;hpb=e41e4816274c729a09f2d763d31248d6693c7c95;p=platform%2Fcore%2Fuifw%2Fdali-csharp-binder.git diff --git a/dali-csharp-binder/src/application.cpp b/dali-csharp-binder/src/application.cpp index ec1e507..516a2bd 100755 --- a/dali-csharp-binder/src/application.cpp +++ b/dali-csharp-binder/src/application.cpp @@ -22,6 +22,7 @@ #include "string" #include #include +#include /* Callback for returning strings to C# without leaking memory */ typedef char * (SWIGSTDCALL* SWIG_CSharpStringHelperCallback)(const char *); @@ -703,6 +704,63 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_GetWindow(void * jarg1) { return jresult; } +SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_Application_GetWindowsListSize() { + unsigned int jresult ; + Dali::WindowContainer result; + { + try { + result = Dali::Adaptor::Get().GetWindows(); + jresult = result.size(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(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 jresult; +} + +SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Application_GetWindowsFromList(uint jarg1) { + void * jresult ; + uint index = jarg1; + Dali::WindowContainer result; + + { + try { + result = Dali::Adaptor::Get().GetWindows(); + } catch (std::out_of_range& e) { + { + SWIG_CSharpException(SWIG_IndexError, const_cast(e.what())); return 0; + }; + } catch (std::exception& e) { + { + SWIG_CSharpException(SWIG_RuntimeError, const_cast(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 = new Dali::Window((const Dali::Window &)result[index]); + return jresult; +} SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Application_ReplaceWindow(void * jarg1, void * jarg2, char * jarg3) { Dali::Application *arg1 = (Dali::Application *) 0 ;