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::LayoutLength arg1( jarg1 );
63 Dali::Toolkit::MeasureSpec *result = 0 ;
66 result = (Dali::Toolkit::MeasureSpec *)new Dali::Toolkit::MeasureSpec(arg1);
67 } catch (std::out_of_range& e) {
69 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
71 } catch (std::exception& e) {
73 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
77 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
81 jresult = (void *)result;
86 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_MeasureSpec(void * jarg1) {
87 Dali::Toolkit::MeasureSpec *arg1 = (Dali::Toolkit::MeasureSpec *) 0 ;
89 arg1 = (Dali::Toolkit::MeasureSpec *)jarg1;
93 } catch (std::out_of_range& e) {
95 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
97 } catch (std::exception& e) {
99 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
103 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
110 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_MeasureSpec_Assign(void * jarg1, void * jarg2) {
112 Dali::Toolkit::MeasureSpec *arg1 = (Dali::Toolkit::MeasureSpec *) 0 ;
113 Dali::Toolkit::MeasureSpec *arg2 = 0 ;
114 Dali::Toolkit::MeasureSpec *result = 0 ;
116 arg1 = (Dali::Toolkit::MeasureSpec *)jarg1;
117 arg2 = (Dali::Toolkit::MeasureSpec *)jarg2;
119 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::MeasureSpec const & type is null", 0);
124 result = (Dali::Toolkit::MeasureSpec *) &(arg1)->operator =((Dali::Toolkit::MeasureSpec const &)*arg2);
125 } catch (std::out_of_range& e) {
127 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
129 } catch (std::exception& e) {
131 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
135 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
139 jresult = (void *)result;
144 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_MeasureSpec_EqualTo(void * jarg1, void * jarg2) {
145 unsigned int jresult ;
146 Dali::Toolkit::MeasureSpec *arg1 = (Dali::Toolkit::MeasureSpec *) 0 ;
147 SwigValueWrapper< Dali::Toolkit::MeasureSpec > arg2 ;
148 Dali::Toolkit::MeasureSpec *argp2 ;
151 arg1 = (Dali::Toolkit::MeasureSpec *)jarg1;
152 argp2 = (Dali::Toolkit::MeasureSpec *)jarg2;
154 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::MeasureSpec", 0);
160 result = (bool)(arg1)->operator ==(arg2);
161 } catch (std::out_of_range& e) {
163 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
165 } catch (std::exception& e) {
167 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
171 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
180 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_MeasureSpec_NotEqualTo(void * jarg1, void * jarg2) {
181 unsigned int jresult ;
182 Dali::Toolkit::MeasureSpec *arg1 = (Dali::Toolkit::MeasureSpec *) 0 ;
183 SwigValueWrapper< Dali::Toolkit::MeasureSpec > arg2 ;
184 Dali::Toolkit::MeasureSpec *argp2 ;
187 arg1 = (Dali::Toolkit::MeasureSpec *)jarg1;
188 argp2 = (Dali::Toolkit::MeasureSpec *)jarg2;
190 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::MeasureSpec", 0);
196 result = (bool)(arg1)->operator !=(arg2);
197 } catch (std::out_of_range& e) {
199 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
201 } catch (std::exception& e) {
203 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
207 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
216 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_MeasureSpec_GetMode(void * jarg1) {
218 Dali::Toolkit::MeasureSpec *arg1 = (Dali::Toolkit::MeasureSpec *) 0 ;
219 Dali::Toolkit::MeasureSpec::Mode result;
221 arg1 = (Dali::Toolkit::MeasureSpec *)jarg1;
224 result = (Dali::Toolkit::MeasureSpec::Mode)((Dali::Toolkit::MeasureSpec const *)arg1)->GetMode();
225 } catch (std::out_of_range& e) {
227 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
229 } catch (std::exception& e) {
231 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
235 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
239 jresult = (int)result;
244 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_MeasureSpec_GetSize(void * jarg1) {
246 Dali::Toolkit::MeasureSpec* arg1 = (Dali::Toolkit::MeasureSpec *)jarg1;
247 Dali::Toolkit::LayoutLength result( 0 );
250 result = (Dali::Toolkit::LayoutLength)((Dali::Toolkit::MeasureSpec const *)arg1)->GetSize();
251 } catch (std::out_of_range& e) {
253 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
255 } catch (std::exception& e) {
257 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
261 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
265 jresult = result.AsInteger();
270 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_MeasureSpec_Adjust(void * jarg1, int jarg2) {
272 SwigValueWrapper< Dali::Toolkit::MeasureSpec > arg1 ;
274 Dali::Toolkit::MeasureSpec *argp1 ;
275 SwigValueWrapper< Dali::Toolkit::MeasureSpec > result;
277 argp1 = (Dali::Toolkit::MeasureSpec *)jarg1;
279 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::MeasureSpec", 0);
286 result = Dali::Toolkit::MeasureSpec::Adjust(arg1,arg2);
287 } catch (std::out_of_range& e) {
289 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
291 } catch (std::exception& e) {
293 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
297 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
301 jresult = new Dali::Toolkit::MeasureSpec((const Dali::Toolkit::MeasureSpec &)result);
306 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_MeasureSpec_mSize_set(void * jarg1, int jarg2) {
307 Dali::Toolkit::MeasureSpec *arg1 = (Dali::Toolkit::MeasureSpec *) jarg1;
308 Dali::Toolkit::LayoutLength arg2( jarg2 );
309 if (arg1) (arg1)->SetSize( arg2 );
313 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_MeasureSpec_mSize_get(void * jarg1) {
315 Dali::Toolkit::MeasureSpec *arg1 = (Dali::Toolkit::MeasureSpec *) 0 ;
317 arg1 = (Dali::Toolkit::MeasureSpec *)jarg1;
318 Dali::Toolkit::LayoutLength result((arg1)->GetSize());
319 jresult = result.AsInteger();
324 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_MeasureSpec_mMode_set(void * jarg1, int jarg2) {
325 Dali::Toolkit::MeasureSpec *arg1 = (Dali::Toolkit::MeasureSpec *) 0 ;
326 Dali::Toolkit::MeasureSpec::Mode arg2 ;
328 arg1 = (Dali::Toolkit::MeasureSpec *)jarg1;
329 arg2 = (Dali::Toolkit::MeasureSpec::Mode)jarg2;
330 if (arg1) (arg1)->SetMode( arg2 );
334 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_MeasureSpec_mMode_get(void * jarg1) {
336 Dali::Toolkit::MeasureSpec *arg1 = (Dali::Toolkit::MeasureSpec *) 0 ;
337 Dali::Toolkit::MeasureSpec::Mode result;
339 arg1 = (Dali::Toolkit::MeasureSpec *)jarg1;
340 result = (Dali::Toolkit::MeasureSpec::Mode) ((arg1)->GetMode());
341 jresult = (int)result;