Add absolute/flex/linear layout binding
[platform/core/uifw/dali-csharp-binder.git] / dali-csharp-binder / src / absolute-layout.cpp
1 #ifndef CSHARP_ABSOLUTE_LAYOUT
2 #define CSHARP_ABSOLUTE_LAYOUT
3 #endif
4
5 #include "common.h"
6 #include <dali-toolkit/devel-api/layouting/absolute-layout.h>
7
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11
12 SWIGEXPORT Dali::Toolkit::LayoutGroup * SWIGSTDCALL CSharp_Dali_AbsoluteLayout_SWIGUpcast(Dali::Toolkit::AbsoluteLayout *jarg1) {
13     return (Dali::Toolkit::LayoutGroup *)jarg1;
14 }
15
16 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_AbsoluteLayout__SWIG_0() {
17   void * jresult ;
18   Dali::Toolkit::AbsoluteLayout *result = 0 ;
19
20   {
21     try {
22       result = (Dali::Toolkit::AbsoluteLayout *)new Dali::Toolkit::AbsoluteLayout();
23     } catch (std::out_of_range& e) {
24       {
25         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
26       };
27     } catch (std::exception& e) {
28       {
29         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
30       };
31     } catch (...) {
32       {
33         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
34       };
35     }
36   }
37   jresult = (void *)result;
38   return jresult;
39 }
40
41
42 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_AbsoluteLayout_New() {
43   void * jresult ;
44   Dali::Toolkit::AbsoluteLayout result;
45
46   {
47     try {
48       result = Dali::Toolkit::AbsoluteLayout::New();
49     } catch (std::out_of_range& e) {
50       {
51         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
52       };
53     } catch (std::exception& e) {
54       {
55         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
56       };
57     } catch (...) {
58       {
59         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
60       };
61     }
62   }
63   jresult = new Dali::Toolkit::AbsoluteLayout((const Dali::Toolkit::AbsoluteLayout &)result);
64   return jresult;
65 }
66
67
68 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_AbsoluteLayout_DownCast(void * jarg1) {
69   void * jresult ;
70   Dali::BaseHandle arg1 ;
71   Dali::BaseHandle *argp1 ;
72   Dali::Toolkit::AbsoluteLayout result;
73
74   argp1 = (Dali::BaseHandle *)jarg1;
75   if (!argp1) {
76     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::BaseHandle", 0);
77     return 0;
78   }
79   arg1 = *argp1;
80   {
81     try {
82       result = Dali::Toolkit::AbsoluteLayout::DownCast(arg1);
83     } catch (std::out_of_range& e) {
84       {
85         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
86       };
87     } catch (std::exception& e) {
88       {
89         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
90       };
91     } catch (...) {
92       {
93         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
94       };
95     }
96   }
97   jresult = new Dali::Toolkit::AbsoluteLayout((const Dali::Toolkit::AbsoluteLayout &)result);
98   return jresult;
99 }
100
101
102 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_AbsoluteLayout__SWIG_1(void * jarg1) {
103   void * jresult ;
104   Dali::Toolkit::AbsoluteLayout *arg1 = 0 ;
105   Dali::Toolkit::AbsoluteLayout *result = 0 ;
106
107   arg1 = (Dali::Toolkit::AbsoluteLayout *)jarg1;
108   if (!arg1) {
109     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::AbsoluteLayout const & type is null", 0);
110     return 0;
111   }
112   {
113     try {
114       result = (Dali::Toolkit::AbsoluteLayout *)new Dali::Toolkit::AbsoluteLayout((Dali::Toolkit::AbsoluteLayout const &)*arg1);
115     } catch (std::out_of_range& e) {
116       {
117         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
118       };
119     } catch (std::exception& e) {
120       {
121         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
122       };
123     } catch (...) {
124       {
125         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
126       };
127     }
128   }
129   jresult = (void *)result;
130   return jresult;
131 }
132
133
134 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_AbsoluteLayout_Assign(void * jarg1, void * jarg2) {
135   void * jresult ;
136   Dali::Toolkit::AbsoluteLayout *arg1 = (Dali::Toolkit::AbsoluteLayout *) 0 ;
137   Dali::Toolkit::AbsoluteLayout *arg2 = 0 ;
138   Dali::Toolkit::AbsoluteLayout *result = 0 ;
139
140   arg1 = (Dali::Toolkit::AbsoluteLayout *)jarg1;
141   arg2 = (Dali::Toolkit::AbsoluteLayout *)jarg2;
142   if (!arg2) {
143     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::AbsoluteLayout const & type is null", 0);
144     return 0;
145   }
146   {
147     try {
148       result = (Dali::Toolkit::AbsoluteLayout *) &(arg1)->operator =((Dali::Toolkit::AbsoluteLayout const &)*arg2);
149     } catch (std::out_of_range& e) {
150       {
151         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
152       };
153     } catch (std::exception& e) {
154       {
155         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
156       };
157     } catch (...) {
158       {
159         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
160       };
161     }
162   }
163   jresult = (void *)result;
164   return jresult;
165 }
166
167
168 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_AbsoluteLayout(void * jarg1) {
169   Dali::Toolkit::AbsoluteLayout *arg1 = (Dali::Toolkit::AbsoluteLayout *) 0 ;
170
171   arg1 = (Dali::Toolkit::AbsoluteLayout *)jarg1;
172   {
173     try {
174       delete arg1;
175     } catch (std::out_of_range& e) {
176       {
177         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
178       };
179     } catch (std::exception& e) {
180       {
181         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
182       };
183     } catch (...) {
184       {
185         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
186       };
187     }
188   }
189 }
190
191 #ifdef __cplusplus
192 }
193 #endif