1 #ifndef CSHARP_FLEX_LAYOUT
2 #define CSHARP_FLEX_LAYOUT
6 #include <dali-toolkit/devel-api/layouting/flex-node.h>
13 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_FlexLayout_New()
15 Dali::Toolkit::Flex::Node* result = (Dali::Toolkit::Flex::Node*)0;
18 result = new Dali::Toolkit::Flex::Node();
19 } catch (std::out_of_range& e) {
21 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what()));
23 } catch (std::exception& e) {
25 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what()));
29 SWIG_CSharpException(SWIG_UnknownError, "unknown error");
33 return (void *)result;
37 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_FlexLayout(void * jarg1)
39 Dali::Toolkit::Flex::Node *arg1 = (Dali::Toolkit::Flex::Node *) 0 ;
41 arg1 = (Dali::Toolkit::Flex::Node *)jarg1;
45 } catch (std::out_of_range& e) {
47 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what()));
49 } catch (std::exception& e) {
51 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what()));
55 SWIG_CSharpException(SWIG_UnknownError, "unknown error");
62 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FlexLayout_SetFlexDirection(void * jarg1, int jarg2)
64 Dali::Toolkit::Flex::Node *arg1 = (Dali::Toolkit::Flex::Node *) 0 ;
65 Dali::Toolkit::Flex::FlexDirection arg2 ;
67 arg1 = (Dali::Toolkit::Flex::Node *)jarg1;
68 arg2 = (Dali::Toolkit::Flex::FlexDirection)jarg2;
71 arg1->Dali::Toolkit::Flex::Node::SetFlexDirection( arg2);
72 } catch (std::out_of_range& e) {
74 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what()));
76 } catch (std::exception& e) {
78 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what()));
82 SWIG_CSharpException(SWIG_UnknownError, "unknown error");
90 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FlexLayout_AddChild(void * jarg1, void *jarg2, Dali::Toolkit::Flex::MeasureCallback jarg3, int jarg4)
92 Dali::Toolkit::Flex::Node* arg1 = (Dali::Toolkit::Flex::Node* )jarg1;
93 Dali::Actor *arg2 = (Dali::Actor *) 0; arg2 = (Dali::Actor *)jarg2;
97 arg1->Dali::Toolkit::Flex::Node::AddChild((Dali::Actor &)*arg2, jarg3, jarg4);
98 } catch (std::out_of_range& e) {
100 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what()));
102 } catch (std::exception& e) {
104 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what()));
108 SWIG_CSharpException(SWIG_UnknownError, "unknown error");
114 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FlexLayout_RemoveChild(void * jarg1, void * jarg2)
116 Dali::Toolkit::Flex::Node *arg1 = (Dali::Toolkit::Flex::Node *) 0 ;
117 Dali::Actor* arg2 = (Dali::Actor *)jarg2;
119 arg1 = (Dali::Toolkit::Flex::Node*)jarg1;
122 arg1->Dali::Toolkit::Flex::Node::RemoveChild(*arg2);
123 } catch (std::out_of_range& e) {
125 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what()));
127 } catch (std::exception& e) {
129 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what()));
133 SWIG_CSharpException(SWIG_UnknownError, "unknown error");
139 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FlexLayout_CalculateLayout(void * jarg1, float jarg2, float jarg3, bool isRtl )
141 Dali::Toolkit::Flex::Node * arg1 = (Dali::Toolkit::Flex::Node* )jarg1;
144 arg1->Dali::Toolkit::Flex::Node::CalculateLayout(jarg2, jarg3, isRtl);
145 } catch (std::out_of_range& e) {
147 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what()));
149 } catch (std::exception& e) {
151 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what()));
155 SWIG_CSharpException(SWIG_UnknownError, "unknown error");
161 SWIGEXPORT float SWIGSTDCALL CSharp_Dali_FlexLayout_GetWidth(void * jarg1 )
163 Dali::Toolkit::Flex::Node* arg1 = (Dali::Toolkit::Flex::Node* )jarg1 ;
167 result = arg1->Dali::Toolkit::Flex::Node::GetFlexWidth();
168 } catch (std::out_of_range& e) {
170 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what()));
172 } catch (std::exception& e) {
174 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what()));
178 SWIG_CSharpException(SWIG_UnknownError, "unknown error");
186 SWIGEXPORT float SWIGSTDCALL CSharp_Dali_FlexLayout_GetHeight(void * jarg1 )
189 Dali::Toolkit::Flex::Node* arg1 = (Dali::Toolkit::Flex::Node* )jarg1 ;
192 result = arg1->Dali::Toolkit::Flex::Node::GetFlexHeight();
193 } catch (std::out_of_range& e) {
195 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what()));
197 } catch (std::exception& e) {
199 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what()));
203 SWIG_CSharpException(SWIG_UnknownError, "unknown error");
210 SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_FlexLayout_GetNodeFrame( void * jarg1, int index )
212 Dali::Toolkit::Flex::Node *arg1 = (Dali::Toolkit::Flex::Node *) 0 ;
213 arg1 = (Dali::Toolkit::Flex::Node *)jarg1;
214 Dali::Vector4 result;
218 result = arg1->Dali::Toolkit::Flex::Node::GetNodeFrame(index);
219 } catch (std::out_of_range& e) {
221 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what()));
223 } catch (std::exception& e) {
225 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what()));
229 SWIG_CSharpException(SWIG_UnknownError, "unknown error");
234 jresult = new Dali::Vector4((const Dali::Vector4 &)result);
238 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FlexLayout_SetMargin(void * jarg1, void * jarg2)
240 Dali::Toolkit::Flex::Node *arg1 = (Dali::Toolkit::Flex::Node *) 0 ;
242 arg1 = (Dali::Toolkit::Flex::Node *)jarg1;
243 Dali::Extents* arg2 = (Dali::Extents *)jarg2;
246 arg1->Dali::Toolkit::Flex::Node::SetMargin( *arg2);
247 } catch (std::out_of_range& e) {
249 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what()));
251 } catch (std::exception& e) {
253 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what()));
257 SWIG_CSharpException(SWIG_UnknownError, "unknown error");
263 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FlexLayout_SetPadding(void * jarg1, void * jarg2)
265 Dali::Toolkit::Flex::Node *arg1 = (Dali::Toolkit::Flex::Node *) 0 ;
267 arg1 = (Dali::Toolkit::Flex::Node *)jarg1;
268 Dali::Extents* arg2 = (Dali::Extents *)jarg2;
271 arg1->Dali::Toolkit::Flex::Node::SetPadding( *arg2);
272 } catch (std::out_of_range& e) {
274 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what()));
276 } catch (std::exception& e) {
278 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what()));
282 SWIG_CSharpException(SWIG_UnknownError, "unknown error");
288 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_FlexLayout_GetFlexDirection(void * jarg1)
291 Dali::Toolkit::Flex::Node *arg1 = (Dali::Toolkit::Flex::Node *) 0 ;
292 Dali::Toolkit::Flex::FlexDirection result;
294 arg1 = (Dali::Toolkit::Flex::Node *)jarg1;
297 result = (Dali::Toolkit::Flex::FlexDirection)arg1->Dali::Toolkit::Flex::Node::GetFlexDirection();
298 } catch (std::out_of_range& e) {
300 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
302 } catch (std::exception& e) {
304 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
308 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
312 jresult = (int)result;
317 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FlexLayout_SetFlexJustification(void * jarg1, int jarg2)
319 Dali::Toolkit::Flex::Node *arg1 = (Dali::Toolkit::Flex::Node *) 0 ;
320 Dali::Toolkit::Flex::Justification arg2 ;
322 arg1 = (Dali::Toolkit::Flex::Node *)jarg1;
323 arg2 = (Dali::Toolkit::Flex::Justification)jarg2;
326 arg1->Dali::Toolkit::Flex::Node::SetFlexJustification(arg2);
327 } catch (std::out_of_range& e) {
329 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
331 } catch (std::exception& e) {
333 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
337 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
344 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_FlexLayout_GetFlexJustification(void * jarg1)
347 Dali::Toolkit::Flex::Node *arg1 = (Dali::Toolkit::Flex::Node *) 0 ;
348 Dali::Toolkit::Flex::Justification result;
350 arg1 = (Dali::Toolkit::Flex::Node *)jarg1;
353 result = (Dali::Toolkit::Flex::Justification)arg1->Dali::Toolkit::Flex::Node::GetFlexJustification();
354 } catch (std::out_of_range& e) {
356 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
358 } catch (std::exception& e) {
360 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
364 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
368 jresult = (int)result;
373 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FlexLayout_SetFlexWrap(void * jarg1, int jarg2)
376 Dali::Toolkit::Flex::Node* arg1 = (Dali::Toolkit::Flex::Node *)jarg1;
377 Dali::Toolkit::Flex::WrapType arg2 = (Dali::Toolkit::Flex::WrapType)jarg2;
380 arg1->Dali::Toolkit::Flex::Node::SetFlexWrap(arg2);
381 } catch (std::out_of_range& e) {
383 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
385 } catch (std::exception& e) {
387 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
391 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
398 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_FlexLayout_GetFlexWrap(void * jarg1)
401 Dali::Toolkit::Flex::Node *arg1 = (Dali::Toolkit::Flex::Node *) 0 ;
402 Dali::Toolkit::Flex::WrapType result;
404 arg1 = (Dali::Toolkit::Flex::Node *)jarg1;
407 result = (Dali::Toolkit::Flex::WrapType)arg1->Dali::Toolkit::Flex::Node::GetFlexWrap();
408 } catch (std::out_of_range& e) {
410 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
412 } catch (std::exception& e) {
414 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
418 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
422 jresult = (int)result;
427 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FlexLayout_SetFlexAlignment(void * jarg1, int jarg2)
429 Dali::Toolkit::Flex::Node *arg1 = (Dali::Toolkit::Flex::Node *) 0 ;
430 Dali::Toolkit::Flex::Alignment arg2 ;
432 arg1 = (Dali::Toolkit::Flex::Node *)jarg1;
433 arg2 = (Dali::Toolkit::Flex::Alignment)jarg2;
436 arg1->Dali::Toolkit::Flex::Node::SetFlexAlignment(arg2);
437 } catch (std::out_of_range& e) {
439 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
441 } catch (std::exception& e) {
443 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
447 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
454 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_FlexLayout_GetFlexAlignment(void * jarg1)
457 Dali::Toolkit::Flex::Node *arg1 = (Dali::Toolkit::Flex::Node *) 0 ;
458 Dali::Toolkit::Flex::Alignment result;
460 arg1 = (Dali::Toolkit::Flex::Node *)jarg1;
463 result = (Dali::Toolkit::Flex::Alignment)arg1->Dali::Toolkit::Flex::Node::GetFlexAlignment();
464 } catch (std::out_of_range& e) {
466 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
468 } catch (std::exception& e) {
470 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
474 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
478 jresult = (int)result;
483 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FlexLayout_SetFlexItemsAlignment(void * jarg1, int jarg2)
485 Dali::Toolkit::Flex::Node *arg1 = (Dali::Toolkit::Flex::Node *) 0 ;
486 Dali::Toolkit::Flex::Alignment arg2 ;
488 arg1 = (Dali::Toolkit::Flex::Node *)jarg1;
489 arg2 = (Dali::Toolkit::Flex::Alignment)jarg2;
492 arg1->Dali::Toolkit::Flex::Node::SetFlexItemsAlignment(arg2);
493 } catch (std::out_of_range& e) {
495 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
497 } catch (std::exception& e) {
499 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
503 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
510 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_FlexLayout_GetFlexItemsAlignment(void * jarg1)
513 Dali::Toolkit::Flex::Node *arg1 = (Dali::Toolkit::Flex::Node *) 0 ;
514 Dali::Toolkit::Flex::Alignment result;
516 arg1 = (Dali::Toolkit::Flex::Node *)jarg1;
519 result = (Dali::Toolkit::Flex::Alignment)arg1->Dali::Toolkit::Flex::Node::GetFlexItemsAlignment();
520 } catch (std::out_of_range& e) {
522 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
524 } catch (std::exception& e) {
526 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
530 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
534 jresult = (int)result;