From 78fd0871f4e5c4a3ca41e174df2f81108f04afd4 Mon Sep 17 00:00:00 2001 From: "dongsug.song" Date: Mon, 4 Dec 2017 16:50:55 +0900 Subject: [PATCH] [NUI] View.DoAction() added Change-Id: Ibb14b674abef5908912160072ac83900dc1e151f Signed-off-by: dongsug.song --- src/Tizen.NUI/src/internal/ManualPINVOKE.cs | 4 ++++ src/Tizen.NUI/src/public/BaseComponents/View.cs | 15 +++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/src/Tizen.NUI/src/internal/ManualPINVOKE.cs b/src/Tizen.NUI/src/internal/ManualPINVOKE.cs index da4ad10..ce9fb17 100755 --- a/src/Tizen.NUI/src/internal/ManualPINVOKE.cs +++ b/src/Tizen.NUI/src/internal/ManualPINVOKE.cs @@ -187,6 +187,10 @@ namespace Tizen.NUI [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_View_CreateTransition")] public static extern global::System.IntPtr View_CreateTransition(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); + [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_View_DoAction")] + public static extern void View_DoAction(global::System.Runtime.InteropServices.HandleRef jarg1, int jarg2, int jarg3, global::System.Runtime.InteropServices.HandleRef jarg4); + + [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_ViewWrapperImpl_EmitKeyInputFocusSignal")] public static extern void ViewWrapperImpl_EmitKeyInputFocusSignal(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); diff --git a/src/Tizen.NUI/src/public/BaseComponents/View.cs b/src/Tizen.NUI/src/public/BaseComponents/View.cs index ddaad58..5a3d624 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/View.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/View.cs @@ -4555,6 +4555,21 @@ namespace Tizen.NUI.BaseComponents SetProperty(View.Property.PADDING, new Tizen.NUI.PropertyValue(value)); } } + + /// + /// Perform an action on a visual registered to this view.
+ /// Visuals will have actions, this API is used to perform one of these actions with the given attributes. + ///
+ /// The Property index of the visual. + /// The action to perform. See Visual to find supported actions. + /// Optional attributes for the action. + /// 5 + public void DoAction(int propertyIndexOfVisual, int propertyIndexOfActionId, PropertyValue attributes) + { + NDalicManualPINVOKE.View_DoAction(swigCPtr, propertyIndexOfVisual, propertyIndexOfActionId, PropertyValue.getCPtr(attributes)); + if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } + } /// -- 2.7.4