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/layout-size.h>
26 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_LayoutSize__SWIG_0() {
28 Dali::Toolkit::LayoutSize *result = 0 ;
32 result = (Dali::Toolkit::LayoutSize *)new Dali::Toolkit::LayoutSize();
33 } catch (std::out_of_range& e) {
35 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
37 } catch (std::exception& e) {
39 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
43 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
47 jresult = (void *)result;
52 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_LayoutSize__SWIG_1(int jarg1, int jarg2) {
54 Dali::Toolkit::LayoutSize *result = 0 ;
58 result = (Dali::Toolkit::LayoutSize *)new Dali::Toolkit::LayoutSize(jarg1,jarg2);
59 } catch (std::out_of_range& e) {
61 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
63 } catch (std::exception& e) {
65 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
69 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
73 jresult = (void *)result;
78 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_LayoutSize__SWIG_2(void * jarg1) {
80 Dali::Toolkit::LayoutSize *arg1 = 0 ;
81 Dali::Toolkit::LayoutSize *result = 0 ;
83 arg1 = (Dali::Toolkit::LayoutSize *)jarg1;
85 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::LayoutSize const & type is null", 0);
90 result = (Dali::Toolkit::LayoutSize *)new Dali::Toolkit::LayoutSize((Dali::Toolkit::LayoutSize const &)*arg1);
91 } catch (std::out_of_range& e) {
93 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
95 } catch (std::exception& e) {
97 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
101 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
105 jresult = (void *)result;
110 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LayoutSize_Assign(void * jarg1, void * jarg2) {
112 Dali::Toolkit::LayoutSize *arg1 = (Dali::Toolkit::LayoutSize *) 0 ;
113 Dali::Toolkit::LayoutSize *arg2 = 0 ;
114 Dali::Toolkit::LayoutSize *result = 0 ;
116 arg1 = (Dali::Toolkit::LayoutSize *)jarg1;
117 arg2 = (Dali::Toolkit::LayoutSize *)jarg2;
119 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::LayoutSize const & type is null", 0);
124 result = (Dali::Toolkit::LayoutSize *) &(arg1)->operator =((Dali::Toolkit::LayoutSize 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 int SWIGSTDCALL CSharp_Dali_LayoutSize_GetWidth(void * jarg1) {
145 Dali::Toolkit::LayoutSize* arg1 = (Dali::Toolkit::LayoutSize *) jarg1;
146 return (int)(arg1)->GetWidth().AsInteger();
150 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_LayoutSize_GetHeight(void * jarg1) {
151 Dali::Toolkit::LayoutSize* arg1 = (Dali::Toolkit::LayoutSize *) jarg1;
152 return (int)(arg1)->GetHeight().AsInteger();
156 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutSize_SetWidth__SWIG_0(void * jarg1, int jarg2) {
157 Dali::Toolkit::LayoutSize *arg1 = (Dali::Toolkit::LayoutSize *)jarg1;
158 (arg1)->SetWidth(jarg2);
162 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutSize_SetHeight__SWIG_0(void * jarg1, int jarg2) {
163 Dali::Toolkit::LayoutSize *arg1 = (Dali::Toolkit::LayoutSize *)jarg1;
164 (arg1)->SetHeight(jarg2);
168 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutSize_SetWidth__SWIG_1(void * jarg1, void * jarg2) {
169 Dali::Toolkit::LayoutSize *arg1 = (Dali::Toolkit::LayoutSize *) 0 ;
170 SwigValueWrapper< Dali::Toolkit::LayoutLength > arg2 ;
171 Dali::Toolkit::LayoutLength *argp2 ;
173 arg1 = (Dali::Toolkit::LayoutSize *)jarg1;
174 argp2 = (Dali::Toolkit::LayoutLength *)jarg2;
176 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::LayoutLength", 0);
182 (arg1)->SetWidth(arg2);
183 } catch (std::out_of_range& e) {
185 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
187 } catch (std::exception& e) {
189 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
193 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
200 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutSize_SetHeight__SWIG_1(void * jarg1, void * jarg2) {
201 Dali::Toolkit::LayoutSize *arg1 = (Dali::Toolkit::LayoutSize *) 0 ;
202 SwigValueWrapper< Dali::Toolkit::LayoutLength > arg2 ;
203 Dali::Toolkit::LayoutLength *argp2 ;
205 arg1 = (Dali::Toolkit::LayoutSize *)jarg1;
206 argp2 = (Dali::Toolkit::LayoutLength *)jarg2;
208 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Attempt to dereference null Dali::Toolkit::LayoutLength", 0);
214 (arg1)->SetHeight(arg2);
215 } catch (std::out_of_range& e) {
217 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
219 } catch (std::exception& e) {
221 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
225 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
232 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_LayoutSize_EqualTo(void * jarg1, void * jarg2) {
233 unsigned int jresult ;
234 Dali::Toolkit::LayoutSize *arg1 = (Dali::Toolkit::LayoutSize *) 0 ;
235 Dali::Toolkit::LayoutSize *arg2 = 0 ;
238 arg1 = (Dali::Toolkit::LayoutSize *)jarg1;
239 arg2 = (Dali::Toolkit::LayoutSize *)jarg2;
241 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::LayoutSize const & type is null", 0);
246 result = (bool)(arg1)->operator ==((Dali::Toolkit::LayoutSize const &)*arg2);
247 } catch (std::out_of_range& e) {
249 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
251 } catch (std::exception& e) {
253 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
257 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
266 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutSize_x_set(void * jarg1, int jarg2) {
267 Dali::Toolkit::LayoutSize *arg1 = (Dali::Toolkit::LayoutSize *) 0 ;
269 arg1 = (Dali::Toolkit::LayoutSize *)jarg1;
270 if (arg1) (arg1)->x = jarg2;
274 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_LayoutSize_x_get(void * jarg1) {
275 Dali::Toolkit::LayoutSize *arg1 = (Dali::Toolkit::LayoutSize *) jarg1;
276 return (int) ((arg1)->x.AsInteger());
280 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutSize_width_set(void * jarg1, int jarg2) {
281 Dali::Toolkit::LayoutSize *arg1 = (Dali::Toolkit::LayoutSize *) jarg1;
283 if (arg1) (arg1)->width = jarg2;
287 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_LayoutSize_width_get(void * jarg1) {
288 Dali::Toolkit::LayoutSize *arg1 = (Dali::Toolkit::LayoutSize *) jarg1;
289 return (int) ((arg1)->width.AsInteger());
293 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutSize_y_set(void * jarg1, int jarg2) {
294 Dali::Toolkit::LayoutSize *arg1 = (Dali::Toolkit::LayoutSize *) jarg1;
296 if (arg1) (arg1)->y = jarg2;
300 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_LayoutSize_y_get(void * jarg1) {
301 Dali::Toolkit::LayoutSize *arg1 = (Dali::Toolkit::LayoutSize *) jarg1;
302 return (int) ((arg1)->x.AsInteger());
306 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutSize_height_set(void * jarg1, int jarg2) {
307 Dali::Toolkit::LayoutSize *arg1 = (Dali::Toolkit::LayoutSize *) jarg1;
309 if (arg1) (arg1)->height = jarg2;
313 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_LayoutSize_height_get(void * jarg1) {
314 Dali::Toolkit::LayoutSize *arg1 = (Dali::Toolkit::LayoutSize *) jarg1;
315 return (int) ((arg1)->height.AsInteger());
318 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_LayoutSize(void * jarg1) {
319 Dali::Toolkit::LayoutSize *arg1 = (Dali::Toolkit::LayoutSize *) 0 ;
321 arg1 = (Dali::Toolkit::LayoutSize *)jarg1;
325 } catch (std::out_of_range& e) {
327 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
329 } catch (std::exception& e) {
331 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
335 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;