1 #ifndef CSHARP_LINEAR_LAYOUT
2 #define CSHARP_LINEAR_LAYOUT
6 #include <dali-toolkit/devel-api/layouting/linear-layout.h>
13 SWIGEXPORT Dali::Toolkit::LayoutGroup * SWIGSTDCALL CSharp_Dali_LinearLayout_SWIGUpcast(Dali::Toolkit::LinearLayout *jarg1) {
14 return (Dali::Toolkit::LayoutGroup *)jarg1;
18 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_LinearLayout__SWIG_0() {
20 Dali::Toolkit::LinearLayout *result = 0 ;
24 result = (Dali::Toolkit::LinearLayout *)new Dali::Toolkit::LinearLayout();
25 } catch (std::out_of_range& e) {
27 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
29 } catch (std::exception& e) {
31 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
35 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
39 jresult = (void *)result;
44 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LinearLayout_New() {
46 Dali::Toolkit::LinearLayout result;
50 result = Dali::Toolkit::LinearLayout::New();
51 } catch (std::out_of_range& e) {
53 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
55 } catch (std::exception& e) {
57 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
61 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
65 jresult = new Dali::Toolkit::LinearLayout((const Dali::Toolkit::LinearLayout &)result);
70 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LinearLayout_DownCast(void * jarg1) {
72 Dali::BaseHandle arg1 ;
73 Dali::BaseHandle *argp1 ;
74 Dali::Toolkit::LinearLayout result;
76 argp1 = (Dali::BaseHandle *)jarg1;
78 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::BaseHandle", 0);
84 result = Dali::Toolkit::LinearLayout::DownCast(arg1);
85 } catch (std::out_of_range& e) {
87 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
89 } catch (std::exception& e) {
91 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
95 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
99 jresult = new Dali::Toolkit::LinearLayout((const Dali::Toolkit::LinearLayout &)result);
104 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_LinearLayout__SWIG_1(void * jarg1) {
106 Dali::Toolkit::LinearLayout *arg1 = 0 ;
107 Dali::Toolkit::LinearLayout *result = 0 ;
109 arg1 = (Dali::Toolkit::LinearLayout *)jarg1;
111 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::LinearLayout const & type is null", 0);
116 result = (Dali::Toolkit::LinearLayout *)new Dali::Toolkit::LinearLayout((Dali::Toolkit::LinearLayout const &)*arg1);
117 } catch (std::out_of_range& e) {
119 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
121 } catch (std::exception& e) {
123 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
127 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
131 jresult = (void *)result;
136 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LinearLayout_Assign(void * jarg1, void * jarg2) {
138 Dali::Toolkit::LinearLayout *arg1 = (Dali::Toolkit::LinearLayout *) 0 ;
139 Dali::Toolkit::LinearLayout *arg2 = 0 ;
140 Dali::Toolkit::LinearLayout *result = 0 ;
142 arg1 = (Dali::Toolkit::LinearLayout *)jarg1;
143 arg2 = (Dali::Toolkit::LinearLayout *)jarg2;
145 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::LinearLayout const & type is null", 0);
150 result = (Dali::Toolkit::LinearLayout *) &(arg1)->operator =((Dali::Toolkit::LinearLayout const &)*arg2);
151 } catch (std::out_of_range& e) {
153 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
155 } catch (std::exception& e) {
157 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
161 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
165 jresult = (void *)result;
170 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_LinearLayout(void * jarg1) {
171 Dali::Toolkit::LinearLayout *arg1 = (Dali::Toolkit::LinearLayout *) 0 ;
173 arg1 = (Dali::Toolkit::LinearLayout *)jarg1;
177 } catch (std::out_of_range& e) {
179 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
181 } catch (std::exception& e) {
183 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
187 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
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 ;
199 arg1 = (Dali::Toolkit::LinearLayout *)jarg1;
200 argp2 = (Dali::Toolkit::LayoutSize *)jarg2;
202 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::LayoutSize", 0);
208 (arg1)->SetCellPadding(arg2);
209 } catch (std::out_of_range& e) {
211 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
213 } catch (std::exception& e) {
215 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
219 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
226 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LinearLayout_GetCellPadding(void * jarg1) {
228 Dali::Toolkit::LinearLayout *arg1 = (Dali::Toolkit::LinearLayout *) 0 ;
229 Dali::Toolkit::LayoutSize result;
231 arg1 = (Dali::Toolkit::LinearLayout *)jarg1;
234 result = (arg1)->GetCellPadding();
235 } catch (std::out_of_range& e) {
237 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
239 } catch (std::exception& e) {
241 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
245 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
249 jresult = new Dali::Toolkit::LayoutSize((const Dali::Toolkit::LayoutSize &)result);
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 ;
258 arg1 = (Dali::Toolkit::LinearLayout *)jarg1;
259 arg2 = (Dali::Toolkit::LinearLayout::Orientation)jarg2;
262 (arg1)->SetOrientation(arg2);
263 } catch (std::out_of_range& e) {
265 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
267 } catch (std::exception& e) {
269 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
273 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
280 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_LinearLayout_GetOrientation(void * jarg1) {
282 Dali::Toolkit::LinearLayout *arg1 = (Dali::Toolkit::LinearLayout *) 0 ;
283 Dali::Toolkit::LinearLayout::Orientation result;
285 arg1 = (Dali::Toolkit::LinearLayout *)jarg1;
288 result = (Dali::Toolkit::LinearLayout::Orientation)(arg1)->GetOrientation();
289 } catch (std::out_of_range& e) {
291 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
293 } catch (std::exception& e) {
295 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
299 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
303 jresult = (int)result;
307 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LinearLayout_SetAlignment(void * jarg1, unsigned int jarg2) {
308 Dali::Toolkit::LinearLayout *arg1 = (Dali::Toolkit::LinearLayout *) 0 ;
311 arg1 = (Dali::Toolkit::LinearLayout *)jarg1;
312 arg2 = (unsigned int)jarg2;
315 (arg1)->SetAlignment(arg2);
316 } catch (std::out_of_range& e) {
318 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
320 } catch (std::exception& e) {
322 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
326 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
333 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_LinearLayout_GetAlignment(void * jarg1) {
334 unsigned int jresult ;
335 Dali::Toolkit::LinearLayout *arg1 = (Dali::Toolkit::LinearLayout *) 0 ;
338 arg1 = (Dali::Toolkit::LinearLayout *)jarg1;
341 result = (unsigned int)((Dali::Toolkit::LinearLayout const *)arg1)->GetAlignment();
342 } catch (std::out_of_range& e) {
344 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
346 } catch (std::exception& e) {
348 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
352 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
361 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_LinearLayout_Alignment() {
363 Dali::Toolkit::LinearLayout::Alignment *result = 0 ;
367 result = (Dali::Toolkit::LinearLayout::Alignment *)new Dali::Toolkit::LinearLayout::Alignment();
368 } catch (std::out_of_range& e) {
370 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
372 } catch (std::exception& e) {
374 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
376 } catch (Dali::DaliException e) {
378 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
382 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
387 jresult = (void *)result;
392 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_LinearLayout_Alignment(void * jarg1) {
393 Dali::Toolkit::LinearLayout::Alignment *arg1 = (Dali::Toolkit::LinearLayout::Alignment *) 0 ;
395 arg1 = (Dali::Toolkit::LinearLayout::Alignment *)jarg1;
399 } catch (std::out_of_range& e) {
401 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
403 } catch (std::exception& e) {
405 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
407 } catch (Dali::DaliException e) {
409 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
413 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
421 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_LinearLayout_ChildProperty_WEIGHT_get() {
425 result = (int)Dali::Toolkit::LinearLayout::ChildProperty::WEIGHT;
426 jresult = (int)result;
431 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_LinearLayout_ChildProperty() {
433 Dali::Toolkit::LinearLayout::ChildProperty *result = 0 ;
437 result = (Dali::Toolkit::LinearLayout::ChildProperty *)new Dali::Toolkit::LinearLayout::ChildProperty();
438 } catch (std::out_of_range& e) {
440 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
442 } catch (std::exception& e) {
444 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
448 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
452 jresult = (void *)result;
457 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_LinearLayout_ChildProperty(void * jarg1) {
458 Dali::Toolkit::LinearLayout::ChildProperty *arg1 = (Dali::Toolkit::LinearLayout::ChildProperty *) 0 ;
460 arg1 = (Dali::Toolkit::LinearLayout::ChildProperty *)jarg1;
464 } catch (std::out_of_range& e) {
466 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
468 } catch (std::exception& e) {
470 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
474 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;