From dff3924aea2fe967649322c635f5040e2a045c07 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 | 17 +++++++++++++++++ 2 files changed, 21 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 e91526c..f563422 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/View.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/View.cs @@ -4557,6 +4557,23 @@ 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 + /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API. + [EditorBrowsable(EditorBrowsableState.Never)] + 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