X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=plugins%2Fdali-swig%2FSWIG%2Fdali.i;h=d69be3ae9a8e401510279f019455171476206cf3;hb=b75eb9d82ba328b015d33c8958d84977a6ac2d5d;hp=54d692e9ba70531c15620d420838dd3f0d275c1e;hpb=1c79fd0c77d266314b74e32ab8a0070fb5178380;p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git diff --git a/plugins/dali-swig/SWIG/dali.i b/plugins/dali-swig/SWIG/dali.i index 54d692e..d69be3a 100755 --- 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 { @@ -52,6 +53,8 @@ #include #include #include +#include +#include #include #include @@ -64,6 +67,7 @@ #include #include + #include #include #include @@ -76,6 +80,8 @@ #include #include +#include + #include // add here SWIG version check @@ -161,9 +167,67 @@ 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&); @@ -173,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; @@ -186,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 @@ -196,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,29 +279,13 @@ using namespace Dali::Toolkit; %include events/textfield-event.i %include events/timer-event.i %include events/videoview-event.i -%include events/rendertask-event.i %include alphafunction.i -%include cameraActor.i -%include flexContainer.i -%include imageView.i -%include layer.i -%include linearConstrainer.i -%include model3DView.i -%include path.i -%include pathConstrainer.i -%include progressBar.i -%include pushButton.i -%include renderer.i -%include shader.i -%include tableView.i -%include textLabel.i - -%include propertyValue.i -%include pageTurnLandscapeView.i -%include pageTurnPortraitView.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