Added binding for Keyboard RepeatInfo APIs
[platform/core/uifw/dali-csharp-binder.git] / dali-csharp-binder / src / layout-measured-size.cpp
1 /*
2  * Copyright (c) 2018 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 #include "common.h"
19 #include <dali-toolkit/devel-api/layouting/measured-size.h>
20
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24
25 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_MeasuredSize__SWIG_0()
26 {
27   void * jresult ;
28   Dali::Toolkit::MeasuredSize *result = 0 ;
29
30   try
31   {
32     result = (Dali::Toolkit::MeasuredSize *)new Dali::Toolkit::MeasuredSize();
33   }
34   catch (std::out_of_range& e)
35   {
36     SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
37   }
38   catch (std::exception& e)
39   {
40     SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
41   }
42   catch (...)
43   {
44     SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
45   }
46   jresult = (void *)result;
47   return jresult;
48 }
49
50
51 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_MeasuredSize__SWIG_1(void * jarg1)
52 {
53   void * jresult ;
54   SwigValueWrapper< Dali::Toolkit::LayoutLength > arg1 ;
55   Dali::Toolkit::LayoutLength *argp1 ;
56   Dali::Toolkit::MeasuredSize *result = 0 ;
57
58   argp1 = (Dali::Toolkit::LayoutLength *)jarg1;
59   if (!argp1)
60   {
61     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::LayoutLength", 0);
62     return 0;
63   }
64   arg1 = *argp1;
65   try
66   {
67     result = (Dali::Toolkit::MeasuredSize *)new Dali::Toolkit::MeasuredSize(arg1);
68   }
69   catch (std::out_of_range& e)
70   {
71     SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
72   }
73   catch (std::exception& e)
74   {
75     SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
76   }
77   catch (...)
78   {
79     SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
80   }
81   jresult = (void *)result;
82   return jresult;
83 }
84
85
86 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_MeasuredSize__SWIG_2(void * jarg1, int jarg2)
87 {
88   void * jresult ;
89   SwigValueWrapper< Dali::Toolkit::LayoutLength > arg1 ;
90   Dali::Toolkit::MeasuredSize::State arg2 ;
91   Dali::Toolkit::LayoutLength *argp1 ;
92   Dali::Toolkit::MeasuredSize *result = 0 ;
93
94   argp1 = (Dali::Toolkit::LayoutLength *)jarg1;
95   if (!argp1)
96   {
97     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::LayoutLength", 0);
98     return 0;
99   }
100   arg1 = *argp1;
101   arg2 = (Dali::Toolkit::MeasuredSize::State)jarg2;
102   try
103   {
104     result = (Dali::Toolkit::MeasuredSize *)new Dali::Toolkit::MeasuredSize(arg1,arg2);
105   }
106   catch (std::out_of_range& e)
107   {
108     SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
109   }
110   catch (std::exception& e)
111   {
112     SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
113   }
114   catch (...)
115   {
116     SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
117   }
118
119   jresult = (void *)result;
120   return jresult;
121 }
122
123
124 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_MeasuredSize(void * jarg1)
125 {
126   Dali::Toolkit::MeasuredSize *arg1 = (Dali::Toolkit::MeasuredSize *) 0 ;
127
128   arg1 = (Dali::Toolkit::MeasuredSize *)jarg1;
129   try
130   {
131     delete arg1;
132   }
133   catch (std::out_of_range& e)
134   {
135     SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
136   }
137   catch (std::exception& e)
138   {
139     SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
140   }
141   catch (...)
142   {
143     SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
144   }
145 }
146
147
148 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_MeasuredSize_Assign__SWIG_0(void * jarg1, void * jarg2)
149 {
150   void * jresult ;
151   Dali::Toolkit::MeasuredSize *arg1 = (Dali::Toolkit::MeasuredSize *) 0 ;
152   Dali::Toolkit::MeasuredSize *arg2 = 0 ;
153   Dali::Toolkit::MeasuredSize *result = 0 ;
154
155   arg1 = (Dali::Toolkit::MeasuredSize *)jarg1;
156   arg2 = (Dali::Toolkit::MeasuredSize *)jarg2;
157   if (!arg2)
158   {
159     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::MeasuredSize const & type is null", 0);
160     return 0;
161   }
162   try
163   {
164     result = (Dali::Toolkit::MeasuredSize *) &(arg1)->operator =((Dali::Toolkit::MeasuredSize const &)*arg2);
165   }
166   catch (std::out_of_range& e)
167   {
168     SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
169   }
170   catch (std::exception& e)
171   {
172     SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
173   }
174   catch (...)
175   {
176     SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
177   }
178   jresult = (void *)result;
179   return jresult;
180 }
181
182
183 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_MeasuredSize_Assign__SWIG_1(void * jarg1, int jarg2)
184 {
185   void * jresult ;
186   Dali::Toolkit::MeasuredSize *arg1 = (Dali::Toolkit::MeasuredSize *) 0 ;
187   Dali::Toolkit::LayoutLength::IntType arg2 ;
188   Dali::Toolkit::MeasuredSize *result = 0 ;
189
190   arg1 = (Dali::Toolkit::MeasuredSize *)jarg1;
191   arg2 = (Dali::Toolkit::LayoutLength::IntType)jarg2;
192
193   try
194   {
195     result = (Dali::Toolkit::MeasuredSize *) &(arg1)->operator =(arg2);
196   }
197   catch (std::out_of_range& e)
198   {
199     SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
200   }
201   catch (std::exception& e)
202   {
203     SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
204   }
205   catch (...)
206   {
207     SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
208   }
209
210   jresult = (void *)result;
211   return jresult;
212 }
213
214
215 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_MeasuredSize_EqualTo(void * jarg1, void * jarg2)
216 {
217   unsigned int jresult ;
218   Dali::Toolkit::MeasuredSize *arg1 = (Dali::Toolkit::MeasuredSize *) 0 ;
219   Dali::Toolkit::MeasuredSize arg2 ;
220   Dali::Toolkit::MeasuredSize *argp2 ;
221   bool result;
222
223   arg1 = (Dali::Toolkit::MeasuredSize *)jarg1;
224   argp2 = (Dali::Toolkit::MeasuredSize *)jarg2;
225   if (!argp2)
226   {
227     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::MeasuredSize", 0);
228     return 0;
229   }
230   arg2 = *argp2;
231   try
232   {
233     result = (bool)(arg1)->operator ==(arg2);
234   }
235   catch (std::out_of_range& e)
236   {
237     SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
238   }
239   catch (std::exception& e)
240   {
241     SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
242   }
243   catch (...)
244   {
245     SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
246   }
247   jresult = result;
248   return jresult;
249 }
250
251
252 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_MeasuredSize_NotEqualTo(void * jarg1, void * jarg2)
253 {
254   unsigned int jresult ;
255   Dali::Toolkit::MeasuredSize *arg1 = (Dali::Toolkit::MeasuredSize *) 0 ;
256   Dali::Toolkit::MeasuredSize arg2 ;
257   Dali::Toolkit::MeasuredSize *argp2 ;
258   bool result;
259
260   arg1 = (Dali::Toolkit::MeasuredSize *)jarg1;
261   argp2 = (Dali::Toolkit::MeasuredSize *)jarg2;
262   if (!argp2)
263   {
264     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::MeasuredSize", 0);
265     return 0;
266   }
267   arg2 = *argp2;
268   try
269   {
270     result = (bool)(arg1)->operator !=(arg2);
271   }
272   catch (std::out_of_range& e)
273   {
274     SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
275   }
276   catch (std::exception& e)
277   {
278     SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
279   }
280   catch (...)
281   {
282     SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
283   }
284   jresult = result;
285   return jresult;
286 }
287
288
289 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_MeasuredSize_SetState(void * jarg1, int jarg2)
290 {
291   Dali::Toolkit::MeasuredSize *arg1 = (Dali::Toolkit::MeasuredSize *) 0 ;
292   Dali::Toolkit::MeasuredSize::State arg2 ;
293
294   arg1 = (Dali::Toolkit::MeasuredSize *)jarg1;
295   arg2 = (Dali::Toolkit::MeasuredSize::State)jarg2;
296   try
297   {
298     (arg1)->SetState(arg2);
299   }
300   catch (std::out_of_range& e)
301   {
302     SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
303   }
304   catch (std::exception& e)
305   {
306     SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
307   }
308   catch (...)
309   {
310     SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
311   }
312 }
313
314
315 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_MeasuredSize_GetState(void * jarg1)
316 {
317   int jresult ;
318   Dali::Toolkit::MeasuredSize *arg1 = (Dali::Toolkit::MeasuredSize *) 0 ;
319   Dali::Toolkit::MeasuredSize::State result;
320
321   arg1 = (Dali::Toolkit::MeasuredSize *)jarg1;
322   try
323   {
324     result = (Dali::Toolkit::MeasuredSize::State)(arg1)->GetState();
325   }
326   catch (std::out_of_range& e)
327   {
328     SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
329   }
330   catch (std::exception& e)
331   {
332     SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
333   }
334   catch (...)
335   {
336     SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
337   }
338   jresult = (int)result;
339   return jresult;
340 }
341
342
343 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_MeasuredSize_SetSize(void * jarg1, void * jarg2)
344 {
345   Dali::Toolkit::MeasuredSize *arg1 = (Dali::Toolkit::MeasuredSize *) 0 ;
346   SwigValueWrapper< Dali::Toolkit::LayoutLength > arg2 ;
347   Dali::Toolkit::LayoutLength *argp2 ;
348
349   arg1 = (Dali::Toolkit::MeasuredSize *)jarg1;
350   argp2 = (Dali::Toolkit::LayoutLength *)jarg2;
351   if (!argp2)
352   {
353     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::LayoutLength", 0);
354     return ;
355   }
356   arg2 = *argp2;
357   try
358   {
359     (arg1)->SetSize(arg2);
360   }
361   catch (std::out_of_range& e)
362   {
363     SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
364   }
365   catch (std::exception& e)
366   {
367     SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
368   }
369   catch (...)
370   {
371     SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
372   }
373 }
374
375
376 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_MeasuredSize_GetSize(void * jarg1)
377 {
378   void * jresult ;
379   Dali::Toolkit::MeasuredSize *arg1 = (Dali::Toolkit::MeasuredSize *) 0 ;
380   SwigValueWrapper< Dali::Toolkit::LayoutLength > result;
381
382   arg1 = (Dali::Toolkit::MeasuredSize *)jarg1;
383   try
384   {
385     result = (arg1)->GetSize();
386   }
387   catch (std::out_of_range& e)
388   {
389     SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
390   }
391   catch (std::exception& e)
392   {
393     SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
394   }
395   catch (...)
396   {
397     SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
398   }
399   jresult = new Dali::Toolkit::LayoutLength((const Dali::Toolkit::LayoutLength &)result);
400   return jresult;
401 }
402
403 #ifdef __cplusplus
404 }
405 #endif
406