+++ /dev/null
-/*
- * Copyright(c) 2017 Samsung Electronics Co., Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- *
- */
-using System;
-using System.Runtime.InteropServices;
-using System.ComponentModel;
-
-namespace Tizen.NUI
-{
- /// <summary>
- /// Please do not use! this will be deprecated
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public class ImfVoidSignalType : global::System.IDisposable
- {
- private global::System.Runtime.InteropServices.HandleRef swigCPtr;
- /// <summary>
- /// swigCMemOwn
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- protected bool swigCMemOwn;
-
- internal ImfVoidSignalType(global::System.IntPtr cPtr, bool cMemoryOwn)
- {
- swigCMemOwn = cMemoryOwn;
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
- }
-
- internal static global::System.Runtime.InteropServices.HandleRef getCPtr(ImfVoidSignalType obj)
- {
- return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
- }
-
- //A Flag to check who called Dispose(). (By User or DisposeQueue)
- private bool isDisposeQueued = false;
- /// <summary>
- /// A Flat to check if it is already disposed.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- protected bool disposed = false;
-
- /// <summary>
- /// Dispose
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- ~ImfVoidSignalType()
- {
- if (!isDisposeQueued)
- {
- isDisposeQueued = true;
- DisposeQueue.Instance.Add(this);
- }
- }
-
- /// <summary>
- /// Dispose
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public void Dispose()
- {
- //Throw excpetion if Dispose() is called in separate thread.
- if (!Window.IsInstalled())
- {
- throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
- }
-
- if (isDisposeQueued)
- {
- Dispose(DisposeTypes.Implicit);
- }
- else
- {
- Dispose(DisposeTypes.Explicit);
- System.GC.SuppressFinalize(this);
- }
- }
-
- /// <summary>
- /// Dispose
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- protected virtual void Dispose(DisposeTypes type)
- {
- if (disposed)
- {
- return;
- }
-
- if (type == DisposeTypes.Explicit)
- {
- //Called by User
- //Release your own managed resources here.
- //You should release all of your own disposable objects here.
-
- }
-
- //Release your own unmanaged resources here.
- //You should not access any managed member here except static instance.
- //because the execution order of Finalizes is non-deterministic.
-
- if (swigCPtr.Handle != global::System.IntPtr.Zero)
- {
- if (swigCMemOwn)
- {
- swigCMemOwn = false;
- NDalicManualPINVOKE.delete_ImfVoidSignalType(swigCPtr);
- }
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
- }
-
- disposed = true;
- }
-
- /// <summary>
- /// The contructor.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public ImfVoidSignalType() : this(NDalicManualPINVOKE.new_ImfVoidSignalType(), true)
- {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Queries whether there are any connected slots.
- /// </summary>
- /// <returns>True if there are any slots connected to the signal</returns>
- /// <since_tizen> 3 </since_tizen>
- public bool Empty()
- {
- bool ret = NDalicManualPINVOKE.ImfVoidSignalType_Empty(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
- /// Queries the number of slots.
- /// </summary>
- /// <returns>The number of slots connected to this signal</returns>
- /// <since_tizen> 3 </since_tizen>
- public uint GetConnectionCount()
- {
- uint ret = NDalicManualPINVOKE.ImfVoidSignalType_GetConnectionCount(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
- /// Connects a function.
- /// </summary>
- /// <param name="func">The function to connect</param>
- /// <since_tizen> 3 </since_tizen>
- public void Connect(System.Delegate func)
- {
- System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func);
- {
- NDalicManualPINVOKE.ImfVoidSignalType_Connect__SWIG_0(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- }
-
- /// <summary>
- /// Disconnects a function.
- /// </summary>
- /// <param name="func">The function to disconnect</param>
- /// <since_tizen> 3 </since_tizen>
- public void Disconnect(System.Delegate func)
- {
- System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func);
- {
- NDalicManualPINVOKE.ImfVoidSignalType_Disconnect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- }
- /// <summary>
- /// Connects a member function.
- /// </summary>
- /// <param name="connectionTracker">An object which must implement the ConnectionTrackerInterface</param>
- /// <param name="arg1">The member function to connect</param>
- /// <since_tizen> 4 </since_tizen>
- public void Connect(ConnectionTrackerInterface connectionTracker, SWIGTYPE_p_Dali__FunctorDelegate arg1)
- {
- NDalicManualPINVOKE.ImfVoidSignalType_Connect__SWIG_4(swigCPtr, ConnectionTrackerInterface.getCPtr(connectionTracker), SWIGTYPE_p_Dali__FunctorDelegate.getCPtr(arg1));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Emits the signal.
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public void Emit()
- {
- NDalicManualPINVOKE.ImfVoidSignalType_Emit(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- }
-
-}
KeyboardTypeChangedSignal().Disconnect(_keyboardTypeChangedEventCallback);
}
- if (_imfManagerLanguageChangedEventCallback != null)
- {
- LanguageChangedSignal().Disconnect(_imfManagerLanguageChangedEventCallback);
- }
-
- if (_imfManagerResizedEventCallback != null)
- {
- ResizedSignal().Disconnect(_imfManagerResizedEventCallback);
- }
-
- if (_imfManagerStatusChangedEventCallback != null)
- {
- StatusChangedSignal().Disconnect(_imfManagerStatusChangedEventCallback);
- }
-
- if (_imfManagerEventReceivedEventCallback != null)
- {
- EventReceivedSignal().Disconnect(_imfManagerEventReceivedEventCallback);
- }
-
- if (_imfManagerActivatedEventCallback != null)
- {
- ActivatedSignal().Disconnect(_imfManagerActivatedEventCallback);
- }
-
if (swigCPtr.Handle != global::System.IntPtr.Zero)
{
if (swigCMemOwn)
/// <summary>
/// The pre-edit or the commit string.
/// </summary>
- /// /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use PredictiveString instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public string predictiveString
- {
- set
- {
- NDalicManualPINVOKE.ImfManager_ImfEventData_predictiveString_set(swigCPtr, value);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- get
- {
- string ret = NDalicManualPINVOKE.ImfManager_ImfEventData_predictiveString_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- /// <summary>
- /// The pre-edit or the commit string.
- /// </summary>
/// <since_tizen> 4 </since_tizen>
public string PredictiveString
{
/// <summary>
/// The name of the event from the IMF.
/// </summary>
- /// Please do not use! this will be deprecated
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use EventName instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public ImfManager.ImfEvent eventName
- {
- set
- {
- NDalicManualPINVOKE.ImfManager_ImfEventData_eventName_set(swigCPtr, (int)value);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- get
- {
- ImfManager.ImfEvent ret = (ImfManager.ImfEvent)NDalicManualPINVOKE.ImfManager_ImfEventData_eventName_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- /// <summary>
- /// The name of the event from the IMF.
- /// </summary>
/// <since_tizen> 4 </since_tizen>
public ImfManager.ImfEvent EventName
{
/// <summary>
/// The start position from the current cursor position to start deleting characters.
/// </summary>
- /// Please do not use! this will be deprecated
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use CursorOffset instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public int cursorOffset
- {
- set
- {
- NDalicManualPINVOKE.ImfManager_ImfEventData_cursorOffset_set(swigCPtr, value);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- get
- {
- int ret = NDalicManualPINVOKE.ImfManager_ImfEventData_cursorOffset_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- /// <summary>
- /// The start position from the current cursor position to start deleting characters.
- /// </summary>
/// <since_tizen> 4 </since_tizen>
public int CursorOffset
{
/// <summary>
/// The number of characters to delete from the cursorOffset.
/// </summary>
- /// Please do not use! this will be deprecated
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use NumberOfChars instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public int numberOfChars
- {
- set
- {
- NDalicManualPINVOKE.ImfManager_ImfEventData_numberOfChars_set(swigCPtr, value);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- get
- {
- int ret = NDalicManualPINVOKE.ImfManager_ImfEventData_numberOfChars_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- /// <summary>
- /// The number of characters to delete from the cursorOffset.
- /// </summary>
/// <since_tizen> 4 </since_tizen>
public int NumberOfChars
{
/// <summary>
/// The current text string.
/// </summary>
- /// Please do not use! this will be deprecated
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use CurrentText instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public string currentText
- {
- set
- {
- NDalicManualPINVOKE.ImfManager_ImfCallbackData_currentText_set(swigCPtr, value);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- get
- {
- string ret = NDalicManualPINVOKE.ImfManager_ImfCallbackData_currentText_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- /// <summary>
- /// The current text string.
- /// </summary>
/// <since_tizen> 4 </since_tizen>
public string CurrentText
{
/// <summary>
/// The current text string.
/// </summary>
- /// Please do not use! this will be deprecated
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use CursorPosition instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public int cursorPosition
- {
- set
- {
- NDalicManualPINVOKE.ImfManager_ImfCallbackData_cursorPosition_set(swigCPtr, value);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- get
- {
- int ret = NDalicManualPINVOKE.ImfManager_ImfCallbackData_cursorPosition_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- /// <summary>
- /// The current text string.
- /// </summary>
/// <since_tizen> 4 </since_tizen>
public int CursorPosition
{
/// <summary>
/// If the cursor position needs to be updated.
/// </summary>
- /// Please do not use! this will be deprecated
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use Update instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public bool update
- {
- set
- {
- NDalicManualPINVOKE.ImfManager_ImfCallbackData_update_set(swigCPtr, value);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- get
- {
- bool ret = NDalicManualPINVOKE.ImfManager_ImfCallbackData_update_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- /// <summary>
- /// If the cursor position needs to be updated.
- /// </summary>
/// <since_tizen> 4 </since_tizen>
public bool Update
{
/// <summary>
/// Flags if preedit reset is required.
/// </summary>
- /// Please do not use! this will be deprecated
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use PreeditResetRequired instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public bool preeditResetRequired
- {
- set
- {
- NDalicManualPINVOKE.ImfManager_ImfCallbackData_preeditResetRequired_set(swigCPtr, value);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- get
- {
- bool ret = NDalicManualPINVOKE.ImfManager_ImfCallbackData_preeditResetRequired_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- /// <summary>
- /// Flags if preedit reset is required.
- /// </summary>
/// <since_tizen> 4 </since_tizen>
public bool PreeditResetRequired
{
/// <summary>
/// ImfManager activated event arguments.
/// </summary>
- /// Please do not use! this will be deprecated
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use ActivatedEventArgs instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public class ImfManagerActivatedEventArgs : EventArgs
- {
- /// <summary>
- /// ImfManager
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public ImfManager ImfManager
- {
- get;
- set;
- }
- }
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void ImfManagerActivatedEventCallbackType(global::System.IntPtr data);
- private ImfManagerActivatedEventCallbackType _imfManagerActivatedEventCallback;
- private event EventHandler<ImfManagerActivatedEventArgs> _imfManagerActivatedEventHandler;
-
- /// <summary>
- /// ImfManager activated event.
- /// </summary>
- ///Please do not use! this will be deprecated
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use Activated instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event EventHandler<ImfManagerActivatedEventArgs> ImfManagerActivated
- {
- add
- {
- if (_imfManagerActivatedEventHandler == null)
- {
- _imfManagerActivatedEventCallback = OnImfManagerActivated;
- ActivatedSignal().Connect(_imfManagerActivatedEventCallback);
- }
-
- _imfManagerActivatedEventHandler += value;
- }
- remove
- {
- _imfManagerActivatedEventHandler -= value;
-
- if (_imfManagerActivatedEventHandler == null && _imfManagerActivatedEventCallback != null)
- {
- ActivatedSignal().Disconnect(_imfManagerActivatedEventCallback);
- }
- }
- }
-
- private void OnImfManagerActivated(global::System.IntPtr data)
- {
- ImfManagerActivatedEventArgs e = new ImfManagerActivatedEventArgs();
-
- if (data != null)
- {
- e.ImfManager = Registry.GetManagedBaseHandleFromNativePtr(data) as ImfManager;
- }
-
- if (_imfManagerActivatedEventHandler != null)
- {
- _imfManagerActivatedEventHandler(this, e);
- }
- }
-
- /// <summary>
- /// ImfManager activated event arguments.
- /// </summary>
/// <since_tizen> 4 </since_tizen>
public class ActivatedEventArgs : EventArgs
{
}
}
- /// <summary>
- /// ImfManager activated signal.
- /// </summary>
- /// Please do not use! this will be internal
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public ActivatedSignalType ActivatedSignal()
+ internal ActivatedSignalType ActivatedSignal()
{
ActivatedSignalType ret = new ActivatedSignalType(NDalicManualPINVOKE.ImfManager_ActivatedSignal(swigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// <summary>
/// ImfManager event received event arguments.
/// </summary>
- /// Please do not use! this will be deprecated
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use EventReceivedEventArgs instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public class ImfManagerEventReceivedEventArgs : EventArgs
- {
- /// <summary>
- /// ImfManager
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public ImfManager ImfManager
- {
- get;
- set;
- }
- }
-
- private delegate void ImfManagerEventReceivedEventCallbackType(global::System.IntPtr data);
- private ImfManagerEventReceivedEventCallbackType _imfManagerEventReceivedEventCallback;
- private event EventHandler<ImfManagerEventReceivedEventArgs> _imfManagerEventReceivedEventHandler;
-
- /// <summary>
- /// ImfManager event received.
- /// </summary>
- ///Please do not use! this will be deprecated
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use EventReceived instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event EventHandler<ImfManagerEventReceivedEventArgs> ImfManagerEventReceived
- {
- add
- {
- if (_imfManagerEventReceivedEventHandler == null)
- {
- _imfManagerEventReceivedEventCallback = OnImfManagerEventReceived;
- EventReceivedSignal().Connect(_imfManagerEventReceivedEventCallback);
- }
-
- _imfManagerEventReceivedEventHandler += value;
- }
- remove
- {
- _imfManagerEventReceivedEventHandler -= value;
-
- if (_imfManagerEventReceivedEventHandler == null && _imfManagerEventReceivedEventCallback != null)
- {
- EventReceivedSignal().Disconnect(_imfManagerEventReceivedEventCallback);
- }
- }
- }
-
- private void OnImfManagerEventReceived(global::System.IntPtr data)
- {
- ImfManagerEventReceivedEventArgs e = new ImfManagerEventReceivedEventArgs();
-
- if (data != null)
- {
- e.ImfManager = Registry.GetManagedBaseHandleFromNativePtr(data) as ImfManager;
- }
-
- if (_imfManagerEventReceivedEventHandler != null)
- {
- _imfManagerEventReceivedEventHandler(this, e);
- }
- }
-
- /// <summary>
- /// ImfManager event received event arguments.
- /// </summary>
/// <since_tizen> 4 </since_tizen>
public class EventReceivedEventArgs : EventArgs
{
}
}
- /// <summary>
- /// ImfManager event received signal.
- /// </summary>
- /// Please do not use! this will be internal
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public ImfEventSignalType EventReceivedSignal()
+ internal ImfEventSignalType EventReceivedSignal()
{
ImfEventSignalType ret = new ImfEventSignalType(NDalicManualPINVOKE.ImfManager_EventReceivedSignal(swigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// <summary>
/// ImfManager status changed event arguments.
/// </summary>
- ///Please do not use! this will be deprecated
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use StatusChangedEventArgs instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public class ImfManagerStatusChangedEventArgs : EventArgs
- {
- /// <summary>
- /// ImfManager
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public ImfManager ImfManager
- {
- get;
- set;
- }
- }
-
- private delegate void ImfManagerStatusChangedEventCallbackType(global::System.IntPtr data);
- private ImfManagerStatusChangedEventCallbackType _imfManagerStatusChangedEventCallback;
- private event EventHandler<ImfManagerStatusChangedEventArgs> _imfManagerStatusChangedEventHandler;
-
- /// <summary>
- /// ImfManager status changed.
- /// </summary>
- /// Please do not use! this will be deprecated
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use StatusChanged instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event EventHandler<ImfManagerStatusChangedEventArgs> ImfManagerStatusChanged
- {
- add
- {
- if (_imfManagerStatusChangedEventHandler == null)
- {
- _imfManagerStatusChangedEventCallback = OnImfManagerStatusChanged;
- StatusChangedSignal().Connect(_imfManagerStatusChangedEventCallback);
- }
-
- _imfManagerStatusChangedEventHandler += value;
- }
- remove
- {
- _imfManagerStatusChangedEventHandler -= value;
-
- if (_imfManagerStatusChangedEventHandler == null && _imfManagerStatusChangedEventCallback != null)
- {
- StatusChangedSignal().Disconnect(_imfManagerStatusChangedEventCallback);
- }
- }
- }
-
- private void OnImfManagerStatusChanged(global::System.IntPtr data)
- {
- ImfManagerStatusChangedEventArgs e = new ImfManagerStatusChangedEventArgs();
-
- if (data != null)
- {
- e.ImfManager = Registry.GetManagedBaseHandleFromNativePtr(data) as ImfManager;
- }
-
- if (_imfManagerStatusChangedEventHandler != null)
- {
- _imfManagerStatusChangedEventHandler(this, e);
- }
- }
-
- /// <summary>
- /// ImfManager status changed event arguments.
- /// </summary>
/// <since_tizen> 4 </since_tizen>
public class StatusChangedEventArgs : EventArgs
{
}
}
- /// <summary>
- /// ImfManager status changed signal.
- /// </summary>
- ///Please do not use! this will be internal
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public StatusSignalType StatusChangedSignal()
+ internal StatusSignalType StatusChangedSignal()
{
StatusSignalType ret = new StatusSignalType(NDalicManualPINVOKE.ImfManager_StatusChangedSignal(swigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
/// <summary>
- /// ImfManager resized event arguments.
- /// </summary>
- ///Please do not use! this will be deprecated
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use ResizedEventArgs instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public class ImfManagerResizedEventArgs : EventArgs
- {
- /// <summary>
- /// ImfManager
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public ImfManager ImfManager
- {
- get;
- set;
- }
- }
-
- private delegate void ImfManagerResizedEventCallbackType(IntPtr data);
- private ImfManagerResizedEventCallbackType _imfManagerResizedEventCallback;
- private event EventHandler<ImfManagerResizedEventArgs> _imfManagerResizedEventHandler;
-
- /// <summary>
- /// ImfManager resized event.
- /// </summary>
- ///Please do not use! this will be deprecated
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use Resized instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event EventHandler<ImfManagerResizedEventArgs> ImfManagerResized
- {
- add
- {
- if (_imfManagerResizedEventHandler == null)
- {
- _imfManagerResizedEventCallback = OnImfManagerResized;
- ResizedSignal().Connect(_imfManagerResizedEventCallback);
- }
-
- _imfManagerResizedEventHandler += value;
- }
- remove
- {
- _imfManagerResizedEventHandler -= value;
-
- if (_imfManagerResizedEventHandler == null && _imfManagerResizedEventCallback != null)
- {
- ResizedSignal().Disconnect(_imfManagerResizedEventCallback);
- }
- }
- }
-
- private void OnImfManagerResized(IntPtr data)
- {
- ImfManagerResizedEventArgs e = new ImfManagerResizedEventArgs();
-
- if (data != null)
- {
- e.ImfManager = Registry.GetManagedBaseHandleFromNativePtr(data) as ImfManager;
- }
-
- if (_imfManagerResizedEventHandler != null)
- {
- _imfManagerResizedEventHandler(this, e);
- }
- }
-
- /// <summary>
/// ImfManager resized event.
/// </summary>
/// <since_tizen> 4 </since_tizen>
}
}
- /// <summary>
- /// ImfManager resized signal.
- /// </summary>
- ///Please do not use! this will be internal
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public KeyboardResizedSignalType ResizedSignal()
+ internal KeyboardResizedSignalType ResizedSignal()
{
KeyboardResizedSignalType ret = new KeyboardResizedSignalType(NDalicManualPINVOKE.ImfManager_ResizedSignal(swigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
/// <summary>
- /// ImfManager language changed event arguments.
- /// </summary>
- ///Please do not use! this will be deprecated
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use LanguageChangedEventArgs instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public class ImfManagerLanguageChangedEventArgs : EventArgs
- {
- /// <summary>
- /// ImfManager
- /// </summary>
- /// <since_tizen> 3 </since_tizen>
- public ImfManager ImfManager
- {
- get;
- set;
- }
- }
-
- private delegate void ImfManagerLanguageChangedEventCallbackType(IntPtr data);
- private ImfManagerLanguageChangedEventCallbackType _imfManagerLanguageChangedEventCallback;
- private event EventHandler<ImfManagerLanguageChangedEventArgs> _imfManagerLanguageChangedEventHandler;
-
- /// <summary>
- /// ImfManager language changed event.
- /// </summary>
- ///Please do not use! this will be deprecated
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use LanguageChanged instead!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public event EventHandler<ImfManagerLanguageChangedEventArgs> ImfManagerLanguageChanged
- {
- add
- {
- if (_imfManagerLanguageChangedEventHandler == null)
- {
- _imfManagerLanguageChangedEventCallback = OnImfManagerLanguageChanged;
- LanguageChangedSignal().Connect(_imfManagerLanguageChangedEventCallback);
- }
-
- _imfManagerLanguageChangedEventHandler += value;
- }
- remove
- {
- _imfManagerLanguageChangedEventHandler -= value;
-
- if (_imfManagerLanguageChangedEventHandler == null && _imfManagerLanguageChangedEventCallback != null)
- {
- LanguageChangedSignal().Disconnect(_imfManagerLanguageChangedEventCallback);
- }
- }
- }
-
- private void OnImfManagerLanguageChanged(IntPtr data)
- {
- ImfManagerLanguageChangedEventArgs e = new ImfManagerLanguageChangedEventArgs();
-
- if (data != null)
- {
- e.ImfManager = Registry.GetManagedBaseHandleFromNativePtr(data) as ImfManager;
- }
-
- if (_imfManagerLanguageChangedEventHandler != null)
- {
- _imfManagerLanguageChangedEventHandler(this, e);
- }
- }
-
- /// <summary>
/// ImfManager language changed event args.
/// </summary>
/// <since_tizen> 4 </since_tizen>
}
}
- /// <summary>
- /// ImfManager language changed signal.
- /// </summary>
- ///Please do not use! this will be internal
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated!")]
- [EditorBrowsable(EditorBrowsableState.Never)]
- public LanguageChangedSignalType LanguageChangedSignal()
+ internal LanguageChangedSignalType LanguageChangedSignal()
{
LanguageChangedSignalType ret = new LanguageChangedSignalType(NDalicManualPINVOKE.ImfManager_LanguageChangedSignal(swigCPtr), false);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();