86567d9d5c7896f61df6a73a195a7a074e62324d
[platform/core/uifw/dali-csharp-binder.git] / dali-csharp-binder / src / grid-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/grid.h>
7
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11
12
13 SWIGEXPORT Dali::Toolkit::LayoutGroup * SWIGSTDCALL CSharp_Dali_GridLayout_SWIGUpcast(Dali::Toolkit::Grid *jarg1) {
14     return (Dali::Toolkit::LayoutGroup *)jarg1;
15 }
16
17
18 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_GridLayout__SWIG_0() {
19   void * jresult ;
20   Dali::Toolkit::Grid *result = 0 ;
21
22   {
23     try {
24       result = (Dali::Toolkit::Grid *)new Dali::Toolkit::Grid();
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_GridLayout_New() {
45   void * jresult ;
46   Dali::Toolkit::Grid result;
47
48   {
49     try {
50       result = Dali::Toolkit::Grid::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::Grid((const Dali::Toolkit::Grid &)result);
66   return jresult;
67 }
68
69
70 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_GridLayout_DownCast(void * jarg1) {
71   void * jresult ;
72   Dali::BaseHandle arg1 ;
73   Dali::BaseHandle *argp1 ;
74   Dali::Toolkit::Grid 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::Grid::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::Grid((const Dali::Toolkit::Grid &)result);
100   return jresult;
101 }
102
103
104 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_GridLayout_SWIG_1(void * jarg1) {
105   void * jresult ;
106   Dali::Toolkit::Grid *arg1 = 0 ;
107   Dali::Toolkit::Grid *result = 0 ;
108
109   arg1 = (Dali::Toolkit::Grid *)jarg1;
110   if (!arg1) {
111     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Grid const & type is null", 0);
112     return 0;
113   }
114   {
115     try {
116       result = (Dali::Toolkit::Grid *)new Dali::Toolkit::Grid((Dali::Toolkit::Grid 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_GridLayout_Assign(void * jarg1, void * jarg2) {
137   void * jresult ;
138   Dali::Toolkit::Grid *arg1 = (Dali::Toolkit::Grid *) 0 ;
139   Dali::Toolkit::Grid *arg2 = 0 ;
140   Dali::Toolkit::Grid *result = 0 ;
141
142   arg1 = (Dali::Toolkit::Grid *)jarg1;
143   arg2 = (Dali::Toolkit::Grid *)jarg2;
144   if (!arg2) {
145     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Grid const & type is null", 0);
146     return 0;
147   }
148   {
149     try {
150       result = (Dali::Toolkit::Grid *) &(arg1)->operator =((Dali::Toolkit::Grid 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_GridLayout(void * jarg1) {
171   Dali::Toolkit::Grid *arg1 = (Dali::Toolkit::Grid *) 0 ;
172
173   arg1 = (Dali::Toolkit::Grid *)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 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_GridLayout_SetColumns(void * jarg1, int jarg2) {
194   Dali::Toolkit::Grid *arg1 = (Dali::Toolkit::Grid *) 0 ;
195   int arg2 ;
196
197   arg1 = (Dali::Toolkit::Grid *)jarg1;
198   arg2 = (int)jarg2;
199   {
200     try {
201       (arg1)->SetNumberOfColumns(arg2);
202     } catch (std::out_of_range& e) {
203       {
204         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
205       };
206     } catch (std::exception& e) {
207       {
208         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
209       };
210     } catch (...) {
211       {
212         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
213       };
214     }
215   }
216 }
217
218 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_GridLayout_GetColumns(void * jarg1) {
219   int jresult ;
220   Dali::Toolkit::Grid *arg1 = (Dali::Toolkit::Grid *) 0 ;
221   int result;
222
223   arg1 = (Dali::Toolkit::Grid *)jarg1;
224   {
225     try {
226       result = (int)(arg1)->GetNumberOfColumns();
227     } catch (std::out_of_range& e) {
228       {
229         SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
230       };
231     } catch (std::exception& e) {
232       {
233         SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
234       };
235     } catch (...) {
236       {
237         SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
238       };
239     }
240   }
241   jresult = (int)result;
242   return jresult;
243 }
244
245
246 #ifdef __cplusplus
247 }
248 #endif