X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=plugins%2Fdali-swig%2FSWIG%2Fdali.i;h=4e3fdb550f52921ce0d8dfc33a09bd265069aeda;hp=1f5149bf5a4fdc4720f294de761340e2785c2703;hb=13f7f10f99c5253c500ffd644a1ac4a9039d4a07;hpb=01bb79ad3a163f47b5b98ee2a89cbde8ddca9d3c diff --git a/plugins/dali-swig/SWIG/dali.i b/plugins/dali-swig/SWIG/dali.i index 1f5149b..4e3fdb5 100755 --- a/plugins/dali-swig/SWIG/dali.i +++ b/plugins/dali-swig/SWIG/dali.i @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * Copyright (c) 2017 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -49,22 +49,28 @@ #include #include +#include + #include #include #include #include +#include +#include #include #include #include #include #include +#include #include #include #include +#include #include #include @@ -73,6 +79,7 @@ #include #include #include +#include #include #include @@ -80,6 +87,8 @@ #include +#include + #include // add here SWIG version check @@ -165,8 +174,65 @@ return $null; %} + + + +// Type registry type maps +%typemap(cstype) Dali::TypeInfo::CreateFunction "System.Delegate" +%typemap(csin, pre ="System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate($csinput); ") + Dali::TypeInfo::CreateFunction "new System.Runtime.InteropServices.HandleRef(null, ip)" // null was this + +%typemap(cstype) Dali::CSharpTypeInfo::CreateFunction "System.Delegate" +%typemap(csin, pre ="System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate($csinput); ") + Dali::CSharpTypeInfo::CreateFunction "new System.Runtime.InteropServices.HandleRef(null, ip)" // null was this + + + +%typemap(cstype) Dali::CSharpTypeInfo::SetPropertyFunction "System.Delegate" +%typemap(csin, pre ="System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate($csinput); ") + Dali::CSharpTypeInfo::SetPropertyFunction "new System.Runtime.InteropServices.HandleRef(null, ip)" // null was this + + + +%typemap(cstype) Dali::CSharpTypeInfo::GetPropertyFunction "System.Delegate" +%typemap(csin, pre ="System.IntPtr ip2 = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate($csinput); ") + Dali::CSharpTypeInfo::GetPropertyFunction "new System.Runtime.InteropServices.HandleRef(null, ip2)" // null was this + + + + + + + #endif + + +/** + * Extend the type registry to allow for registering of C# controls and custom properties + */ +%extend Dali::TypeRegistration { + + + static void RegisterControl( const std::string& controlName, Dali::CSharpTypeInfo::CreateFunction createFunc ) + { + Dali::CSharpTypeRegistry::RegisterType( controlName, typeid( Dali::Toolkit::Control), createFunc ); + }; + + + static void RegisterProperty( const std::string& controlName, + const std::string& propertyName, + int index, + Property::Type type, + Dali::CSharpTypeInfo::SetPropertyFunction setFunc, + Dali::CSharpTypeInfo::GetPropertyFunction getFunc ) + { + Dali::CSharpTypeRegistry::RegisterProperty( controlName, propertyName, index, type, setFunc, getFunc ); + }; + +}; + + %ignore operator<<; %ignore *::GetImplementation(); %ignore *::GetImplementation(Dali::BaseHandle&); @@ -180,12 +246,16 @@ using namespace Dali::Toolkit; %feature("notabstract") Dali::Toolkit::FixedRuler; %feature("notabstract") Dali::Toolkit::DefaultRuler; +%feature("director") Dali::Toolkit::DevelKeyboardFocusManager::CustomAlgorithmInterface; + // Note... all the typemap declarations have to be included before the DALi C++ head files are include otherwise // they have no effect. %include signal-parameters.i %include signals.i +%include doxygen.i + %include events/actor-event.i %include events/accessibilitymanager-event.i %include events/application-event.i @@ -201,9 +271,11 @@ using namespace Dali::Toolkit; %include events/pinchgesture-event.i %include events/pageturnview-event.i %include events/pangesture-event.i +%include events/progress-bar-event.i %include events/propertynotification-event.i %include events/longpressgesture-event.i -%include events/rectinteger.i +%include events/rectangle.i +%include events/padding.i %include events/resourceimage-event.i %include events/scrollable-event.i %include events/scrollbar-event.i @@ -218,10 +290,24 @@ using namespace Dali::Toolkit; %include events/videoview-event.i %include alphafunction.i +%include rotation.i %include name-changed.i - +%include property-value.i %include dali-operator.i +%include devel-properties.i + +%include gestures/hover.i +%include gestures/gesture.i +%include gestures/long-press-gesture.i +%include gestures/pan-gesture.i +%include gestures/tap-gesture.i +%include gestures/pinch-gesture.i +%include gestures/wheel.i +%include gestures/touch.i +%include gestures/key.i + +%include adaptor/window.i + %include dali-core.i %include dali-adaptor.i %include dali-toolkit.i -