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=17a25e044b704b0f58fd68fb725c9a77e9f813a6;hp=fdcd4b26cc1faa33f5778ce7d93f3b8b526f06b8;hb=3b5d5f82057a49f259e62aa8349e37ea6a9c221f;hpb=6372d0a99afb85f510d114f76573296a4b2f387b diff --git a/plugins/dali-swig/SWIG/dali.i b/plugins/dali-swig/SWIG/dali.i index fdcd4b2..17a25e0 100755 --- a/plugins/dali-swig/SWIG/dali.i +++ b/plugins/dali-swig/SWIG/dali.i @@ -53,6 +53,8 @@ #include #include #include +#include +#include #include #include @@ -78,6 +80,10 @@ #include #include +#include + +#include + #include // add here SWIG version check @@ -163,8 +169,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&); @@ -184,6 +247,8 @@ using namespace Dali::Toolkit; %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 @@ -194,7 +259,6 @@ using namespace Dali::Toolkit; %include events/gaussian-blur-view-event.i %include events/image-event.i %include events/itemview-event.i -%include events/keyboardFocusManager-event.i %include events/objectregistry-event.i %include events/popup-event.i %include events/pinchgesture-event.i @@ -217,8 +281,11 @@ using namespace Dali::Toolkit; %include events/videoview-event.i %include alphafunction.i - +%include name-changed.i +%include property-value.i %include dali-operator.i +%include devel-properties.i + %include dali-core.i %include dali-adaptor.i %include dali-toolkit.i