When a widget consumes a keyEvent, the WidgetView must also consume that keyEvent.
the API called SetUsingKeyEvent() allows the WidgetApplication to set this flag.
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WidgetImpl_SetContentInfo")]
public static extern void SetContentInfo(global::System.Runtime.InteropServices.HandleRef jarg1, string jarg2);
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WidgetImpl_SetUsingKeyEvent")]
+ public static extern void SetUsingKeyEvent(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2);
+
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WidgetImpl_SetImpl")]
public static extern void SetImpl(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
Interop.WidgetImpl.SetContentInfo(SwigCPtr, contentInfo);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
-
+ public void SetUsingKeyEvent(bool flag)
+ {
+ Interop.WidgetImpl.SetUsingKeyEvent(SwigCPtr, flag);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ }
internal void SetImpl(SWIGTYPE_p_Dali__Widget__Impl impl)
{
Interop.WidgetImpl.SetImpl(SwigCPtr, SWIGTYPE_p_Dali__Widget__Impl.getCPtr(impl));
widgetImpl.SetContentInfo(contentInfo);
}
+ /// <summary>
+ /// Set the flag that widget is using keyEvent
+ /// </summary>
+ /// <param name="flag"> The flag that widget is using keyEvent. </param>
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public void SetUsingKeyEvent(bool flag)
+ {
+ widgetImpl.SetUsingKeyEvent(flag);
+ }
+
internal System.IntPtr GetIntPtr()
{
return SwigCPtr.Handle;