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.
24 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_MeasureSpec__SWIG_0(void * jarg1, int jarg2) {
26 SwigValueWrapper< Dali::Toolkit::LayoutLength > arg1 ;
27 Dali::Toolkit::MeasureSpec::Mode arg2 ;
28 Dali::Toolkit::LayoutLength *argp1 ;
29 Dali::Toolkit::MeasureSpec *result = 0 ;
31 argp1 = (Dali::Toolkit::LayoutLength *)jarg1;
33 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::LayoutLength", 0);
37 arg2 = (Dali::Toolkit::MeasureSpec::Mode)jarg2;
40 result = (Dali::Toolkit::MeasureSpec *)new Dali::Toolkit::MeasureSpec(arg1,arg2);
41 } catch (std::out_of_range& e) {
43 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
45 } catch (std::exception& e) {
47 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
51 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
55 jresult = (void *)result;
60 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_MeasureSpec__SWIG_1(int jarg1) {
62 Dali::Toolkit::MeasureSpec::IntType arg1 ;
63 Dali::Toolkit::MeasureSpec *result = 0 ;
65 arg1 = (Dali::Toolkit::MeasureSpec::IntType)jarg1;
68 result = (Dali::Toolkit::MeasureSpec *)new Dali::Toolkit::MeasureSpec(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;
83 jresult = (void *)result;
88 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_MeasureSpec(void * jarg1) {
89 Dali::Toolkit::MeasureSpec *arg1 = (Dali::Toolkit::MeasureSpec *) 0 ;
91 arg1 = (Dali::Toolkit::MeasureSpec *)jarg1;
95 } catch (std::out_of_range& e) {
97 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
99 } catch (std::exception& e) {
101 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
105 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
112 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_MeasureSpec_Assign(void * jarg1, void * jarg2) {
114 Dali::Toolkit::MeasureSpec *arg1 = (Dali::Toolkit::MeasureSpec *) 0 ;
115 Dali::Toolkit::MeasureSpec *arg2 = 0 ;
116 Dali::Toolkit::MeasureSpec *result = 0 ;
118 arg1 = (Dali::Toolkit::MeasureSpec *)jarg1;
119 arg2 = (Dali::Toolkit::MeasureSpec *)jarg2;
121 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::MeasureSpec const & type is null", 0);
126 result = (Dali::Toolkit::MeasureSpec *) &(arg1)->operator =((Dali::Toolkit::MeasureSpec const &)*arg2);
127 } catch (std::out_of_range& e) {
129 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
131 } catch (std::exception& e) {
133 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
137 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
141 jresult = (void *)result;
146 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_MeasureSpec_EqualTo(void * jarg1, void * jarg2) {
147 unsigned int jresult ;
148 Dali::Toolkit::MeasureSpec *arg1 = (Dali::Toolkit::MeasureSpec *) 0 ;
149 SwigValueWrapper< Dali::Toolkit::MeasureSpec > arg2 ;
150 Dali::Toolkit::MeasureSpec *argp2 ;
153 arg1 = (Dali::Toolkit::MeasureSpec *)jarg1;
154 argp2 = (Dali::Toolkit::MeasureSpec *)jarg2;
156 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::MeasureSpec", 0);
162 result = (bool)(arg1)->operator ==(arg2);
163 } catch (std::out_of_range& e) {
165 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
167 } catch (std::exception& e) {
169 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
173 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
182 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_MeasureSpec_NotEqualTo(void * jarg1, void * jarg2) {
183 unsigned int jresult ;
184 Dali::Toolkit::MeasureSpec *arg1 = (Dali::Toolkit::MeasureSpec *) 0 ;
185 SwigValueWrapper< Dali::Toolkit::MeasureSpec > arg2 ;
186 Dali::Toolkit::MeasureSpec *argp2 ;
189 arg1 = (Dali::Toolkit::MeasureSpec *)jarg1;
190 argp2 = (Dali::Toolkit::MeasureSpec *)jarg2;
192 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::MeasureSpec", 0);
198 result = (bool)(arg1)->operator !=(arg2);
199 } catch (std::out_of_range& e) {
201 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
203 } catch (std::exception& e) {
205 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
209 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
218 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_MeasureSpec_GetMode(void * jarg1) {
220 Dali::Toolkit::MeasureSpec *arg1 = (Dali::Toolkit::MeasureSpec *) 0 ;
221 Dali::Toolkit::MeasureSpec::Mode result;
223 arg1 = (Dali::Toolkit::MeasureSpec *)jarg1;
226 result = (Dali::Toolkit::MeasureSpec::Mode)((Dali::Toolkit::MeasureSpec const *)arg1)->GetMode();
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;
246 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_MeasureSpec_GetSize(void * jarg1) {
248 Dali::Toolkit::MeasureSpec *arg1 = (Dali::Toolkit::MeasureSpec *) 0 ;
249 Dali::Toolkit::MeasureSpec::IntType result;
251 arg1 = (Dali::Toolkit::MeasureSpec *)jarg1;
254 result = (Dali::Toolkit::MeasureSpec::IntType)((Dali::Toolkit::MeasureSpec const *)arg1)->GetSize();
255 } catch (std::out_of_range& e) {
257 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
259 } catch (std::exception& e) {
261 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
265 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
274 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_MeasureSpec_Adjust(void * jarg1, int jarg2) {
276 SwigValueWrapper< Dali::Toolkit::MeasureSpec > arg1 ;
278 Dali::Toolkit::MeasureSpec *argp1 ;
279 SwigValueWrapper< Dali::Toolkit::MeasureSpec > result;
281 argp1 = (Dali::Toolkit::MeasureSpec *)jarg1;
283 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::MeasureSpec", 0);
290 result = Dali::Toolkit::MeasureSpec::Adjust(arg1,arg2);
291 } catch (std::out_of_range& e) {
293 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
295 } catch (std::exception& e) {
297 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
301 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
305 jresult = new Dali::Toolkit::MeasureSpec((const Dali::Toolkit::MeasureSpec &)result);
310 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_MeasureSpec_mSize_set(void * jarg1, int jarg2) {
311 Dali::Toolkit::MeasureSpec *arg1 = (Dali::Toolkit::MeasureSpec *) 0 ;
312 Dali::Toolkit::MeasureSpec::IntType arg2 ;
314 arg1 = (Dali::Toolkit::MeasureSpec *)jarg1;
315 arg2 = (Dali::Toolkit::MeasureSpec::IntType)jarg2;
316 if (arg1) (arg1)->mSize = arg2;
320 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_MeasureSpec_mSize_get(void * jarg1) {
322 Dali::Toolkit::MeasureSpec *arg1 = (Dali::Toolkit::MeasureSpec *) 0 ;
323 Dali::Toolkit::MeasureSpec::IntType result;
325 arg1 = (Dali::Toolkit::MeasureSpec *)jarg1;
326 result = (Dali::Toolkit::MeasureSpec::IntType) ((arg1)->mSize);
332 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_MeasureSpec_mMode_set(void * jarg1, int jarg2) {
333 Dali::Toolkit::MeasureSpec *arg1 = (Dali::Toolkit::MeasureSpec *) 0 ;
334 Dali::Toolkit::MeasureSpec::Mode arg2 ;
336 arg1 = (Dali::Toolkit::MeasureSpec *)jarg1;
337 arg2 = (Dali::Toolkit::MeasureSpec::Mode)jarg2;
338 if (arg1) (arg1)->mMode = arg2;
342 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_MeasureSpec_mMode_get(void * jarg1) {
344 Dali::Toolkit::MeasureSpec *arg1 = (Dali::Toolkit::MeasureSpec *) 0 ;
345 Dali::Toolkit::MeasureSpec::Mode result;
347 arg1 = (Dali::Toolkit::MeasureSpec *)jarg1;
348 result = (Dali::Toolkit::MeasureSpec::Mode) ((arg1)->mMode);
349 jresult = (int)result;