2 * Copyright (c) 2021 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/public-api/common/extents.h>
22 #include <dali-csharp-binder/common/common.h>
28 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_Extents__SWIG_0() {
30 Dali::Extents *result = 0 ;
34 result = (Dali::Extents *)new Dali::Extents();
35 } CALL_CATCH_EXCEPTION(0);
37 jresult = (void *)result;
42 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_Extents__SWIG_1(void * jarg1) {
44 Dali::Extents *arg1 = 0 ;
45 Dali::Extents *result = 0 ;
47 arg1 = (Dali::Extents *)jarg1;
49 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Extents const & type is null", 0);
54 result = (Dali::Extents *)new Dali::Extents((Dali::Extents const &)*arg1);
55 } CALL_CATCH_EXCEPTION(0);
57 jresult = (void *)result;
62 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_Extents__SWIG_2(unsigned short jarg1, unsigned short jarg2, unsigned short jarg3, unsigned short jarg4) {
68 Dali::Extents *result = 0 ;
70 arg1 = (uint16_t)jarg1;
71 arg2 = (uint16_t)jarg2;
72 arg3 = (uint16_t)jarg3;
73 arg4 = (uint16_t)jarg4;
76 result = (Dali::Extents *)new Dali::Extents(arg1, arg2, arg3, arg4);
77 } CALL_CATCH_EXCEPTION(0);
79 jresult = (void *)result;
84 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Extents_Assign__SWIG_0(void * jarg1, void * jarg2) {
86 Dali::Extents *arg1 = (Dali::Extents *) 0 ;
87 Dali::Extents *arg2 = 0 ;
88 Dali::Extents *result = 0 ;
90 arg1 = (Dali::Extents *)jarg1;
91 arg2 = (Dali::Extents *)jarg2;
93 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Extents const & type is null", 0);
98 result = (Dali::Extents *) &(arg1)->operator =((Dali::Extents const &)*arg2);
99 } CALL_CATCH_EXCEPTION(0);
101 jresult = (void *)result;
106 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Extents_Assign__SWIG_1(void * jarg1, void * jarg2) {
108 Dali::Extents *arg1 = (Dali::Extents *) 0 ;
109 uint16_t *arg2 = (uint16_t *) 0 ;
110 Dali::Extents *result = 0 ;
112 arg1 = (Dali::Extents *)jarg1;
113 arg2 = (uint16_t *)jarg2;
116 result = (Dali::Extents *) &(arg1)->operator =((uint16_t const *)arg2);
117 } CALL_CATCH_EXCEPTION(0);
119 jresult = (void *)result;
124 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_Extents_EqualTo(void * jarg1, void * jarg2) {
125 unsigned int jresult ;
126 Dali::Extents *arg1 = (Dali::Extents *) 0 ;
127 Dali::Extents *arg2 = 0 ;
130 arg1 = (Dali::Extents *)jarg1;
131 arg2 = (Dali::Extents *)jarg2;
133 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Extents const & type is null", 0);
138 result = (bool)((Dali::Extents const *)arg1)->operator ==((Dali::Extents const &)*arg2);
139 } CALL_CATCH_EXCEPTION(0);
146 SWIGEXPORT unsigned int SWIGSTDCALL CSharp_Dali_Extents_NotEqualTo(void * jarg1, void * jarg2) {
147 unsigned int jresult ;
148 Dali::Extents *arg1 = (Dali::Extents *) 0 ;
149 Dali::Extents *arg2 = 0 ;
152 arg1 = (Dali::Extents *)jarg1;
153 arg2 = (Dali::Extents *)jarg2;
155 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Extents const & type is null", 0);
160 result = (bool)((Dali::Extents const *)arg1)->operator !=((Dali::Extents const &)*arg2);
161 } CALL_CATCH_EXCEPTION(0);
168 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Extents_start_set(void * jarg1, unsigned short jarg2) {
169 Dali::Extents *arg1 = (Dali::Extents *) 0 ;
172 arg1 = (Dali::Extents *)jarg1;
173 arg2 = (uint16_t)jarg2;
174 if (arg1) (arg1)->start = arg2;
178 SWIGEXPORT unsigned short SWIGSTDCALL CSharp_Dali_Extents_start_get(void * jarg1) {
179 unsigned short jresult ;
180 Dali::Extents *arg1 = (Dali::Extents *) 0 ;
183 arg1 = (Dali::Extents *)jarg1;
184 result = ((arg1)->start);
190 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Extents_end_set(void * jarg1, unsigned short jarg2) {
191 Dali::Extents *arg1 = (Dali::Extents *) 0 ;
194 arg1 = (Dali::Extents *)jarg1;
195 arg2 = (uint16_t)jarg2;
196 if (arg1) (arg1)->end = arg2;
200 SWIGEXPORT unsigned short SWIGSTDCALL CSharp_Dali_Extents_end_get(void * jarg1) {
201 unsigned short jresult ;
202 Dali::Extents *arg1 = (Dali::Extents *) 0 ;
205 arg1 = (Dali::Extents *)jarg1;
206 result = ((arg1)->end);
212 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Extents_top_set(void * jarg1, unsigned short jarg2) {
213 Dali::Extents *arg1 = (Dali::Extents *) 0 ;
216 arg1 = (Dali::Extents *)jarg1;
217 arg2 = (uint16_t)jarg2;
218 if (arg1) (arg1)->top = arg2;
222 SWIGEXPORT unsigned short SWIGSTDCALL CSharp_Dali_Extents_top_get(void * jarg1) {
223 unsigned short jresult ;
224 Dali::Extents *arg1 = (Dali::Extents *) 0 ;
227 arg1 = (Dali::Extents *)jarg1;
228 result = ((arg1)->top);
234 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Extents_bottom_set(void * jarg1, unsigned short jarg2) {
235 Dali::Extents *arg1 = (Dali::Extents *) 0 ;
238 arg1 = (Dali::Extents *)jarg1;
239 arg2 = (uint16_t)jarg2;
240 if (arg1) (arg1)->bottom = arg2;
244 SWIGEXPORT unsigned short SWIGSTDCALL CSharp_Dali_Extents_bottom_get(void * jarg1) {
245 unsigned short jresult ;
246 Dali::Extents *arg1 = (Dali::Extents *) 0 ;
249 arg1 = (Dali::Extents *)jarg1;
250 result = ((arg1)->bottom);
256 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_Extents(void * jarg1) {
257 Dali::Extents *arg1 = (Dali::Extents *) 0 ;
259 arg1 = (Dali::Extents *)jarg1;
263 } CALL_CATCH_EXCEPTION();