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-item-impl.h>
20 #include <dali-toolkit/devel-api/layouting/layout-parent-impl.h>
21 #include <dali-toolkit/devel-api/layouting/layout-child-impl.h>
27 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LayoutParent_GetParent(void * jarg1) {
29 Dali::Toolkit::Internal::LayoutChild *arg1 = (Dali::Toolkit::Internal::LayoutChild *) 0 ;
30 Dali::Toolkit::Internal::LayoutParent *result = 0 ;
32 arg1 = (Dali::Toolkit::Internal::LayoutChild *)jarg1;
35 result = (Dali::Toolkit::Internal::LayoutParent *)(arg1)->GetParent();
36 } catch (std::out_of_range& e) {
38 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
40 } catch (std::exception& e) {
42 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
46 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
50 jresult = (void *)result;
54 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_LayoutItemWrapper_ChildProperty_WIDTH_SPECIFICATION_get() {
58 result = (int)Dali::Toolkit::LayoutItem::ChildProperty::WIDTH_SPECIFICATION;
59 jresult = (int)result;
64 SWIGEXPORT int SWIGSTDCALL CSharp_Dali_LayoutItemWrapper_ChildProperty_HEIGHT_SPECIFICATION_get() {
68 result = (int)Dali::Toolkit::LayoutItem::ChildProperty::HEIGHT_SPECIFICATION;
69 jresult = (int)result;
73 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_LayoutItemWrapper_ChildProperty() {
75 Dali::Toolkit::LayoutItem::ChildProperty *result = 0 ;
79 result = (Dali::Toolkit::LayoutItem::ChildProperty *)new Dali::Toolkit::LayoutItem::ChildProperty();
80 } catch (std::out_of_range& e) {
82 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
84 } catch (std::exception& e) {
86 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
90 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
94 jresult = (void *)result;
99 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_LayoutItemWrapper_ChildProperty(void * jarg1) {
100 Dali::Toolkit::LayoutItem::ChildProperty *arg1 = (Dali::Toolkit::LayoutItem::ChildProperty *) 0 ;
102 arg1 = (Dali::Toolkit::LayoutItem::ChildProperty *)jarg1;
106 } catch (std::out_of_range& e) {
108 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
110 } catch (std::exception& e) {
112 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
116 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
123 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_LayoutItemWrapper__SWIG_0() {
125 Dali::Toolkit::LayoutItem *result = 0 ;
129 result = (Dali::Toolkit::LayoutItem *)new Dali::Toolkit::LayoutItem();
130 } catch (std::out_of_range& e) {
132 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
134 } catch (std::exception& e) {
136 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
140 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
144 jresult = (void *)result;
149 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_LayoutItemWrapper(void * jarg1) {
150 Dali::Toolkit::LayoutItem *arg1 = (Dali::Toolkit::LayoutItem *) 0 ;
152 arg1 = (Dali::Toolkit::LayoutItem *)jarg1;
156 } catch (std::out_of_range& e) {
158 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
160 } catch (std::exception& e) {
162 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
166 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
173 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LayoutItemWrapper_New(void * jarg1) {
175 Dali::Handle *arg1 = 0 ;
176 Dali::Toolkit::LayoutItem result;
178 arg1 = (Dali::Handle *)jarg1;
180 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Handle & type is null", 0);
185 result = Dali::Toolkit::LayoutItem::New(*arg1);
186 } catch (std::out_of_range& e) {
188 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
190 } catch (std::exception& e) {
192 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
196 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
200 jresult = new Dali::Toolkit::LayoutItem((const Dali::Toolkit::LayoutItem &)result);
205 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_LayoutItemWrapper__SWIG_1(void * jarg1) {
207 Dali::Toolkit::LayoutItem *arg1 = 0 ;
208 Dali::Toolkit::LayoutItem *result = 0 ;
210 arg1 = (Dali::Toolkit::LayoutItem *)jarg1;
212 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::LayoutItem const & type is null", 0);
217 result = (Dali::Toolkit::LayoutItem *)new Dali::Toolkit::LayoutItem((Dali::Toolkit::LayoutItem const &)*arg1);
218 } catch (std::out_of_range& e) {
220 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
222 } catch (std::exception& e) {
224 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
228 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
232 jresult = (void *)result;
237 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LayoutItemWrapper_Assign(void * jarg1, void * jarg2) {
239 Dali::Toolkit::LayoutItem *arg1 = (Dali::Toolkit::LayoutItem *) 0 ;
240 Dali::Toolkit::LayoutItem *arg2 = 0 ;
241 Dali::Toolkit::LayoutItem *result = 0 ;
243 arg1 = (Dali::Toolkit::LayoutItem *)jarg1;
244 arg2 = (Dali::Toolkit::LayoutItem *)jarg2;
246 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Toolkit::LayoutItem const & type is null", 0);
251 result = (Dali::Toolkit::LayoutItem *) &(arg1)->operator =((Dali::Toolkit::LayoutItem const &)*arg2);
252 } catch (std::out_of_range& e) {
254 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
256 } catch (std::exception& e) {
258 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
262 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
266 jresult = (void *)result;
270 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LayoutItemWrapper_GetOwner(void * jarg1) {
272 Dali::Toolkit::LayoutItem *arg1 = (Dali::Toolkit::LayoutItem *) 0 ;
275 arg1 = (Dali::Toolkit::LayoutItem *)jarg1;
278 result = ((Dali::Toolkit::LayoutItem const *)arg1)->GetOwner();
279 } catch (std::out_of_range& e) {
281 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
283 } catch (std::exception& e) {
285 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
289 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
293 jresult = new Dali::Handle((const Dali::Handle &)result);
297 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_LayoutItemWrapper_SetAnimateLayout(void * jarg1, unsigned int jarg2) {
298 Dali::Toolkit::LayoutItem *arg1 = (Dali::Toolkit::LayoutItem *) 0 ;
301 arg1 = (Dali::Toolkit::LayoutItem *)jarg1;
302 arg2 = jarg2 ? true : false;
305 (arg1)->SetAnimateLayout(arg2);
306 } catch (std::out_of_range& e) {
308 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
310 } catch (std::exception& e) {
312 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
316 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
323 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_LayoutItemWrapper_IsLayoutAnimated(void * jarg1) {
324 unsigned int jresult ;
325 Dali::Toolkit::LayoutItem *arg1 = (Dali::Toolkit::LayoutItem *) 0 ;
328 arg1 = (Dali::Toolkit::LayoutItem *)jarg1;
331 result = (bool)((Dali::Toolkit::LayoutItem const *)arg1)->IsLayoutAnimated();
332 } catch (std::out_of_range& e) {
334 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
336 } catch (std::exception& e) {
338 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
342 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
351 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_LayoutItemWrapper__SWIG_2(void * jarg1) {
353 Dali::Toolkit::Internal::LayoutItem *arg1 = (Dali::Toolkit::Internal::LayoutItem *) 0 ;
354 Dali::Toolkit::LayoutItem *result = 0 ;
356 arg1 = (Dali::Toolkit::Internal::LayoutItem *)jarg1;
359 result = (Dali::Toolkit::LayoutItem *)new Dali::Toolkit::LayoutItem(arg1);
360 } catch (std::out_of_range& e) {
362 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
364 } catch (std::exception& e) {
366 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
370 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
374 jresult = (void *)result;
378 SWIGEXPORT Dali::BaseHandle * SWIGSTDCALL CSharp_Dali_LayoutItemWrapper_SWIGUpcast(Dali::Toolkit::LayoutItem *jarg1) {
379 return (Dali::BaseHandle *)jarg1;
382 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_LayoutItemWrapper_GetImplementation(void * jarg1) {
383 Dali::Toolkit::LayoutItem *arg1 = (Dali::Toolkit::LayoutItem *) 0;
384 Dali::BaseObject* object = (Dali::BaseObject *) 0;
385 Dali::Toolkit::Internal::LayoutItem* result = (Dali::Toolkit::Internal::LayoutItem*) 0;
387 arg1 = (Dali::Toolkit::LayoutItem *)jarg1;
391 object = &(arg1->GetBaseObject());
392 result = static_cast< Dali::Toolkit::Internal::LayoutItem* >( object );
393 } catch (std::out_of_range& e) {
395 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
397 } catch (std::exception& e) {
399 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
403 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
407 return (void*) result;