Support legacy way to create InputMethodContext
[platform/core/uifw/dali-csharp-binder.git] / dali-csharp-binder / src / extents.cpp
1 #ifndef CSHARP_EXTENTS
2 #define CSHARP_EXTENTS
3 #endif
4
5 #include "common.h"
6 #include <dali/public-api/common/extents.h>
7
8
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12
13 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_Extents__SWIG_0() {
14   void * jresult ;
15   Dali::Extents *result = 0 ;
16
17   {
18     try {
19       result = (Dali::Extents *)new Dali::Extents();
20     } catch (std::out_of_range& e) {
21       {
22         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
23       };
24     } catch (std::exception& e) {
25       {
26         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
27       };
28     } catch (...) {
29       {
30         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
31       };
32     }
33   }
34   jresult = (void *)result;
35   return jresult;
36 }
37
38
39 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_Extents__SWIG_1(void * jarg1) {
40   void * jresult ;
41   Dali::Extents *arg1 = 0 ;
42   Dali::Extents *result = 0 ;
43
44   arg1 = (Dali::Extents *)jarg1;
45   if (!arg1) {
46     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Extents const & type is null", 0);
47     return 0;
48   }
49   {
50     try {
51       result = (Dali::Extents *)new Dali::Extents((Dali::Extents const &)*arg1);
52     } catch (std::out_of_range& e) {
53       {
54         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
55       };
56     } catch (std::exception& e) {
57       {
58         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
59       };
60     } catch (...) {
61       {
62         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
63       };
64     }
65   }
66   jresult = (void *)result;
67   return jresult;
68 }
69
70
71 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_Extents__SWIG_2(unsigned short jarg1, unsigned short jarg2, unsigned short jarg3, unsigned short jarg4) {
72   void * jresult ;
73   uint16_t arg1 ;
74   uint16_t arg2 ;
75   uint16_t arg3 ;
76   uint16_t arg4 ;
77   Dali::Extents *result = 0 ;
78
79   arg1 = (uint16_t)jarg1;
80   arg2 = (uint16_t)jarg2;
81   arg3 = (uint16_t)jarg3;
82   arg4 = (uint16_t)jarg4;
83   {
84     try {
85       result = (Dali::Extents *)new Dali::Extents(arg1, arg2, arg3, arg4);
86     } catch (std::out_of_range& e) {
87       {
88         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
89       };
90     } catch (std::exception& e) {
91       {
92         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
93       };
94     } catch (...) {
95       {
96         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
97       };
98     }
99   }
100   jresult = (void *)result;
101   return jresult;
102 }
103
104
105 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Extents_Assign__SWIG_0(void * jarg1, void * jarg2) {
106   void * jresult ;
107   Dali::Extents *arg1 = (Dali::Extents *) 0 ;
108   Dali::Extents *arg2 = 0 ;
109   Dali::Extents *result = 0 ;
110
111   arg1 = (Dali::Extents *)jarg1;
112   arg2 = (Dali::Extents *)jarg2;
113   if (!arg2) {
114     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Extents const & type is null", 0);
115     return 0;
116   }
117   {
118     try {
119       result = (Dali::Extents *) &(arg1)->operator =((Dali::Extents const &)*arg2);
120     } catch (std::out_of_range& e) {
121       {
122         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
123       };
124     } catch (std::exception& e) {
125       {
126         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
127       };
128     } catch (...) {
129       {
130         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
131       };
132     }
133   }
134   jresult = (void *)result;
135   return jresult;
136 }
137
138
139 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Extents_Assign__SWIG_1(void * jarg1, void * jarg2) {
140   void * jresult ;
141   Dali::Extents *arg1 = (Dali::Extents *) 0 ;
142   uint16_t *arg2 = (uint16_t *) 0 ;
143   Dali::Extents *result = 0 ;
144
145   arg1 = (Dali::Extents *)jarg1;
146   arg2 = (uint16_t *)jarg2;
147   {
148     try {
149       result = (Dali::Extents *) &(arg1)->operator =((uint16_t const *)arg2);
150     } catch (std::out_of_range& e) {
151       {
152         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
153       };
154     } catch (std::exception& e) {
155       {
156         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
157       };
158     } catch (...) {
159       {
160         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
161       };
162     }
163   }
164   jresult = (void *)result;
165   return jresult;
166 }
167
168
169 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_Extents_EqualTo(void * jarg1, void * jarg2) {
170   unsigned int jresult ;
171   Dali::Extents *arg1 = (Dali::Extents *) 0 ;
172   Dali::Extents *arg2 = 0 ;
173   bool result;
174
175   arg1 = (Dali::Extents *)jarg1;
176   arg2 = (Dali::Extents *)jarg2;
177   if (!arg2) {
178     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Extents const & type is null", 0);
179     return 0;
180   }
181   {
182     try {
183       result = (bool)((Dali::Extents const *)arg1)->operator ==((Dali::Extents const &)*arg2);
184     } catch (std::out_of_range& e) {
185       {
186         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
187       };
188     } catch (std::exception& e) {
189       {
190         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
191       };
192     } catch (...) {
193       {
194         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
195       };
196     }
197   }
198   jresult = result;
199   return jresult;
200 }
201
202
203 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_Extents_NotEqualTo(void * jarg1, void * jarg2) {
204   unsigned int jresult ;
205   Dali::Extents *arg1 = (Dali::Extents *) 0 ;
206   Dali::Extents *arg2 = 0 ;
207   bool result;
208
209   arg1 = (Dali::Extents *)jarg1;
210   arg2 = (Dali::Extents *)jarg2;
211   if (!arg2) {
212     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Extents const & type is null", 0);
213     return 0;
214   }
215   {
216     try {
217       result = (bool)((Dali::Extents const *)arg1)->operator !=((Dali::Extents const &)*arg2);
218     } catch (std::out_of_range& e) {
219       {
220         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
221       };
222     } catch (std::exception& e) {
223       {
224         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
225       };
226     } catch (...) {
227       {
228         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
229       };
230     }
231   }
232   jresult = result;
233   return jresult;
234 }
235
236
237 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Extents_start_set(void * jarg1, unsigned short jarg2) {
238   Dali::Extents *arg1 = (Dali::Extents *) 0 ;
239   uint16_t arg2 ;
240
241   arg1 = (Dali::Extents *)jarg1;
242   arg2 = (uint16_t)jarg2;
243   if (arg1) (arg1)->start = arg2;
244 }
245
246
247 SWIGEXPORT unsigned short SWIGSTDCALL CSharp_Dali_Extents_start_get(void * jarg1) {
248   unsigned short jresult ;
249   Dali::Extents *arg1 = (Dali::Extents *) 0 ;
250   uint16_t result;
251
252   arg1 = (Dali::Extents *)jarg1;
253   result =  ((arg1)->start);
254   jresult = result;
255   return jresult;
256 }
257
258
259 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Extents_end_set(void * jarg1, unsigned short jarg2) {
260   Dali::Extents *arg1 = (Dali::Extents *) 0 ;
261   uint16_t arg2 ;
262
263   arg1 = (Dali::Extents *)jarg1;
264   arg2 = (uint16_t)jarg2;
265   if (arg1) (arg1)->end = arg2;
266 }
267
268
269 SWIGEXPORT unsigned short SWIGSTDCALL CSharp_Dali_Extents_end_get(void * jarg1) {
270   unsigned short jresult ;
271   Dali::Extents *arg1 = (Dali::Extents *) 0 ;
272   uint16_t result;
273
274   arg1 = (Dali::Extents *)jarg1;
275   result =  ((arg1)->end);
276   jresult = result;
277   return jresult;
278 }
279
280
281 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Extents_top_set(void * jarg1, unsigned short jarg2) {
282   Dali::Extents *arg1 = (Dali::Extents *) 0 ;
283   uint16_t arg2 ;
284
285   arg1 = (Dali::Extents *)jarg1;
286   arg2 = (uint16_t)jarg2;
287   if (arg1) (arg1)->top = arg2;
288 }
289
290
291 SWIGEXPORT unsigned short SWIGSTDCALL CSharp_Dali_Extents_top_get(void * jarg1) {
292   unsigned short jresult ;
293   Dali::Extents *arg1 = (Dali::Extents *) 0 ;
294   uint16_t result;
295
296   arg1 = (Dali::Extents *)jarg1;
297   result =  ((arg1)->top);
298   jresult = result;
299   return jresult;
300 }
301
302
303 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Extents_bottom_set(void * jarg1, unsigned short jarg2) {
304   Dali::Extents *arg1 = (Dali::Extents *) 0 ;
305   uint16_t arg2 ;
306
307   arg1 = (Dali::Extents *)jarg1;
308   arg2 = (uint16_t)jarg2;
309   if (arg1) (arg1)->bottom = arg2;
310 }
311
312
313 SWIGEXPORT unsigned short SWIGSTDCALL CSharp_Dali_Extents_bottom_get(void * jarg1) {
314   unsigned short jresult ;
315   Dali::Extents *arg1 = (Dali::Extents *) 0 ;
316   uint16_t result;
317
318   arg1 = (Dali::Extents *)jarg1;
319   result =  ((arg1)->bottom);
320   jresult = result;
321   return jresult;
322 }
323
324
325 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_Extents(void * jarg1) {
326   Dali::Extents *arg1 = (Dali::Extents *) 0 ;
327
328   arg1 = (Dali::Extents *)jarg1;
329   {
330     try {
331       delete arg1;
332     } catch (std::out_of_range& e) {
333       {
334         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
335       };
336     } catch (std::exception& e) {
337       {
338         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
339       };
340     } catch (...) {
341       {
342         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
343       };
344     }
345   }
346 }
347
348 #ifdef __cplusplus
349 }
350 #endif