1 /** Copyright (c) 2017 Samsung Electronics Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
7 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
18 #include <dali/devel-api/adaptor-framework/input-method-options.h>
26 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_InputMethodOptions() {
28 Dali::InputMethodOptions *result = 0 ;
32 result = (Dali::InputMethodOptions *)new Dali::InputMethodOptions();
33 } catch (std::out_of_range& e) {
35 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
37 } catch (std::exception& e) {
39 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
41 } catch (Dali::DaliException e) {
43 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
47 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
52 jresult = (void *)result;
57 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_InputMethodOptions_IsPassword(void * jarg1) {
58 unsigned int jresult ;
59 Dali::InputMethodOptions *arg1 = (Dali::InputMethodOptions *) 0 ;
62 arg1 = (Dali::InputMethodOptions *)jarg1;
65 result = (bool)(arg1)->IsPassword();
66 } catch (std::out_of_range& e) {
68 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
70 } catch (std::exception& e) {
72 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
74 } catch (Dali::DaliException e) {
76 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
80 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
90 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_InputMethodOptions_ApplyProperty(void * jarg1, void * jarg2) {
91 Dali::InputMethodOptions *arg1 = (Dali::InputMethodOptions *) 0 ;
92 Dali::Property::Map *arg2 = 0 ;
94 arg1 = (Dali::InputMethodOptions *)jarg1;
95 arg2 = (Dali::Property::Map *)jarg2;
97 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Property::Map const & type is null", 0);
102 (arg1)->ApplyProperty((Dali::Property::Map const &)*arg2);
103 } catch (std::out_of_range& e) {
105 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
107 } catch (std::exception& e) {
109 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
111 } catch (Dali::DaliException e) {
113 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
117 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
125 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_InputMethodOptions_RetrieveProperty(void * jarg1, void * jarg2) {
126 Dali::InputMethodOptions *arg1 = (Dali::InputMethodOptions *) 0 ;
127 Dali::Property::Map *arg2 = 0 ;
129 arg1 = (Dali::InputMethodOptions *)jarg1;
130 arg2 = (Dali::Property::Map *)jarg2;
132 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Property::Map & type is null", 0);
137 (arg1)->RetrieveProperty(*arg2);
138 } catch (std::out_of_range& e) {
140 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
142 } catch (std::exception& e) {
144 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
146 } catch (Dali::DaliException e) {
148 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
152 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
160 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_InputMethodOptions(void * jarg1) {
161 Dali::InputMethodOptions *arg1 = (Dali::InputMethodOptions *) 0 ;
163 arg1 = (Dali::InputMethodOptions *)jarg1;
167 } catch (std::out_of_range& e) {
169 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
171 } catch (std::exception& e) {
173 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
175 } catch (Dali::DaliException e) {
177 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
181 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;