[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextEditor_MaxLengthReachedSignal")]
public static extern global::System.IntPtr MaxLengthReachedSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextEditor_SelectionClearedSignal")]
+ public static extern global::System.IntPtr SelectionClearedSignal(global::System.Runtime.InteropServices.HandleRef pTextEditor);
+
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextEditor_AnchorClickedSignal")]
public static extern global::System.IntPtr AnchorClickedSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextField_InputStyleChangedSignal")]
public static extern global::System.IntPtr InputStyleChangedSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
+ [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextField_SelectionClearedSignal")]
+ public static extern global::System.IntPtr SelectionClearedSignal(global::System.Runtime.InteropServices.HandleRef pTextField);
+
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_TextField_AnchorClickedSignal")]
public static extern global::System.IntPtr AnchorClickedSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
this.MaxLengthReachedSignal().Disconnect(textEditorMaxLengthReachedCallbackDelegate);
}
+ if (textEditorSelectionClearedCallbackDelegate != null)
+ {
+ this.SelectionClearedSignal().Disconnect(textEditorSelectionClearedCallbackDelegate);
+ }
+
if (textEditorCursorPositionChangedCallbackDelegate != null)
{
this.CursorPositionChangedSignal().Disconnect(textEditorCursorPositionChangedCallbackDelegate);
private EventHandler<AnchorClickedEventArgs> textEditorAnchorClickedEventHandler;
private AnchorClickedCallbackDelegate textEditorAnchorClickedCallbackDelegate;
+ private EventHandler textEditorSelectionClearedEventHandler;
+ private SelectionClearedCallbackDelegate textEditorSelectionClearedCallbackDelegate;
+
private EventHandler textEditorSelectionChangedEventHandler;
private SelectionChangedCallbackDelegate textEditorSelectionChangedCallbackDelegate;
private delegate void MaxLengthReachedCallbackDelegate(IntPtr textEditor);
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate void SelectionClearedCallbackDelegate(IntPtr textEditor);
+
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate void AnchorClickedCallbackDelegate(IntPtr textEditor, IntPtr href, uint hrefLength);
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
}
/// <summary>
+ /// The SelectionCleared signal is emitted when selection is cleared.
+ /// </summary>
+ /// This will be public opened after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public event EventHandler SelectionCleared
+ {
+ add
+ {
+ if (textEditorSelectionClearedEventHandler == null)
+ {
+ textEditorSelectionClearedCallbackDelegate = (OnSelectionCleared);
+ SelectionClearedSignal().Connect(textEditorSelectionClearedCallbackDelegate);
+ }
+ textEditorSelectionClearedEventHandler += value;
+ }
+ remove
+ {
+ if (textEditorSelectionClearedEventHandler == null && SelectionClearedSignal().Empty() == false)
+ {
+ this.SelectionClearedSignal().Disconnect(textEditorSelectionClearedCallbackDelegate);
+ }
+ textEditorSelectionClearedEventHandler -= value;
+ }
+ }
+
+ /// <summary>
/// The SelectionChanged event.
/// </summary>
/// This will be public opened after ACR done. Before ACR, need to be hidden as inhouse API.
}
}
+ internal TextEditorSignal SelectionClearedSignal()
+ {
+ TextEditorSignal ret = new TextEditorSignal(Interop.TextEditor.SelectionClearedSignal(SwigCPtr), false);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
internal TextEditorSignal TextChangedSignal()
{
TextEditorSignal ret = new TextEditorSignal(Interop.TextEditor.TextChangedSignal(SwigCPtr), false);
}
}
+ private void OnSelectionCleared(IntPtr textEditor)
+ {
+ //no data to be sent to the user
+ textEditorSelectionClearedEventHandler?.Invoke(this, EventArgs.Empty);
+ }
+
private void OnScrollStateChanged(IntPtr textEditor, ScrollState state)
{
if (textEditorScrollStateChangedEventHandler != null)
this.MaxLengthReachedSignal().Disconnect(textFieldMaxLengthReachedCallbackDelegate);
}
+ if (textFieldSelectionClearedCallbackDelegate != null)
+ {
+ this.SelectionClearedSignal().Disconnect(textFieldSelectionClearedCallbackDelegate);
+ }
+
if (textFieldSelectionChangedCallbackDelegate != null)
{
this.SelectionChangedSignal().Disconnect(textFieldSelectionChangedCallbackDelegate);
private EventHandler<InputFilteredEventArgs> textFieldInputFilteredEventHandler;
private InputFilteredCallbackDelegate textFieldInputFilteredCallbackDelegate;
+ private EventHandler textFieldSelectionClearedEventHandler;
+ private SelectionClearedCallbackDelegate textFieldSelectionClearedCallbackDelegate;
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate void TextChangedCallbackDelegate(IntPtr textField);
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate void InputFilteredCallbackDelegate(IntPtr textField, InputFilterType type);
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]
+ private delegate void SelectionClearedCallbackDelegate(IntPtr textField);
+
/// <summary>
/// The TextChanged event.
/// </summary>
}
/// <summary>
+ /// The SelectionCleared signal is emitted when selection is cleared.
+ /// </summary>
+ /// This will be public opened after ACR done. Before ACR, need to be hidden as inhouse API.
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public event EventHandler SelectionCleared
+ {
+ add
+ {
+ if (textFieldSelectionClearedEventHandler == null)
+ {
+ textFieldSelectionClearedCallbackDelegate = (OnSelectionCleared);
+ SelectionClearedSignal().Connect(textFieldSelectionClearedCallbackDelegate);
+ }
+ textFieldSelectionClearedEventHandler += value;
+ }
+ remove
+ {
+ if (textFieldSelectionClearedEventHandler == null && SelectionClearedSignal().Empty() == false)
+ {
+ this.SelectionClearedSignal().Disconnect(textFieldSelectionClearedCallbackDelegate);
+ }
+ textFieldSelectionClearedEventHandler -= value;
+ }
+ }
+
+ /// <summary>
/// The AnchorClicked signal is emitted when the anchor is clicked.
/// </summary>
/// <since_tizen> 9 </since_tizen>
}
}
+ internal TextFieldSignal SelectionClearedSignal()
+ {
+ TextFieldSignal ret = new TextFieldSignal(Interop.TextField.SelectionClearedSignal(SwigCPtr), false);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ return ret;
+ }
+
internal TextFieldSignal TextChangedSignal()
{
TextFieldSignal ret = new TextFieldSignal(Interop.TextField.TextChangedSignal(SwigCPtr), false);
return ret;
}
+ private void OnSelectionCleared(IntPtr textField)
+ {
+ //no data to be sent to the user
+ textFieldSelectionClearedEventHandler?.Invoke(this, EventArgs.Empty);
+ }
+
private void OnTextChanged(IntPtr textField)
{
if (textFieldTextChangedEventHandler != null)