1 #ifndef CSHARP_LINEAR_LAYOUT
2 #define CSHARP_LINEAR_LAYOUT
6 #include <dali-toolkit/devel-api/layouting/grid.h>
13 SWIGEXPORT Dali::Toolkit::LayoutGroup * SWIGSTDCALL CSharp_Dali_GridLayout_SWIGUpcast(Dali::Toolkit::Grid *jarg1) {
14 return (Dali::Toolkit::LayoutGroup *)jarg1;
18 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_GridLayout__SWIG_0() {
20 Dali::Toolkit::Grid *result = 0 ;
24 result = (Dali::Toolkit::Grid *)new Dali::Toolkit::Grid();
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_GridLayout_New() {
46 Dali::Toolkit::Grid result;
50 result = Dali::Toolkit::Grid::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::Grid((const Dali::Toolkit::Grid &)result);
70 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_GridLayout_DownCast(void * jarg1) {
72 Dali::BaseHandle arg1 ;
73 Dali::BaseHandle *argp1 ;
74 Dali::Toolkit::Grid result;
76 argp1 = (Dali::BaseHandle *)jarg1;
78 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::BaseHandle", 0);
84 result = Dali::Toolkit::Grid::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::Grid((const Dali::Toolkit::Grid &)result);
104 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_GridLayout_SWIG_1(void * jarg1) {
106 Dali::Toolkit::Grid *arg1 = 0 ;
107 Dali::Toolkit::Grid *result = 0 ;
109 arg1 = (Dali::Toolkit::Grid *)jarg1;
111 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Grid const & type is null", 0);
116 result = (Dali::Toolkit::Grid *)new Dali::Toolkit::Grid((Dali::Toolkit::Grid 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_GridLayout_Assign(void * jarg1, void * jarg2) {
138 Dali::Toolkit::Grid *arg1 = (Dali::Toolkit::Grid *) 0 ;
139 Dali::Toolkit::Grid *arg2 = 0 ;
140 Dali::Toolkit::Grid *result = 0 ;
142 arg1 = (Dali::Toolkit::Grid *)jarg1;
143 arg2 = (Dali::Toolkit::Grid *)jarg2;
145 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::Grid const & type is null", 0);
150 result = (Dali::Toolkit::Grid *) &(arg1)->operator =((Dali::Toolkit::Grid 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_GridLayout(void * jarg1) {
171 Dali::Toolkit::Grid *arg1 = (Dali::Toolkit::Grid *) 0 ;
173 arg1 = (Dali::Toolkit::Grid *)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 ;
193 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_GridLayout_SetColumns(void * jarg1, int jarg2) {
194 Dali::Toolkit::Grid *arg1 = (Dali::Toolkit::Grid *) 0 ;
197 arg1 = (Dali::Toolkit::Grid *)jarg1;
201 (arg1)->SetNumberOfColumns(arg2);
202 } catch (std::out_of_range& e) {
204 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
206 } catch (std::exception& e) {
208 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
212 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
218 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_GridLayout_GetColumns(void * jarg1) {
220 Dali::Toolkit::Grid *arg1 = (Dali::Toolkit::Grid *) 0 ;
223 arg1 = (Dali::Toolkit::Grid *)jarg1;
226 result = (int)(arg1)->GetNumberOfColumns();
227 } catch (std::out_of_range& e) {
229 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
231 } catch (std::exception& e) {
233 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
237 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
241 jresult = (int)result;