Add absolute/flex/linear layout binding
[platform/core/uifw/dali-csharp-binder.git] / dali-csharp-binder / src / linear-layout.cpp
1 #ifndef CSHARP_LINEAR_LAYOUT
2 #define CSHARP_LINEAR_LAYOUT
3 #endif
4
5 #include "common.h"
6 #include <dali-toolkit/devel-api/layouting/linear-layout.h>
7
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11
12
13 SWIGEXPORT Dali::Toolkit::LayoutGroup * SWIGSTDCALL CSharp_Dali_LinearLayout_SWIGUpcast(Dali::Toolkit::LinearLayout *jarg1) {
14     return (Dali::Toolkit::LayoutGroup *)jarg1;
15 }
16
17
18 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_LinearLayout__SWIG_0() {
19   void * jresult ;
20   Dali::Toolkit::LinearLayout *result = 0 ;
21
22   {
23     try {
24       result = (Dali::Toolkit::LinearLayout *)new Dali::Toolkit::LinearLayout();
25     } catch (std::out_of_range& e) {
26       {
27         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
28       };
29     } catch (std::exception& e) {
30       {
31         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
32       };
33     } catch (...) {
34       {
35         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
36       };
37     }
38   }
39   jresult = (void *)result;
40   return jresult;
41 }
42
43
44 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LinearLayout_New() {
45   void * jresult ;
46   Dali::Toolkit::LinearLayout result;
47
48   {
49     try {
50       result = Dali::Toolkit::LinearLayout::New();
51     } catch (std::out_of_range& e) {
52       {
53         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
54       };
55     } catch (std::exception& e) {
56       {
57         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
58       };
59     } catch (...) {
60       {
61         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
62       };
63     }
64   }
65   jresult = new Dali::Toolkit::LinearLayout((const Dali::Toolkit::LinearLayout &)result);
66   return jresult;
67 }
68
69
70 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LinearLayout_DownCast(void * jarg1) {
71   void * jresult ;
72   Dali::BaseHandle arg1 ;
73   Dali::BaseHandle *argp1 ;
74   Dali::Toolkit::LinearLayout result;
75
76   argp1 = (Dali::BaseHandle *)jarg1;
77   if (!argp1) {
78     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::BaseHandle", 0);
79     return 0;
80   }
81   arg1 = *argp1;
82   {
83     try {
84       result = Dali::Toolkit::LinearLayout::DownCast(arg1);
85     } catch (std::out_of_range& e) {
86       {
87         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
88       };
89     } catch (std::exception& e) {
90       {
91         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
92       };
93     } catch (...) {
94       {
95         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
96       };
97     }
98   }
99   jresult = new Dali::Toolkit::LinearLayout((const Dali::Toolkit::LinearLayout &)result);
100   return jresult;
101 }
102
103
104 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_LinearLayout__SWIG_1(void * jarg1) {
105   void * jresult ;
106   Dali::Toolkit::LinearLayout *arg1 = 0 ;
107   Dali::Toolkit::LinearLayout *result = 0 ;
108
109   arg1 = (Dali::Toolkit::LinearLayout *)jarg1;
110   if (!arg1) {
111     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::LinearLayout const & type is null", 0);
112     return 0;
113   }
114   {
115     try {
116       result = (Dali::Toolkit::LinearLayout *)new Dali::Toolkit::LinearLayout((Dali::Toolkit::LinearLayout const &)*arg1);
117     } catch (std::out_of_range& e) {
118       {
119         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
120       };
121     } catch (std::exception& e) {
122       {
123         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
124       };
125     } catch (...) {
126       {
127         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
128       };
129     }
130   }
131   jresult = (void *)result;
132   return jresult;
133 }
134
135
136 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LinearLayout_Assign(void * jarg1, void * jarg2) {
137   void * jresult ;
138   Dali::Toolkit::LinearLayout *arg1 = (Dali::Toolkit::LinearLayout *) 0 ;
139   Dali::Toolkit::LinearLayout *arg2 = 0 ;
140   Dali::Toolkit::LinearLayout *result = 0 ;
141
142   arg1 = (Dali::Toolkit::LinearLayout *)jarg1;
143   arg2 = (Dali::Toolkit::LinearLayout *)jarg2;
144   if (!arg2) {
145     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::LinearLayout const & type is null", 0);
146     return 0;
147   }
148   {
149     try {
150       result = (Dali::Toolkit::LinearLayout *) &(arg1)->operator =((Dali::Toolkit::LinearLayout const &)*arg2);
151     } catch (std::out_of_range& e) {
152       {
153         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
154       };
155     } catch (std::exception& e) {
156       {
157         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
158       };
159     } catch (...) {
160       {
161         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
162       };
163     }
164   }
165   jresult = (void *)result;
166   return jresult;
167 }
168
169
170 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_LinearLayout(void * jarg1) {
171   Dali::Toolkit::LinearLayout *arg1 = (Dali::Toolkit::LinearLayout *) 0 ;
172
173   arg1 = (Dali::Toolkit::LinearLayout *)jarg1;
174   {
175     try {
176       delete arg1;
177     } catch (std::out_of_range& e) {
178       {
179         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
180       };
181     } catch (std::exception& e) {
182       {
183         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
184       };
185     } catch (...) {
186       {
187         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
188       };
189     }
190   }
191 }
192
193
194 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LinearLayout_SetCellPadding(void * jarg1, void * jarg2) {
195   Dali::Toolkit::LinearLayout *arg1 = (Dali::Toolkit::LinearLayout *) 0 ;
196   Dali::Toolkit::LayoutSize arg2 ;
197   Dali::Toolkit::LayoutSize *argp2 ;
198
199   arg1 = (Dali::Toolkit::LinearLayout *)jarg1;
200   argp2 = (Dali::Toolkit::LayoutSize *)jarg2;
201   if (!argp2) {
202     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::LayoutSize", 0);
203     return ;
204   }
205   arg2 = *argp2;
206   {
207     try {
208       (arg1)->SetCellPadding(arg2);
209     } catch (std::out_of_range& e) {
210       {
211         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
212       };
213     } catch (std::exception& e) {
214       {
215         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
216       };
217     } catch (...) {
218       {
219         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
220       };
221     }
222   }
223 }
224
225
226 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LinearLayout_GetCellPadding(void * jarg1) {
227   void * jresult ;
228   Dali::Toolkit::LinearLayout *arg1 = (Dali::Toolkit::LinearLayout *) 0 ;
229   Dali::Toolkit::LayoutSize result;
230
231   arg1 = (Dali::Toolkit::LinearLayout *)jarg1;
232   {
233     try {
234       result = (arg1)->GetCellPadding();
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     }
248   }
249   jresult = new Dali::Toolkit::LayoutSize((const Dali::Toolkit::LayoutSize &)result);
250   return jresult;
251 }
252
253
254 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LinearLayout_SetOrientation(void * jarg1, int jarg2) {
255   Dali::Toolkit::LinearLayout *arg1 = (Dali::Toolkit::LinearLayout *) 0 ;
256   Dali::Toolkit::LinearLayout::Orientation arg2 ;
257
258   arg1 = (Dali::Toolkit::LinearLayout *)jarg1;
259   arg2 = (Dali::Toolkit::LinearLayout::Orientation)jarg2;
260   {
261     try {
262       (arg1)->SetOrientation(arg2);
263     } catch (std::out_of_range& e) {
264       {
265         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
266       };
267     } catch (std::exception& e) {
268       {
269         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
270       };
271     } catch (...) {
272       {
273         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
274       };
275     }
276   }
277 }
278
279
280 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_LinearLayout_GetOrientation(void * jarg1) {
281   int jresult ;
282   Dali::Toolkit::LinearLayout *arg1 = (Dali::Toolkit::LinearLayout *) 0 ;
283   Dali::Toolkit::LinearLayout::Orientation result;
284
285   arg1 = (Dali::Toolkit::LinearLayout *)jarg1;
286   {
287     try {
288       result = (Dali::Toolkit::LinearLayout::Orientation)(arg1)->GetOrientation();
289     } catch (std::out_of_range& e) {
290       {
291         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
292       };
293     } catch (std::exception& e) {
294       {
295         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
296       };
297     } catch (...) {
298       {
299         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
300       };
301     }
302   }
303   jresult = (int)result;
304   return jresult;
305 }
306
307
308 #ifdef __cplusplus
309 }
310 #endif