2 * Copyright (c) 2018 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 #include <dali-toolkit/devel-api/layouting/measured-size.h>
25 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_MeasuredSize__SWIG_0()
28 Dali::Toolkit::MeasuredSize *result = 0 ;
32 result = (Dali::Toolkit::MeasuredSize *)new Dali::Toolkit::MeasuredSize();
34 catch (std::out_of_range& e)
36 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
38 catch (std::exception& e)
40 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
44 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
46 jresult = (void *)result;
51 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_MeasuredSize__SWIG_1(void * jarg1)
54 SwigValueWrapper< Dali::Toolkit::LayoutLength > arg1 ;
55 Dali::Toolkit::LayoutLength *argp1 ;
56 Dali::Toolkit::MeasuredSize *result = 0 ;
58 argp1 = (Dali::Toolkit::LayoutLength *)jarg1;
61 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::LayoutLength", 0);
67 result = (Dali::Toolkit::MeasuredSize *)new Dali::Toolkit::MeasuredSize(arg1);
69 catch (std::out_of_range& e)
71 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
73 catch (std::exception& e)
75 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
79 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
81 jresult = (void *)result;
86 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_MeasuredSize__SWIG_2(void * jarg1, int jarg2)
89 SwigValueWrapper< Dali::Toolkit::LayoutLength > arg1 ;
90 Dali::Toolkit::MeasuredSize::State arg2 ;
91 Dali::Toolkit::LayoutLength *argp1 ;
92 Dali::Toolkit::MeasuredSize *result = 0 ;
94 argp1 = (Dali::Toolkit::LayoutLength *)jarg1;
97 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::LayoutLength", 0);
101 arg2 = (Dali::Toolkit::MeasuredSize::State)jarg2;
104 result = (Dali::Toolkit::MeasuredSize *)new Dali::Toolkit::MeasuredSize(arg1,arg2);
106 catch (std::out_of_range& e)
108 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
110 catch (std::exception& e)
112 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
116 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
119 jresult = (void *)result;
124 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_MeasuredSize(void * jarg1)
126 Dali::Toolkit::MeasuredSize *arg1 = (Dali::Toolkit::MeasuredSize *) 0 ;
128 arg1 = (Dali::Toolkit::MeasuredSize *)jarg1;
133 catch (std::out_of_range& e)
135 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
137 catch (std::exception& e)
139 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
143 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
148 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_MeasuredSize_Assign__SWIG_0(void * jarg1, void * jarg2)
151 Dali::Toolkit::MeasuredSize *arg1 = (Dali::Toolkit::MeasuredSize *) 0 ;
152 Dali::Toolkit::MeasuredSize *arg2 = 0 ;
153 Dali::Toolkit::MeasuredSize *result = 0 ;
155 arg1 = (Dali::Toolkit::MeasuredSize *)jarg1;
156 arg2 = (Dali::Toolkit::MeasuredSize *)jarg2;
159 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::MeasuredSize const & type is null", 0);
164 result = (Dali::Toolkit::MeasuredSize *) &(arg1)->operator =((Dali::Toolkit::MeasuredSize const &)*arg2);
166 catch (std::out_of_range& e)
168 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
170 catch (std::exception& e)
172 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
176 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
178 jresult = (void *)result;
183 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_MeasuredSize_Assign__SWIG_1(void * jarg1, int jarg2)
186 Dali::Toolkit::MeasuredSize *arg1 = (Dali::Toolkit::MeasuredSize *) 0 ;
187 Dali::Toolkit::MeasuredSize *result = 0 ;
189 arg1 = (Dali::Toolkit::MeasuredSize *)jarg1;
193 result = (Dali::Toolkit::MeasuredSize *) &(arg1)->operator =(jarg2);
195 catch (std::out_of_range& e)
197 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
199 catch (std::exception& e)
201 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
205 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
208 jresult = (void *)result;
213 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_MeasuredSize_EqualTo(void * jarg1, void * jarg2)
215 unsigned int jresult ;
216 Dali::Toolkit::MeasuredSize *arg1 = (Dali::Toolkit::MeasuredSize *) 0 ;
217 Dali::Toolkit::MeasuredSize arg2 ;
218 Dali::Toolkit::MeasuredSize *argp2 ;
221 arg1 = (Dali::Toolkit::MeasuredSize *)jarg1;
222 argp2 = (Dali::Toolkit::MeasuredSize *)jarg2;
225 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::MeasuredSize", 0);
231 result = (bool)(arg1)->operator ==(arg2);
233 catch (std::out_of_range& e)
235 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
237 catch (std::exception& e)
239 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
243 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
250 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_MeasuredSize_NotEqualTo(void * jarg1, void * jarg2)
252 unsigned int jresult ;
253 Dali::Toolkit::MeasuredSize *arg1 = (Dali::Toolkit::MeasuredSize *) 0 ;
254 Dali::Toolkit::MeasuredSize arg2 ;
255 Dali::Toolkit::MeasuredSize *argp2 ;
258 arg1 = (Dali::Toolkit::MeasuredSize *)jarg1;
259 argp2 = (Dali::Toolkit::MeasuredSize *)jarg2;
262 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::MeasuredSize", 0);
268 result = (bool)(arg1)->operator !=(arg2);
270 catch (std::out_of_range& e)
272 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
274 catch (std::exception& e)
276 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
280 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
287 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_MeasuredSize_SetState(void * jarg1, int jarg2)
289 Dali::Toolkit::MeasuredSize *arg1 = (Dali::Toolkit::MeasuredSize *) 0 ;
290 Dali::Toolkit::MeasuredSize::State arg2 ;
292 arg1 = (Dali::Toolkit::MeasuredSize *)jarg1;
293 arg2 = (Dali::Toolkit::MeasuredSize::State)jarg2;
296 (arg1)->SetState(arg2);
298 catch (std::out_of_range& e)
300 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
302 catch (std::exception& e)
304 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
308 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
313 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_MeasuredSize_GetState(void * jarg1)
316 Dali::Toolkit::MeasuredSize *arg1 = (Dali::Toolkit::MeasuredSize *) 0 ;
317 Dali::Toolkit::MeasuredSize::State result;
319 arg1 = (Dali::Toolkit::MeasuredSize *)jarg1;
322 result = (Dali::Toolkit::MeasuredSize::State)(arg1)->GetState();
324 catch (std::out_of_range& e)
326 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
328 catch (std::exception& e)
330 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
334 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
336 jresult = (int)result;
341 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_MeasuredSize_SetSize(void * jarg1, void * jarg2)
343 Dali::Toolkit::MeasuredSize *arg1 = (Dali::Toolkit::MeasuredSize *) 0 ;
344 SwigValueWrapper< Dali::Toolkit::LayoutLength > arg2 ;
345 Dali::Toolkit::LayoutLength *argp2 ;
347 arg1 = (Dali::Toolkit::MeasuredSize *)jarg1;
348 argp2 = (Dali::Toolkit::LayoutLength *)jarg2;
351 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::LayoutLength", 0);
357 (arg1)->SetSize(arg2);
359 catch (std::out_of_range& e)
361 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
363 catch (std::exception& e)
365 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
369 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
374 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_MeasuredSize_GetSize(void * jarg1)
377 Dali::Toolkit::MeasuredSize *arg1 = (Dali::Toolkit::MeasuredSize *) 0 ;
378 SwigValueWrapper< Dali::Toolkit::LayoutLength > result;
380 arg1 = (Dali::Toolkit::MeasuredSize *)jarg1;
383 result = (arg1)->GetSize();
385 catch (std::out_of_range& e)
387 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
389 catch (std::exception& e)
391 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
395 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
397 jresult = new Dali::Toolkit::LayoutLength((const Dali::Toolkit::LayoutLength &)result);