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;
43 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
47 jresult = (void *)result;
52 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_InputMethodOptions_IsPassword(void * jarg1) {
53 unsigned int jresult ;
54 Dali::InputMethodOptions *arg1 = (Dali::InputMethodOptions *) 0 ;
57 arg1 = (Dali::InputMethodOptions *)jarg1;
60 result = (bool)(arg1)->IsPassword();
61 } catch (std::out_of_range& e) {
63 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
65 } catch (std::exception& e) {
67 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
71 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
80 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_InputMethodOptions_ApplyProperty(void * jarg1, void * jarg2) {
81 Dali::InputMethodOptions *arg1 = (Dali::InputMethodOptions *) 0 ;
82 Dali::Property::Map *arg2 = 0 ;
84 arg1 = (Dali::InputMethodOptions *)jarg1;
85 arg2 = (Dali::Property::Map *)jarg2;
87 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Property::Map const & type is null", 0);
92 (arg1)->ApplyProperty((Dali::Property::Map const &)*arg2);
93 } catch (std::out_of_range& e) {
95 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
97 } catch (std::exception& e) {
99 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
103 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
110 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_InputMethodOptions_RetrieveProperty(void * jarg1, void * jarg2) {
111 Dali::InputMethodOptions *arg1 = (Dali::InputMethodOptions *) 0 ;
112 Dali::Property::Map *arg2 = 0 ;
114 arg1 = (Dali::InputMethodOptions *)jarg1;
115 arg2 = (Dali::Property::Map *)jarg2;
117 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Property::Map & type is null", 0);
122 (arg1)->RetrieveProperty(*arg2);
123 } catch (std::out_of_range& e) {
125 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
127 } catch (std::exception& e) {
129 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
133 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
140 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_InputMethodOptions_CompareAndSet(void * jarg1, int jarg2, void * jarg3, void * jarg4) {
141 unsigned int jresult ;
142 Dali::InputMethodOptions *arg1 = (Dali::InputMethodOptions *) 0 ;
143 Dali::InputMethod::Category::Type arg2 ;
144 Dali::InputMethodOptions *arg3 = 0 ;
148 arg1 = (Dali::InputMethodOptions *)jarg1;
149 arg2 = (Dali::InputMethod::Category::Type)jarg2;
150 arg3 = (Dali::InputMethodOptions *)jarg3;
152 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::InputMethodOptions const & type is null", 0);
157 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "int & type is null", 0);
162 result = (bool)(arg1)->CompareAndSet(arg2,(Dali::InputMethodOptions const &)*arg3,*arg4);
163 } catch (std::out_of_range& e) {
165 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
167 } catch (std::exception& e) {
169 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
173 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
182 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_InputMethodOptions(void * jarg1) {
183 Dali::InputMethodOptions *arg1 = (Dali::InputMethodOptions *) 0 ;
185 arg1 = (Dali::InputMethodOptions *)jarg1;
189 } catch (std::out_of_range& e) {
191 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
193 } catch (std::exception& e) {
195 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
199 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;