Refactor dali-csharp-binder source files
[platform/core/uifw/dali-csharp-binder.git] / dali-csharp-binder / dali-core / extents-wrap.cpp
1 /*
2  * Copyright (c) 2021 Samsung Electronics Co., Ltd.
3  *
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
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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.
15  *
16  */
17
18 // EXTERNAL INCLUDES
19 #include <dali/public-api/common/extents.h>
20
21 // INTERNAL INCLUDES
22 #include <dali-csharp-binder/common/common.h>
23
24 #ifdef __cplusplus
25 extern "C" {
26 #endif
27
28 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_Extents__SWIG_0() {
29   void * jresult ;
30   Dali::Extents *result = 0 ;
31
32   {
33     try {
34       result = (Dali::Extents *)new Dali::Extents();
35     } CALL_CATCH_EXCEPTION(0);
36   }
37   jresult = (void *)result;
38   return jresult;
39 }
40
41
42 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_Extents__SWIG_1(void * jarg1) {
43   void * jresult ;
44   Dali::Extents *arg1 = 0 ;
45   Dali::Extents *result = 0 ;
46
47   arg1 = (Dali::Extents *)jarg1;
48   if (!arg1) {
49     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Extents const & type is null", 0);
50     return 0;
51   }
52   {
53     try {
54       result = (Dali::Extents *)new Dali::Extents((Dali::Extents const &)*arg1);
55     } CALL_CATCH_EXCEPTION(0);
56   }
57   jresult = (void *)result;
58   return jresult;
59 }
60
61
62 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_new_Extents__SWIG_2(unsigned short jarg1, unsigned short jarg2, unsigned short jarg3, unsigned short jarg4) {
63   void * jresult ;
64   uint16_t arg1 ;
65   uint16_t arg2 ;
66   uint16_t arg3 ;
67   uint16_t arg4 ;
68   Dali::Extents *result = 0 ;
69
70   arg1 = (uint16_t)jarg1;
71   arg2 = (uint16_t)jarg2;
72   arg3 = (uint16_t)jarg3;
73   arg4 = (uint16_t)jarg4;
74   {
75     try {
76       result = (Dali::Extents *)new Dali::Extents(arg1, arg2, arg3, arg4);
77     } CALL_CATCH_EXCEPTION(0);
78   }
79   jresult = (void *)result;
80   return jresult;
81 }
82
83
84 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Extents_Assign__SWIG_0(void * jarg1, void * jarg2) {
85   void * jresult ;
86   Dali::Extents *arg1 = (Dali::Extents *) 0 ;
87   Dali::Extents *arg2 = 0 ;
88   Dali::Extents *result = 0 ;
89
90   arg1 = (Dali::Extents *)jarg1;
91   arg2 = (Dali::Extents *)jarg2;
92   if (!arg2) {
93     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Extents const & type is null", 0);
94     return 0;
95   }
96   {
97     try {
98       result = (Dali::Extents *) &(arg1)->operator =((Dali::Extents const &)*arg2);
99     } CALL_CATCH_EXCEPTION(0);
100   }
101   jresult = (void *)result;
102   return jresult;
103 }
104
105
106 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Extents_Assign__SWIG_1(void * jarg1, void * jarg2) {
107   void * jresult ;
108   Dali::Extents *arg1 = (Dali::Extents *) 0 ;
109   uint16_t *arg2 = (uint16_t *) 0 ;
110   Dali::Extents *result = 0 ;
111
112   arg1 = (Dali::Extents *)jarg1;
113   arg2 = (uint16_t *)jarg2;
114   {
115     try {
116       result = (Dali::Extents *) &(arg1)->operator =((uint16_t const *)arg2);
117     } CALL_CATCH_EXCEPTION(0);
118   }
119   jresult = (void *)result;
120   return jresult;
121 }
122
123
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 ;
128   bool result;
129
130   arg1 = (Dali::Extents *)jarg1;
131   arg2 = (Dali::Extents *)jarg2;
132   if (!arg2) {
133     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Extents const & type is null", 0);
134     return 0;
135   }
136   {
137     try {
138       result = (bool)((Dali::Extents const *)arg1)->operator ==((Dali::Extents const &)*arg2);
139     } CALL_CATCH_EXCEPTION(0);
140   }
141   jresult = result;
142   return jresult;
143 }
144
145
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 ;
150   bool result;
151
152   arg1 = (Dali::Extents *)jarg1;
153   arg2 = (Dali::Extents *)jarg2;
154   if (!arg2) {
155     SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::Extents const & type is null", 0);
156     return 0;
157   }
158   {
159     try {
160       result = (bool)((Dali::Extents const *)arg1)->operator !=((Dali::Extents const &)*arg2);
161     } CALL_CATCH_EXCEPTION(0);
162   }
163   jresult = result;
164   return jresult;
165 }
166
167
168 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Extents_start_set(void * jarg1, unsigned short jarg2) {
169   Dali::Extents *arg1 = (Dali::Extents *) 0 ;
170   uint16_t arg2 ;
171
172   arg1 = (Dali::Extents *)jarg1;
173   arg2 = (uint16_t)jarg2;
174   if (arg1) (arg1)->start = arg2;
175 }
176
177
178 SWIGEXPORT unsigned short SWIGSTDCALL CSharp_Dali_Extents_start_get(void * jarg1) {
179   unsigned short jresult ;
180   Dali::Extents *arg1 = (Dali::Extents *) 0 ;
181   uint16_t result;
182
183   arg1 = (Dali::Extents *)jarg1;
184   result =  ((arg1)->start);
185   jresult = result;
186   return jresult;
187 }
188
189
190 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Extents_end_set(void * jarg1, unsigned short jarg2) {
191   Dali::Extents *arg1 = (Dali::Extents *) 0 ;
192   uint16_t arg2 ;
193
194   arg1 = (Dali::Extents *)jarg1;
195   arg2 = (uint16_t)jarg2;
196   if (arg1) (arg1)->end = arg2;
197 }
198
199
200 SWIGEXPORT unsigned short SWIGSTDCALL CSharp_Dali_Extents_end_get(void * jarg1) {
201   unsigned short jresult ;
202   Dali::Extents *arg1 = (Dali::Extents *) 0 ;
203   uint16_t result;
204
205   arg1 = (Dali::Extents *)jarg1;
206   result =  ((arg1)->end);
207   jresult = result;
208   return jresult;
209 }
210
211
212 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Extents_top_set(void * jarg1, unsigned short jarg2) {
213   Dali::Extents *arg1 = (Dali::Extents *) 0 ;
214   uint16_t arg2 ;
215
216   arg1 = (Dali::Extents *)jarg1;
217   arg2 = (uint16_t)jarg2;
218   if (arg1) (arg1)->top = arg2;
219 }
220
221
222 SWIGEXPORT unsigned short SWIGSTDCALL CSharp_Dali_Extents_top_get(void * jarg1) {
223   unsigned short jresult ;
224   Dali::Extents *arg1 = (Dali::Extents *) 0 ;
225   uint16_t result;
226
227   arg1 = (Dali::Extents *)jarg1;
228   result =  ((arg1)->top);
229   jresult = result;
230   return jresult;
231 }
232
233
234 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Extents_bottom_set(void * jarg1, unsigned short jarg2) {
235   Dali::Extents *arg1 = (Dali::Extents *) 0 ;
236   uint16_t arg2 ;
237
238   arg1 = (Dali::Extents *)jarg1;
239   arg2 = (uint16_t)jarg2;
240   if (arg1) (arg1)->bottom = arg2;
241 }
242
243
244 SWIGEXPORT unsigned short SWIGSTDCALL CSharp_Dali_Extents_bottom_get(void * jarg1) {
245   unsigned short jresult ;
246   Dali::Extents *arg1 = (Dali::Extents *) 0 ;
247   uint16_t result;
248
249   arg1 = (Dali::Extents *)jarg1;
250   result =  ((arg1)->bottom);
251   jresult = result;
252   return jresult;
253 }
254
255
256 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_Extents(void * jarg1) {
257   Dali::Extents *arg1 = (Dali::Extents *) 0 ;
258
259   arg1 = (Dali::Extents *)jarg1;
260   {
261     try {
262       delete arg1;
263     } CALL_CATCH_EXCEPTION();
264   }
265 }
266
267 #ifdef __cplusplus
268 }
269 #endif