+++ /dev/null
-/*
- * Copyright(c) 2019 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.ComponentModel;
-
-namespace Tizen.NUI
-{
- internal class AdaptorSignalType : Disposable
- {
-
- internal AdaptorSignalType(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
- {
- }
-
- /// <summary>
- /// Dispose
- /// </summary>
- /// <since_tizen> 4 </since_tizen>
- /// This will be changed internal API after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
- {
- Interop.Adaptor.delete_AdaptorSignalType(swigCPtr);
- }
-
- /// <summary>
- /// Queries whether there are any connected slots.
- /// </summary>
- /// <returns>True if there are any slots connected to the signal</returns>
- /// <since_tizen> 4 </since_tizen>
- /// This will be changed internal API after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public bool Empty()
- {
- bool ret = Interop.Adaptor.AdaptorSignalType_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> 4 </since_tizen>
- /// This will be changed internal API after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public uint GetConnectionCount()
- {
- uint ret = Interop.Adaptor.AdaptorSignalType_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> 4 </since_tizen>
- /// This will be changed internal API after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void Connect(System.Delegate func)
- {
- System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func);
- {
- Interop.Adaptor.AdaptorSignalType_Connect(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> 4 </since_tizen>
- /// This will be changed internal API after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void Disconnect(System.Delegate func)
- {
- System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate<System.Delegate>(func);
- {
- Interop.Adaptor.AdaptorSignalType_Disconnect(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- }
-
- /// <summary>
- /// Emits the signal.
- /// </summary>
- /// <param name="arg">The first value to pass to callbacks</param>
- /// <since_tizen> 4 </since_tizen>
- /// This will be changed internal API after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public void Emit(Adaptor arg)
- {
- Interop.Adaptor.AdaptorSignalType_Emit(swigCPtr, Adaptor.getCPtr(arg));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// The contructor.
- /// </summary>
- /// <since_tizen> 4 </since_tizen>
- /// This will be changed internal API after ACR done. Before ACR, need to be hidden as inhouse API.
- [EditorBrowsable(EditorBrowsableState.Never)]
- public AdaptorSignalType() : this(Interop.Adaptor.new_AdaptorSignalType(), true)
- {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- }
-}
internal static partial class Adaptor
{
//For Adaptor
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Adaptor_New__SWIG_0")]
- public static extern global::System.IntPtr Adaptor_New__SWIG_0(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Adaptor_New__SWIG_1")]
- public static extern global::System.IntPtr Adaptor_New__SWIG_1(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Adaptor_New__SWIG_2")]
- public static extern global::System.IntPtr Adaptor_New__SWIG_2(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Adaptor_New__SWIG_3")]
- public static extern global::System.IntPtr Adaptor_New__SWIG_3(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
-
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_delete_Adaptor")]
public static extern void delete_Adaptor(global::System.Runtime.InteropServices.HandleRef jarg1);
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Adaptor_Start")]
- public static extern void Adaptor_Start(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Adaptor_Pause")]
- public static extern void Adaptor_Pause(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Adaptor_Resume")]
- public static extern void Adaptor_Resume(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Adaptor_Stop")]
- public static extern void Adaptor_Stop(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Adaptor_AddIdle")]
- public static extern bool Adaptor_AddIdle(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Adaptor_RemoveIdle")]
- public static extern void Adaptor_RemoveIdle(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Adaptor_ReplaceSurface")]
- public static extern void Adaptor_ReplaceSurface(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, global::System.Runtime.InteropServices.HandleRef jarg3);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Adaptor_GetSurface")]
- public static extern global::System.IntPtr Adaptor_GetSurface(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Adaptor_GetNativeWindowHandle")]
- public static extern global::System.IntPtr Adaptor_GetNativeWindowHandle(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Adaptor_ReleaseSurfaceLock")]
- public static extern void Adaptor_ReleaseSurfaceLock(global::System.Runtime.InteropServices.HandleRef jarg1);
-
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Adaptor_SetRenderRefreshRate")]
public static extern void Adaptor_SetRenderRefreshRate(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2);
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Adaptor_Get")]
public static extern global::System.IntPtr Adaptor_Get();
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Adaptor_IsAvailable")]
- public static extern bool Adaptor_IsAvailable();
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Adaptor_NotifySceneCreated")]
- public static extern void Adaptor_NotifySceneCreated(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Adaptor_NotifyLanguageChanged")]
- public static extern void Adaptor_NotifyLanguageChanged(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Adaptor_FeedTouchPoint")]
- public static extern void Adaptor_FeedTouchPoint(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3);
-
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Adaptor_FeedWheelEvent")]
public static extern void Adaptor_FeedWheelEvent(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
[global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Adaptor_FeedKeyEvent")]
public static extern void Adaptor_FeedKeyEvent(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Adaptor_SceneCreated")]
- public static extern void Adaptor_SceneCreated(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Adaptor_ResizedSignal")]
- public static extern global::System.IntPtr Adaptor_ResizedSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Adaptor_LanguageChangedSignal")]
- public static extern global::System.IntPtr Adaptor_LanguageChangedSignal(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- //Adaptor Signal Type
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AdaptorSignalType_Empty")]
- public static extern bool AdaptorSignalType_Empty(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AdaptorSignalType_GetConnectionCount")]
- public static extern uint AdaptorSignalType_GetConnectionCount(global::System.Runtime.InteropServices.HandleRef jarg1);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AdaptorSignalType_Connect")]
- public static extern void AdaptorSignalType_Connect(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AdaptorSignalType_Disconnect")]
- public static extern void AdaptorSignalType_Disconnect(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AdaptorSignalType_Emit")]
- public static extern void AdaptorSignalType_Emit(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2);
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_AdaptorSignalType")]
- public static extern global::System.IntPtr new_AdaptorSignalType();
-
- [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_delete_AdaptorSignalType")]
- public static extern void delete_AdaptorSignalType(global::System.Runtime.InteropServices.HandleRef jarg1);
}
}
}
\ No newline at end of file
{
private static readonly Adaptor instance = Adaptor.Get();
- private EventHandler<ResizedEventArgs> _resizedEventHandler;
- private ResizedCallbackDelegate _resizedCallbackDelegate;
-
- private EventHandler<LanguageChangedEventArgs> _languageChangedEventHandler;
- private LanguageChangedCallbackDelegate _languageChangedCallbackDelegate;
-
internal Adaptor(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
{
}
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void ResizedCallbackDelegate(IntPtr adaptor);
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void LanguageChangedCallbackDelegate(IntPtr adaptor);
-
- /// <summary>
- /// An event for the Resized signal which can be used to subscribe or unsubscribe the event handler
- /// provided by the user. The Resized signal is emitted when the size changes.<br />
- /// </summary>
- internal event EventHandler<ResizedEventArgs> Resized
- {
- add
- {
- if (_resizedEventHandler == null)
- {
- _resizedCallbackDelegate = (OnResized);
- ResizedSignal().Connect(_resizedCallbackDelegate);
- }
- _resizedEventHandler += value;
- }
- remove
- {
- _resizedEventHandler -= value;
- if (_resizedEventHandler == null && ResizedSignal().Empty() == false)
- {
- ResizedSignal().Disconnect(_resizedCallbackDelegate);
- }
- }
- }
-
- /// <summary>
- /// An event for LanguageChanged signal which can be used to subscribe or unsubscribe the event handler
- /// provided by the user. The LanguageChanged signal is emitted when the language changes.<br />
- /// </summary>
- internal event EventHandler<LanguageChangedEventArgs> LanguageChanged
- {
- add
- {
- if (_languageChangedEventHandler == null)
- {
- _languageChangedCallbackDelegate = (OnLanguageChanged);
- LanguageChangedSignal().Connect(_languageChangedCallbackDelegate);
- }
- _languageChangedEventHandler += value;
- }
- remove
- {
- _languageChangedEventHandler -= value;
- if (_languageChangedEventHandler == null && LanguageChangedSignal().Empty() == false)
- {
- LanguageChangedSignal().Disconnect(_languageChangedCallbackDelegate);
- }
- }
- }
-
/// <summary>
/// Returns a reference to the instance of the adaptor used by the current thread.
/// </summary>
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Adaptor obj)
- {
- return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
- }
-
- internal static Adaptor GetAdaptorFromPtr(global::System.IntPtr cPtr)
- {
- Adaptor ret = new Adaptor(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal static Adaptor New(Window window)
- {
- Adaptor ret = new Adaptor(Interop.Adaptor.Adaptor_New__SWIG_0(Window.getCPtr(window)), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal static Adaptor New(Window window, SWIGTYPE_p_Configuration__ContextLoss configuration)
- {
- Adaptor ret = new Adaptor(Interop.Adaptor.Adaptor_New__SWIG_1(Window.getCPtr(window), SWIGTYPE_p_Configuration__ContextLoss.getCPtr(configuration)), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal static Adaptor New(Any nativeWindow, SWIGTYPE_p_Dali__RenderSurface surface)
- {
- Adaptor ret = new Adaptor(Interop.Adaptor.Adaptor_New__SWIG_2(Any.getCPtr(nativeWindow), SWIGTYPE_p_Dali__RenderSurface.getCPtr(surface)), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal static Adaptor New(Any nativeWindow, SWIGTYPE_p_Dali__RenderSurface surface, SWIGTYPE_p_Configuration__ContextLoss configuration)
- {
- Adaptor ret = new Adaptor(Interop.Adaptor.Adaptor_New__SWIG_3(Any.getCPtr(nativeWindow), SWIGTYPE_p_Dali__RenderSurface.getCPtr(surface), SWIGTYPE_p_Configuration__ContextLoss.getCPtr(configuration)), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
internal static Adaptor Get()
{
Adaptor ret = new Adaptor(Interop.Adaptor.Adaptor_Get(), false);
}
/// <summary>
- /// Checks whether the adaptor is available.
- /// </summary>
- /// <returns>True if it is available, false otherwise.</returns>
- internal static bool IsAvailable()
- {
- bool ret = Interop.Adaptor.Adaptor_IsAvailable();
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
- /// Starts the adaptor.
- /// </summary>
- internal void Start()
- {
- Interop.Adaptor.Adaptor_Start(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Pauses the adaptor.
- /// </summary>
- internal void Pause()
- {
- Interop.Adaptor.Adaptor_Pause(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Resumes the adaptor, if previously paused.
- /// </summary>
- /// <remarks>If the adaptor is not paused, this does not do anything.</remarks>
- internal void Resume()
- {
- Interop.Adaptor.Adaptor_Resume(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Stops the adaptor.
- /// </summary>
- internal void Stop()
- {
- Interop.Adaptor.Adaptor_Stop(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- internal bool AddIdle(SWIGTYPE_p_Dali__CallbackBase callback)
- {
- bool ret = Interop.Adaptor.Adaptor_AddIdle(swigCPtr, SWIGTYPE_p_Dali__CallbackBase.getCPtr(callback));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal void RemoveIdle(SWIGTYPE_p_Dali__CallbackBase callback)
- {
- Interop.Adaptor.Adaptor_RemoveIdle(swigCPtr, SWIGTYPE_p_Dali__CallbackBase.getCPtr(callback));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- internal void ReplaceSurface(Any nativeWindow, SWIGTYPE_p_Dali__RenderSurface surface)
- {
- Interop.Adaptor.Adaptor_ReplaceSurface(swigCPtr, Any.getCPtr(nativeWindow), SWIGTYPE_p_Dali__RenderSurface.getCPtr(surface));
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- internal SWIGTYPE_p_Dali__RenderSurface GetSurface()
- {
- SWIGTYPE_p_Dali__RenderSurface ret = new SWIGTYPE_p_Dali__RenderSurface(Interop.Adaptor.Adaptor_GetSurface(swigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal Any GetNativeWindowHandle()
- {
- Any ret = new Any(Interop.Adaptor.Adaptor_GetNativeWindowHandle(swigCPtr), true);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
- /// Releases any locks the surface may hold.
- /// </summary>
- /// <remarks>
- /// For example, after compositing an offscreen surface, use this method to allow rendering to continue.
- /// </remarks>
- internal void ReleaseSurfaceLock()
- {
- Interop.Adaptor.Adaptor_ReleaseSurfaceLock(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
/// Sets the number of frames per render.
/// </summary>
/// <param name="numberOfVSyncsPerRender">The number of vsyncs between successive renders.</param>
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- /// <summary>
- /// Calls this method to notify DALi when a scene is created and initialized.
- /// Notify the adaptor that the scene has been created.
- /// </summary>
- internal void NotifySceneCreated()
- {
- Interop.Adaptor.Adaptor_NotifySceneCreated(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Calls this method to notify DALi when the system language changes.
- ///
- /// Use this only when not using Dali::Application. As the application is created, using the
- /// application will automatically receive notification of the language change.
- /// When Dali::Application is not used, the application developer should
- /// use app-core to receive the language change notifications and should update DALi
- /// by calling this method.
- /// </summary>
- internal void NotifyLanguageChanged()
- {
- Interop.Adaptor.Adaptor_NotifyLanguageChanged(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- internal void FeedTouchPoint(TouchPoint point, int timeStamp)
- {
- Interop.Adaptor.Adaptor_FeedTouchPoint(swigCPtr, TouchPoint.getCPtr(point), timeStamp);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- /// <summary>
- /// Notifies core that the scene has been created.
- /// </summary>
- internal void SceneCreated()
- {
- Interop.Adaptor.Adaptor_SceneCreated(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
- internal AdaptorSignalType ResizedSignal()
- {
- AdaptorSignalType ret = new AdaptorSignalType(Interop.Adaptor.Adaptor_ResizedSignal(swigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- internal AdaptorSignalType LanguageChangedSignal()
- {
- AdaptorSignalType ret = new AdaptorSignalType(Interop.Adaptor.Adaptor_LanguageChangedSignal(swigCPtr), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
/// This will not be public opened.
[EditorBrowsable(EditorBrowsableState.Never)]
protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
Interop.Adaptor.delete_Adaptor(swigCPtr);
}
- private void OnResized(IntPtr adaptor)
- {
- ResizedEventArgs e = new ResizedEventArgs();
- if (adaptor != null)
- {
- e.Adaptor = Adaptor.GetAdaptorFromPtr(adaptor);
- }
-
- if (_resizedEventHandler != null)
- {
- //here we send all data to user event handlers
- _resizedEventHandler(this, e);
- }
- }
-
- private void OnLanguageChanged(IntPtr adaptor)
- {
- LanguageChangedEventArgs e = new LanguageChangedEventArgs();
- e.Adaptor = Adaptor.GetAdaptorFromPtr(adaptor);
-
- if (_languageChangedEventHandler != null)
- {
- //here we send all data to user event handlers
- _languageChangedEventHandler(this, e);
- }
- }
-
- /// <summary>
- /// Event arguments that passed via the Resized signal.
- /// </summary>
- internal class ResizedEventArgs : EventArgs
- {
-
- /// <summary>
- /// Adaptor - is the adaptor which has size changed.
- /// </summary>
- /// <since_tizen> 4 </since_tizen>
- public Adaptor Adaptor
- {
- get;
- set;
- }
- }
-
- /// <summary>
- /// Event arguments that passed via the LanguageChanged signal.
- /// </summary>
- internal class LanguageChangedEventArgs : EventArgs
- {
-
- /// <summary>
- /// Adaptor - is the adaptor which has language changed.
- /// </summary>
- /// <since_tizen> 4 </since_tizen>
- public Adaptor Adaptor
- {
- get;
- set;
- }
- }
-
}
}