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()
16 Dali::Toolkit::Flex::Node* result;
20 result = new Dali::Toolkit::Flex::Node();
21 } catch (std::out_of_range& e) {
23 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what()));
25 } catch (std::exception& e) {
27 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what()));
31 SWIG_CSharpException(SWIG_UnknownError, "unknown error");
35 jresult = (void *)result;
40 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_FlexLayout(void * jarg1)
42 Dali::Toolkit::Flex::Node *arg1 = (Dali::Toolkit::Flex::Node *) 0 ;
44 arg1 = (Dali::Toolkit::Flex::Node *)jarg1;
48 } catch (std::out_of_range& e) {
50 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what()));
52 } catch (std::exception& e) {
54 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what()));
58 SWIG_CSharpException(SWIG_UnknownError, "unknown error");
65 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FlexLayout_SetFlexDirection(void * jarg1, int jarg2)
67 Dali::Toolkit::Flex::Node *arg1 = (Dali::Toolkit::Flex::Node *) 0 ;
68 Dali::Toolkit::Flex::FlexDirection arg2 ;
70 arg1 = (Dali::Toolkit::Flex::Node *)jarg1;
71 arg2 = (Dali::Toolkit::Flex::FlexDirection)jarg2;
74 arg1->Dali::Toolkit::Flex::Node::SetFlexDirection( arg2);
75 } catch (std::out_of_range& e) {
77 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what()));
79 } catch (std::exception& e) {
81 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what()));
85 SWIG_CSharpException(SWIG_UnknownError, "unknown error");
93 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FlexLayout_AddChild(void * jarg1, void *jarg2, Dali::Toolkit::Flex::MeasureCallback jarg3, int jarg4)
95 Dali::Toolkit::Flex::Node* arg1 = (Dali::Toolkit::Flex::Node* )jarg1;
96 Dali::Actor *arg2 = (Dali::Actor *) 0; arg2 = (Dali::Actor *)jarg2;
100 arg1->Dali::Toolkit::Flex::Node::AddChild((Dali::Actor &)*arg2, jarg3, jarg4);
101 } catch (std::out_of_range& e) {
103 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what()));
105 } catch (std::exception& e) {
107 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what()));
111 SWIG_CSharpException(SWIG_UnknownError, "unknown error");
117 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FlexLayout_RemoveChild(void * jarg1, void * jarg2)
119 Dali::Toolkit::Flex::Node *arg1 = (Dali::Toolkit::Flex::Node *) 0 ;
120 Dali::Actor* arg2 = (Dali::Actor *)jarg2;
122 arg1 = (Dali::Toolkit::Flex::Node*)jarg1;
125 arg1->Dali::Toolkit::Flex::Node::RemoveChild(*arg2);
126 } catch (std::out_of_range& e) {
128 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what()));
130 } catch (std::exception& e) {
132 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what()));
136 SWIG_CSharpException(SWIG_UnknownError, "unknown error");
142 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FlexLayout_CalculateLayout(void * jarg1, float jarg2, float jarg3, bool isRtl )
144 Dali::Toolkit::Flex::Node * arg1 = (Dali::Toolkit::Flex::Node* )jarg1;
147 arg1->Dali::Toolkit::Flex::Node::CalculateLayout(jarg2, jarg3, isRtl);
148 } catch (std::out_of_range& e) {
150 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what()));
152 } catch (std::exception& e) {
154 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what()));
158 SWIG_CSharpException(SWIG_UnknownError, "unknown error");
164 SWIGEXPORT float SWIGSTDCALL CSharp_Dali_FlexLayout_GetWidth(void * jarg1 )
166 Dali::Toolkit::Flex::Node* arg1 = (Dali::Toolkit::Flex::Node* )jarg1 ;
170 result = arg1->Dali::Toolkit::Flex::Node::GetFlexWidth();
171 } catch (std::out_of_range& e) {
173 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what()));
175 } catch (std::exception& e) {
177 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what()));
181 SWIG_CSharpException(SWIG_UnknownError, "unknown error");
189 SWIGEXPORT float SWIGSTDCALL CSharp_Dali_FlexLayout_GetHeight(void * jarg1 )
192 Dali::Toolkit::Flex::Node* arg1 = (Dali::Toolkit::Flex::Node* )jarg1 ;
195 result = arg1->Dali::Toolkit::Flex::Node::GetFlexHeight();
196 } catch (std::out_of_range& e) {
198 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what()));
200 } catch (std::exception& e) {
202 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what()));
206 SWIG_CSharpException(SWIG_UnknownError, "unknown error");
213 SWIGEXPORT void* SWIGSTDCALL CSharp_Dali_FlexLayout_GetNodeFrame( void * jarg1, int index )
215 Dali::Toolkit::Flex::Node *arg1 = (Dali::Toolkit::Flex::Node *) 0 ;
216 arg1 = (Dali::Toolkit::Flex::Node *)jarg1;
217 Dali::Vector4 result;
221 result = arg1->Dali::Toolkit::Flex::Node::GetNodeFrame(index);
222 } catch (std::out_of_range& e) {
224 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what()));
226 } catch (std::exception& e) {
228 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what()));
232 SWIG_CSharpException(SWIG_UnknownError, "unknown error");
237 jresult = new Dali::Vector4((const Dali::Vector4 &)result);
241 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FlexLayout_SetMargin(void * jarg1, void * jarg2)
243 Dali::Toolkit::Flex::Node *arg1 = (Dali::Toolkit::Flex::Node *) 0 ;
245 arg1 = (Dali::Toolkit::Flex::Node *)jarg1;
246 Dali::Extents* arg2 = (Dali::Extents *)jarg2;
249 arg1->Dali::Toolkit::Flex::Node::SetMargin( *arg2);
250 } catch (std::out_of_range& e) {
252 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what()));
254 } catch (std::exception& e) {
256 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what()));
260 SWIG_CSharpException(SWIG_UnknownError, "unknown error");
266 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FlexLayout_SetPadding(void * jarg1, void * jarg2)
268 Dali::Toolkit::Flex::Node *arg1 = (Dali::Toolkit::Flex::Node *) 0 ;
270 arg1 = (Dali::Toolkit::Flex::Node *)jarg1;
271 Dali::Extents* arg2 = (Dali::Extents *)jarg2;
274 arg1->Dali::Toolkit::Flex::Node::SetPadding( *arg2);
275 } catch (std::out_of_range& e) {
277 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what()));
279 } catch (std::exception& e) {
281 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what()));
285 SWIG_CSharpException(SWIG_UnknownError, "unknown error");
291 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_FlexLayout_GetFlexDirection(void * jarg1)
294 Dali::Toolkit::Flex::Node *arg1 = (Dali::Toolkit::Flex::Node *) 0 ;
295 Dali::Toolkit::Flex::FlexDirection result;
297 arg1 = (Dali::Toolkit::Flex::Node *)jarg1;
300 result = (Dali::Toolkit::Flex::FlexDirection)arg1->Dali::Toolkit::Flex::Node::GetFlexDirection();
301 } catch (std::out_of_range& e) {
303 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
305 } catch (std::exception& e) {
307 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
311 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
315 jresult = (int)result;
320 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FlexLayout_SetFlexJustification(void * jarg1, int jarg2)
322 Dali::Toolkit::Flex::Node *arg1 = (Dali::Toolkit::Flex::Node *) 0 ;
323 Dali::Toolkit::Flex::Justification arg2 ;
325 arg1 = (Dali::Toolkit::Flex::Node *)jarg1;
326 arg2 = (Dali::Toolkit::Flex::Justification)jarg2;
329 arg1->Dali::Toolkit::Flex::Node::SetFlexJustification(arg2);
330 } catch (std::out_of_range& e) {
332 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
334 } catch (std::exception& e) {
336 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
340 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
347 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_FlexLayout_GetFlexJustification(void * jarg1)
350 Dali::Toolkit::Flex::Node *arg1 = (Dali::Toolkit::Flex::Node *) 0 ;
351 Dali::Toolkit::Flex::Justification result;
353 arg1 = (Dali::Toolkit::Flex::Node *)jarg1;
356 result = (Dali::Toolkit::Flex::Justification)arg1->Dali::Toolkit::Flex::Node::GetFlexJustification();
357 } catch (std::out_of_range& e) {
359 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
361 } catch (std::exception& e) {
363 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
367 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
371 jresult = (int)result;
376 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FlexLayout_SetFlexWrap(void * jarg1, int jarg2)
379 Dali::Toolkit::Flex::Node* arg1 = (Dali::Toolkit::Flex::Node *)jarg1;
380 Dali::Toolkit::Flex::WrapType arg2 = (Dali::Toolkit::Flex::WrapType)jarg2;
383 arg1->Dali::Toolkit::Flex::Node::SetFlexWrap(arg2);
384 } catch (std::out_of_range& e) {
386 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
388 } catch (std::exception& e) {
390 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
394 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
401 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_FlexLayout_GetFlexWrap(void * jarg1)
404 Dali::Toolkit::Flex::Node *arg1 = (Dali::Toolkit::Flex::Node *) 0 ;
405 Dali::Toolkit::Flex::WrapType result;
407 arg1 = (Dali::Toolkit::Flex::Node *)jarg1;
410 result = (Dali::Toolkit::Flex::WrapType)arg1->Dali::Toolkit::Flex::Node::GetFlexWrap();
411 } catch (std::out_of_range& e) {
413 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
415 } catch (std::exception& e) {
417 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
421 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
425 jresult = (int)result;
430 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FlexLayout_SetFlexAlignment(void * jarg1, int jarg2)
432 Dali::Toolkit::Flex::Node *arg1 = (Dali::Toolkit::Flex::Node *) 0 ;
433 Dali::Toolkit::Flex::Alignment arg2 ;
435 arg1 = (Dali::Toolkit::Flex::Node *)jarg1;
436 arg2 = (Dali::Toolkit::Flex::Alignment)jarg2;
439 arg1->Dali::Toolkit::Flex::Node::SetFlexAlignment(arg2);
440 } catch (std::out_of_range& e) {
442 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
444 } catch (std::exception& e) {
446 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
450 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
457 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_FlexLayout_GetFlexAlignment(void * jarg1)
460 Dali::Toolkit::Flex::Node *arg1 = (Dali::Toolkit::Flex::Node *) 0 ;
461 Dali::Toolkit::Flex::Alignment result;
463 arg1 = (Dali::Toolkit::Flex::Node *)jarg1;
466 result = (Dali::Toolkit::Flex::Alignment)arg1->Dali::Toolkit::Flex::Node::GetFlexAlignment();
467 } catch (std::out_of_range& e) {
469 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
471 } catch (std::exception& e) {
473 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
477 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
481 jresult = (int)result;
486 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_FlexLayout_SetFlexItemsAlignment(void * jarg1, int jarg2)
488 Dali::Toolkit::Flex::Node *arg1 = (Dali::Toolkit::Flex::Node *) 0 ;
489 Dali::Toolkit::Flex::Alignment arg2 ;
491 arg1 = (Dali::Toolkit::Flex::Node *)jarg1;
492 arg2 = (Dali::Toolkit::Flex::Alignment)jarg2;
495 arg1->Dali::Toolkit::Flex::Node::SetFlexItemsAlignment(arg2);
496 } catch (std::out_of_range& e) {
498 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
500 } catch (std::exception& e) {
502 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
506 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
513 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_FlexLayout_GetFlexItemsAlignment(void * jarg1)
516 Dali::Toolkit::Flex::Node *arg1 = (Dali::Toolkit::Flex::Node *) 0 ;
517 Dali::Toolkit::Flex::Alignment result;
519 arg1 = (Dali::Toolkit::Flex::Node *)jarg1;
522 result = (Dali::Toolkit::Flex::Alignment)arg1->Dali::Toolkit::Flex::Node::GetFlexItemsAlignment();
523 } catch (std::out_of_range& e) {
525 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
527 } catch (std::exception& e) {
529 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
533 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
537 jresult = (int)result;