2 * Copyright (c) 2020 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.
18 #ifndef CSHARP_ADAPTOR
19 #define CSHARP_ADAPTOR
23 #include <dali/integration-api/adaptor-framework/adaptor.h>
24 // #include <dali/public-api/adaptor-framework/application-configuration.h>
27 SWIGINTERN bool Dali_Signal_Sl_void_Sp_Dali_Adaptor_SA__SP__Sg__Empty(Dali::Signal< void (Dali::Adaptor &) > const *self){
30 SWIGINTERN std::size_t Dali_Signal_Sl_void_Sp_Dali_Adaptor_SA__SP__Sg__GetConnectionCount(Dali::Signal< void (Dali::Adaptor &) > const *self){
31 return self->GetConnectionCount();
33 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_Adaptor_SA__SP__Sg__Connect(Dali::Signal< void (Dali::Adaptor &) > *self,void (*func)(Dali::Adaptor &)){
34 self->Connect( func );
36 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_Adaptor_SA__SP__Sg__Disconnect(Dali::Signal< void (Dali::Adaptor &) > *self,void (*func)(Dali::Adaptor &)){
37 self->Disconnect( func );
39 SWIGINTERN void Dali_Signal_Sl_void_Sp_Dali_Adaptor_SA__SP__Sg__Emit(Dali::Signal< void (Dali::Adaptor &) > *self,Dali::Adaptor &arg){
48 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_delete_Adaptor(void * jarg1) {
49 Dali::Adaptor *arg1 = (Dali::Adaptor *) 0 ;
51 arg1 = (Dali::Adaptor *)jarg1;
55 } catch (std::out_of_range& e) {
57 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
59 } catch (std::exception& e) {
61 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
63 } catch (Dali::DaliException e) {
65 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
69 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
77 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Adaptor_SetRenderRefreshRate(void * jarg1, unsigned int jarg2) {
78 Dali::Adaptor *arg1 = (Dali::Adaptor *) 0 ;
81 arg1 = (Dali::Adaptor *)jarg1;
82 arg2 = (unsigned int)jarg2;
85 (arg1)->SetRenderRefreshRate(arg2);
86 } catch (std::out_of_range& e) {
88 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
90 } catch (std::exception& e) {
92 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
94 } catch (Dali::DaliException e) {
96 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
100 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
108 SWIGEXPORT void * SWIGSTDCALL CSharp_Dali_Adaptor_Get() {
110 Dali::Adaptor *result = 0 ;
114 result = (Dali::Adaptor *) &Dali::Adaptor::Get();
115 } catch (std::out_of_range& e) {
117 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return 0;
119 } catch (std::exception& e) {
121 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return 0;
123 } catch (Dali::DaliException e) {
125 SWIG_CSharpException(SWIG_UnknownError, e.condition); return 0;
129 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return 0;
134 jresult = (void *)result;
139 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Adaptor_FeedWheelEvent(void * jarg1, void * jarg2) {
140 Dali::Adaptor *arg1 = (Dali::Adaptor *) 0 ;
141 Dali::WheelEvent *arg2 = 0 ;
143 arg1 = (Dali::Adaptor *)jarg1;
144 arg2 = (Dali::WheelEvent *)jarg2;
146 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::WheelEvent & type is null", 0);
151 (arg1)->FeedWheelEvent(*arg2);
152 } catch (std::out_of_range& e) {
154 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
156 } catch (std::exception& e) {
158 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
160 } catch (Dali::DaliException e) {
162 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
166 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;
174 SWIGEXPORT void SWIGSTDCALL CSharp_Dali_Adaptor_FeedKeyEvent(void * jarg1, void * jarg2) {
175 Dali::Adaptor *arg1 = (Dali::Adaptor *) 0 ;
176 Dali::KeyEvent *arg2 = 0 ;
178 arg1 = (Dali::Adaptor *)jarg1;
179 arg2 = (Dali::KeyEvent *)jarg2;
181 SWIG_CSharpSetPendingExceptionArgument(SWIG_CSharpArgumentNullException, "Dali::KeyEvent & type is null", 0);
186 (arg1)->FeedKeyEvent(*arg2);
187 } catch (std::out_of_range& e) {
189 SWIG_CSharpException(SWIG_IndexError, const_cast<char*>(e.what())); return ;
191 } catch (std::exception& e) {
193 SWIG_CSharpException(SWIG_RuntimeError, const_cast<char*>(e.what())); return ;
195 } catch (Dali::DaliException e) {
197 SWIG_CSharpException(SWIG_UnknownError, e.condition); return ;
201 SWIG_CSharpException(SWIG_UnknownError, "unknown error"); return ;