Refactor dali-csharp-binder source files
[platform/core/uifw/dali-csharp-binder.git] / dali-csharp-binder / dali-adaptor / input-method-options-wrap.cpp
1 /*
2  * Copyright (c) 2017 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17
18 // EXTERNAL INCLUDES
19 #include <dali/devel-api/adaptor-framework/input-method-options.h>
20
21 // INTERNAL INCLUDES
22 #include <dali-csharp-binder/common/common.h>
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27
28
29 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_InputMethodOptions() {
30   void * jresult ;
31   Dali::InputMethodOptions *result = 0 ;
32
33   {
34     try {
35       result = (Dali::InputMethodOptions *)new Dali::InputMethodOptions();
36     } CALL_CATCH_EXCEPTION(0);
37   }
38
39   jresult = (void *)result;
40   return jresult;
41 }
42
43
44 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_InputMethodOptions_IsPassword(void * jarg1) {
45   unsigned int jresult ;
46   Dali::InputMethodOptions *arg1 = (Dali::InputMethodOptions *) 0 ;
47   bool result;
48
49   arg1 = (Dali::InputMethodOptions *)jarg1;
50   {
51     try {
52       result = (bool)(arg1)->IsPassword();
53     } CALL_CATCH_EXCEPTION(0);
54   }
55
56   jresult = result;
57   return jresult;
58 }
59
60
61 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_InputMethodOptions_ApplyProperty(void * jarg1, void * jarg2) {
62   Dali::InputMethodOptions *arg1 = (Dali::InputMethodOptions *) 0 ;
63   Dali::Property::Map *arg2 = 0 ;
64
65   arg1 = (Dali::InputMethodOptions *)jarg1;
66   arg2 = (Dali::Property::Map *)jarg2;
67   if (!arg2) {
68     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Property::Map const & type is null", 0);
69     return ;
70   }
71   {
72     try {
73       (arg1)->ApplyProperty((Dali::Property::Map const &)*arg2);
74     } CALL_CATCH_EXCEPTION();
75   }
76
77 }
78
79
80 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_InputMethodOptions_RetrieveProperty(void * jarg1, void * jarg2) {
81   Dali::InputMethodOptions *arg1 = (Dali::InputMethodOptions *) 0 ;
82   Dali::Property::Map *arg2 = 0 ;
83
84   arg1 = (Dali::InputMethodOptions *)jarg1;
85   arg2 = (Dali::Property::Map *)jarg2;
86   if (!arg2) {
87     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Property::Map & type is null", 0);
88     return ;
89   }
90   {
91     try {
92       (arg1)->RetrieveProperty(*arg2);
93     } CALL_CATCH_EXCEPTION();
94   }
95
96 }
97
98
99 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_InputMethodOptions(void * jarg1) {
100   Dali::InputMethodOptions *arg1 = (Dali::InputMethodOptions *) 0 ;
101
102   arg1 = (Dali::InputMethodOptions *)jarg1;
103   {
104     try {
105       delete arg1;
106     } CALL_CATCH_EXCEPTION();
107   }
108
109 }
110
111 #ifdef __cplusplus
112 }
113 #endif
114