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=542ed734a4531ab91b11a22a6787d1011d3540d0;hb=3b5d5f82057a49f259e62aa8349e37ea6a9c221f;hpb=e2ab03b7246a8621d025f02a0a2f9325748f993c diff --git a/plugins/dali-swig/SWIG/dali.i b/plugins/dali-swig/SWIG/dali.i old mode 100644 new mode 100755 index 542ed73..17a25e0 --- a/plugins/dali-swig/SWIG/dali.i +++ b/plugins/dali-swig/SWIG/dali.i @@ -25,6 +25,7 @@ #endif %include exception.i +%include dali-gc.i %exception { try { @@ -51,18 +52,37 @@ #include #include #include - +#include +#include +#include #include #include #include #include +#include + +#include #include + +#include + #include +#include +#include +#include +#include +#include +#include #include #include +#include + +#include + +#include #include @@ -149,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&); @@ -160,10 +237,7 @@ using namespace Dali; using namespace Dali::Toolkit; %} -//%feature("director") Dali::Internal::CustomActorImpl; -//%feature("notabstract") Dali::Internal::CustomActorImpl; -//%feature("director") Dali::Toolkit::Internal::Control; -//%feature("notabstract") Dali::Toolkit::Internal::Control; +%feature("director") Dali::Toolkit::Internal::Control; %feature("notabstract") Dali::Toolkit::FixedRuler; %feature("notabstract") Dali::Toolkit::DefaultRuler; @@ -172,7 +246,46 @@ 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 +%include events/animation-event.i +%include events/button-event.i +%include events/builder-event.i +%include events/control-event.i +%include events/gaussian-blur-view-event.i +%include events/image-event.i +%include events/itemview-event.i +%include events/objectregistry-event.i +%include events/popup-event.i +%include events/pinchgesture-event.i +%include events/pageturnview-event.i +%include events/pangesture-event.i +%include events/propertynotification-event.i +%include events/longpressgesture-event.i +%include events/rectinteger.i +%include events/resourceimage-event.i +%include events/scrollable-event.i +%include events/scrollbar-event.i +%include events/scrollview-event.i +%include events/slider-event.i +%include events/stage-event.i +%include events/stylemanager-event.i +%include events/tapgesture-event.i +%include events/texteditor-event.i +%include events/textfield-event.i +%include events/timer-event.i +%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