- set
- {
- _voidp = value;
- }
- }
- }
-
-public class Application : BaseHandle {
- private global::System.Runtime.InteropServices.HandleRef swigCPtr;
-
- internal Application(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Application_SWIGUpcast(cPtr), cMemoryOwn) {
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
- }
-
- internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Application obj) {
- return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
- }
-
- ~Application() {
- DisposeQueue.Instance.Add(this);
- }
-
- public override void Dispose() {
- if (!Stage.IsInstalled()) {
- DisposeQueue.Instance.Add(this);
- return;
- }
-
- lock(this) {
- if (swigCPtr.Handle != global::System.IntPtr.Zero) {
- if (swigCMemOwn) {
- swigCMemOwn = false;
- NDalicPINVOKE.delete_Application(swigCPtr);
- }
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
- }
- global::System.GC.SuppressFinalize(this);
- base.Dispose();
- }
- }
-
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void NUIApplicationInitEventCallbackDelegate(IntPtr application);
- private DaliEventHandler<object,NUIApplicationInitEventArgs> _applicationInitEventHandler;
- private NUIApplicationInitEventCallbackDelegate _applicationInitEventCallbackDelegate;
-
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void NUIApplicationTerminateEventCallbackDelegate(IntPtr application);
- private DaliEventHandler<object,NUIApplicationTerminateEventArgs> _applicationTerminateEventHandler;
- private NUIApplicationTerminateEventCallbackDelegate _applicationTerminateEventCallbackDelegate;
-
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void NUIApplicationPauseEventCallbackDelegate(IntPtr application);
- private DaliEventHandler<object,NUIApplicationPauseEventArgs> _applicationPauseEventHandler;
- private NUIApplicationPauseEventCallbackDelegate _applicationPauseEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void NUIApplicationResumeEventCallbackDelegate(IntPtr application);
- private DaliEventHandler<object,NUIApplicationResumeEventArgs> _applicationResumeEventHandler;
- private NUIApplicationResumeEventCallbackDelegate _applicationResumeEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void NUIApplicationResetEventCallbackDelegate(IntPtr application);
- private DaliEventHandler<object,NUIApplicationResetEventArgs> _applicationResetEventHandler;
- private NUIApplicationResetEventCallbackDelegate _applicationResetEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void NUIApplicationResizeEventCallbackDelegate(IntPtr application);
- private DaliEventHandler<object,NUIApplicationResizeEventArgs> _applicationResizeEventHandler;
- private NUIApplicationResizeEventCallbackDelegate _applicationResizeEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void NUIApplicationLanguageChangedEventCallbackDelegate(IntPtr application);
- private DaliEventHandler<object,NUIApplicationLanguageChangedEventArgs> _applicationLanguageChangedEventHandler;
- private NUIApplicationLanguageChangedEventCallbackDelegate _applicationLanguageChangedEventCallbackDelegate;
-
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void NUIApplicationRegionChangedEventCallbackDelegate(IntPtr application);
- private DaliEventHandler<object,NUIApplicationRegionChangedEventArgs> _applicationRegionChangedEventHandler;
- private NUIApplicationRegionChangedEventCallbackDelegate _applicationRegionChangedEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void NUIApplicationBatteryLowEventCallbackDelegate(IntPtr application);
- private DaliEventHandler<object,NUIApplicationBatteryLowEventArgs> _applicationBatteryLowEventHandler;
- private NUIApplicationBatteryLowEventCallbackDelegate _applicationBatteryLowEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void NUIApplicationMemoryLowEventCallbackDelegate(IntPtr application);
- private DaliEventHandler<object,NUIApplicationMemoryLowEventArgs> _applicationMemoryLowEventHandler;
- private NUIApplicationMemoryLowEventCallbackDelegate _applicationMemoryLowEventCallbackDelegate;
-
- [UnmanagedFunctionPointer(CallingConvention.StdCall)]
- private delegate void NUIApplicationAppControlEventCallbackDelegate(IntPtr application, IntPtr voidp);
- private DaliEventHandler<object,NUIApplicationAppControlEventArgs> _applicationAppControlEventHandler;
- private NUIApplicationAppControlEventCallbackDelegate _applicationAppControlEventCallbackDelegate;
-
- /**
- * @brief Event for Initialized signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of NUIApplicationInitEventHandler - DaliEventHandler<object,NUIApplicationInitEventArgs>)
- * provided by the user. Initialized signal is emitted when application is initialised
- */
- public event DaliEventHandler<object,NUIApplicationInitEventArgs> Initialized
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_applicationInitEventHandler == null)
- {
- _applicationInitEventHandler += value;
-
- _applicationInitEventCallbackDelegate = new NUIApplicationInitEventCallbackDelegate(OnApplicationInit);
- this.InitSignal().Connect(_applicationInitEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_applicationInitEventHandler != null)
- {
- this.InitSignal().Disconnect(_applicationInitEventCallbackDelegate);
- }
-
- _applicationInitEventHandler -= value;
- }
- }
- }
-
- // Callback for Application InitSignal
- private void OnApplicationInit(IntPtr data)
- {
- NUIApplicationInitEventArgs e = new NUIApplicationInitEventArgs();
-
- // Populate all members of "e" (NUIApplicationInitEventArgs) with real data
- e.Application = Application.GetApplicationFromPtr(data);
-
- if (_applicationInitEventHandler != null)
- {
- //here we send all data to user event handlers
- _applicationInitEventHandler(this, e);
- }
- }
-
- /**
- * @brief Event for Terminated signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of NUIApplicationTerminateEventHandler-DaliEventHandler<object,NUIApplicationTerminateEventArgs>)
- * provided by the user. Terminated signal is emitted when application is terminated
- */
- public event DaliEventHandler<object,NUIApplicationTerminateEventArgs> Terminated
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_applicationTerminateEventHandler == null)
- {
- _applicationTerminateEventHandler += value;
-
- _applicationTerminateEventCallbackDelegate = new NUIApplicationTerminateEventCallbackDelegate(OnNUIApplicationTerminate);
- this.TerminateSignal().Connect(_applicationTerminateEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_applicationTerminateEventHandler != null)
- {
- this.TerminateSignal().Disconnect(_applicationTerminateEventCallbackDelegate);
- }
-
- _applicationTerminateEventHandler -= value;
- }
- }
- }
-
- // Callback for Application TerminateSignal
- private void OnNUIApplicationTerminate(IntPtr data)
- {
- NUIApplicationTerminateEventArgs e = new NUIApplicationTerminateEventArgs();
-
- // Populate all members of "e" (NUIApplicationTerminateEventArgs) with real data
- e.Application = Application.GetApplicationFromPtr(data);
-
- if (_applicationTerminateEventHandler != null)
- {
- //here we send all data to user event handlers
- _applicationTerminateEventHandler(this, e);
- }
- }
-
- /**
- * @brief Event for Paused signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of NUIApplicationPauseEventHandler-DaliEventHandler<object,NUIApplicationPauseEventArgs>)
- * provided by the user. Paused signal is emitted when application is paused
- */
- public event DaliEventHandler<object,NUIApplicationPauseEventArgs> Paused
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_applicationPauseEventHandler == null)
- {
- _applicationPauseEventHandler += value;
-
- _applicationPauseEventCallbackDelegate = new NUIApplicationPauseEventCallbackDelegate(OnNUIApplicationPause);
- this.PauseSignal().Connect(_applicationPauseEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_applicationPauseEventHandler != null)
- {
- this.PauseSignal().Disconnect(_applicationPauseEventCallbackDelegate);
- }
-
- _applicationPauseEventHandler -= value;
- }
- }
- }
-
- // Callback for Application PauseSignal
- private void OnNUIApplicationPause(IntPtr data)
- {
- NUIApplicationPauseEventArgs e = new NUIApplicationPauseEventArgs();
-
- // Populate all members of "e" (NUIApplicationPauseEventArgs) with real data
- e.Application = Application.GetApplicationFromPtr(data);
-
- if (_applicationPauseEventHandler != null)
- {
- //here we send all data to user event handlers
- _applicationPauseEventHandler(this, e);
- }
- }
-
- /**
- * @brief Event for Resumed signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of NUIApplicationResumeEventHandler-DaliEventHandler<object,NUIApplicationResumeEventArgs>)
- * provided by the user. Resumed signal is emitted when application is resumed
- */
- public event DaliEventHandler<object,NUIApplicationResumeEventArgs> Resumed
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_applicationResumeEventHandler == null)
- {
- _applicationResumeEventHandler += value;
-
- _applicationResumeEventCallbackDelegate = new NUIApplicationResumeEventCallbackDelegate(OnNUIApplicationResume);
- this.ResumeSignal().Connect(_applicationResumeEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_applicationResumeEventHandler != null)
- {
- this.ResumeSignal().Disconnect(_applicationResumeEventCallbackDelegate);
- }
-
- _applicationResumeEventHandler -= value;
- }
- }
- }
-
- // Callback for Application ResumeSignal
- private void OnNUIApplicationResume(IntPtr data)
- {
- NUIApplicationResumeEventArgs e = new NUIApplicationResumeEventArgs();
-
- // Populate all members of "e" (NUIApplicationResumeEventArgs) with real data
- e.Application = Application.GetApplicationFromPtr(data);
-
- if (_applicationResumeEventHandler != null)
- {
- //here we send all data to user event handlers
- _applicationResumeEventHandler(this, e);
- }
- }
-
- /**
- * @brief Event for Reset signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of NUIApplicationResetEventHandler-DaliEventHandler<object,NUIApplicationResetEventArgs>)
- * provided by the user. Reset signal is emitted when application is reset
- */
- public event DaliEventHandler<object,NUIApplicationResetEventArgs> Reset
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_applicationResetEventHandler == null)
- {
- _applicationResetEventHandler += value;
-
- _applicationResetEventCallbackDelegate = new NUIApplicationResetEventCallbackDelegate(OnNUIApplicationReset);
- this.ResetSignal().Connect(_applicationResetEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_applicationResetEventHandler != null)
- {
- this.ResetSignal().Disconnect(_applicationResetEventCallbackDelegate);
- }
-
- _applicationResetEventHandler -= value;
- }
- }
- }
-
- // Callback for Application ResetSignal
- private void OnNUIApplicationReset(IntPtr data)
- {
- NUIApplicationResetEventArgs e = new NUIApplicationResetEventArgs();
-
- // Populate all members of "e" (NUIApplicationResetEventArgs) with real data
- e.Application = Application.GetApplicationFromPtr(data);
-
- if (_applicationResetEventHandler != null)
- {
- //here we send all data to user event handlers
- _applicationResetEventHandler(this, e);
- }
- }
-
- /**
- * @brief Event for Resized signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of NUIApplicationResizeEventHandler-DaliEventHandler<object,NUIApplicationResizeEventArgs>)
- * provided by the user. Resized signal is emitted when application is resized
- */
- public event DaliEventHandler<object,NUIApplicationResizeEventArgs> Resized
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_applicationResizeEventHandler == null)
- {
- _applicationResizeEventHandler += value;
-
- _applicationResizeEventCallbackDelegate = new NUIApplicationResizeEventCallbackDelegate(OnNUIApplicationResize);
- this.ResizeSignal().Connect(_applicationResizeEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_applicationResizeEventHandler != null)
- {
- this.ResizeSignal().Disconnect(_applicationResizeEventCallbackDelegate);
- }
-
- _applicationResizeEventHandler -= value;
- }
- }
- }
-
- // Callback for Application ResizeSignal
- private void OnNUIApplicationResize(IntPtr data)
- {
- NUIApplicationResizeEventArgs e = new NUIApplicationResizeEventArgs();
-
- // Populate all members of "e" (NUIApplicationResizeEventArgs) with real data
- e.Application = Application.GetApplicationFromPtr(data);
-
- if (_applicationResizeEventHandler != null)
- {
- //here we send all data to user event handlers
- _applicationResizeEventHandler(this, e);
- }
- }
-
- /**
- * @brief Event for LanguageChanged signal which can be used to subscribe/unsubscribe the event handler
- * (in the type of NUIApplicationLanguageChangedEventHandler-DaliEventHandler<object,NUIApplicationLanguageChangedEventArgs>)
- * provided by the user. LanguageChanged signal is emitted when the region of the device is changed.
- */
- public event DaliEventHandler<object,NUIApplicationLanguageChangedEventArgs> LanguageChanged
- {
- add
- {
- lock(this)
- {
- // Restricted to only one listener
- if (_applicationLanguageChangedEventHandler == null)
- {
- _applicationLanguageChangedEventHandler += value;
-
- _applicationLanguageChangedEventCallbackDelegate = new NUIApplicationLanguageChangedEventCallbackDelegate(OnNUIApplicationLanguageChanged);
- this.LanguageChangedSignal().Connect(_applicationLanguageChangedEventCallbackDelegate);
- }
- }
- }
-
- remove
- {
- lock(this)
- {
- if (_applicationLanguageChangedEventHandler != null)
- {
- this.LanguageChangedSignal().Disconnect(_applicationLanguageChangedEventCallbackDelegate);
- }
-
- _applicationLanguageChangedEventHandler -= value;
- }
- }
- }
-
- // Callback for Application LanguageChangedSignal
- private void OnNUIApplicationLanguageChanged(IntPtr data)
- {
- NUIApplicationLanguageChangedEventArgs e = new NUIApplicationLanguageChangedEventArgs();
-
- // Populate all members of "e" (NUIApplicationLanguageChangedEventArgs) with real data
- e.Application = Application.GetApplicationFromPtr(data);
-
- if (_applicationLanguageChangedEventHandler != null)
- {
- //here we send all data to user event handlers
- _applicationLanguageChangedEventHandler(this, e);
- }
+ }\r
+\r
+ public class Application : BaseHandle\r
+ {\r
+ private global::System.Runtime.InteropServices.HandleRef swigCPtr;\r
+\r
+ internal Application(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Application_SWIGUpcast(cPtr), cMemoryOwn)\r
+ {\r
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);\r
+ }\r
+\r
+ internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Application obj)\r
+ {\r
+ return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;\r
+ }\r
+\r
+ ~Application()\r
+ {\r
+ DisposeQueue.Instance.Add(this);\r
+ }\r
+\r
+ public override void Dispose()\r
+ {\r
+ if (!Stage.IsInstalled())\r
+ {\r
+ DisposeQueue.Instance.Add(this);\r
+ return;\r
+ }\r
+\r
+ lock (this)\r
+ {\r
+ if (swigCPtr.Handle != global::System.IntPtr.Zero)\r
+ {\r
+ if (swigCMemOwn)\r
+ {\r
+ swigCMemOwn = false;\r
+ NDalicPINVOKE.delete_Application(swigCPtr);\r
+ }\r
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);\r
+ }\r
+ global::System.GC.SuppressFinalize(this);\r
+ base.Dispose();\r
+ }\r
+ }\r
+\r
+\r
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]\r
+ private delegate void NUIApplicationInitEventCallbackDelegate(IntPtr application);\r
+ private DaliEventHandler<object, NUIApplicationInitEventArgs> _applicationInitEventHandler;\r
+ private NUIApplicationInitEventCallbackDelegate _applicationInitEventCallbackDelegate;\r
+\r
+\r
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]\r
+ private delegate void NUIApplicationTerminateEventCallbackDelegate(IntPtr application);\r
+ private DaliEventHandler<object, NUIApplicationTerminateEventArgs> _applicationTerminateEventHandler;\r
+ private NUIApplicationTerminateEventCallbackDelegate _applicationTerminateEventCallbackDelegate;\r
+\r
+\r
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]\r
+ private delegate void NUIApplicationPauseEventCallbackDelegate(IntPtr application);\r
+ private DaliEventHandler<object, NUIApplicationPauseEventArgs> _applicationPauseEventHandler;\r
+ private NUIApplicationPauseEventCallbackDelegate _applicationPauseEventCallbackDelegate;\r
+\r
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]\r
+ private delegate void NUIApplicationResumeEventCallbackDelegate(IntPtr application);\r
+ private DaliEventHandler<object, NUIApplicationResumeEventArgs> _applicationResumeEventHandler;\r
+ private NUIApplicationResumeEventCallbackDelegate _applicationResumeEventCallbackDelegate;\r
+\r
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]\r
+ private delegate void NUIApplicationResetEventCallbackDelegate(IntPtr application);\r
+ private DaliEventHandler<object, NUIApplicationResetEventArgs> _applicationResetEventHandler;\r
+ private NUIApplicationResetEventCallbackDelegate _applicationResetEventCallbackDelegate;\r
+\r
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]\r
+ private delegate void NUIApplicationResizeEventCallbackDelegate(IntPtr application);\r
+ private DaliEventHandler<object, NUIApplicationResizeEventArgs> _applicationResizeEventHandler;\r
+ private NUIApplicationResizeEventCallbackDelegate _applicationResizeEventCallbackDelegate;\r
+\r
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]\r
+ private delegate void NUIApplicationLanguageChangedEventCallbackDelegate(IntPtr application);\r
+ private DaliEventHandler<object, NUIApplicationLanguageChangedEventArgs> _applicationLanguageChangedEventHandler;\r
+ private NUIApplicationLanguageChangedEventCallbackDelegate _applicationLanguageChangedEventCallbackDelegate;\r
+\r
+\r
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]\r
+ private delegate void NUIApplicationRegionChangedEventCallbackDelegate(IntPtr application);\r
+ private DaliEventHandler<object, NUIApplicationRegionChangedEventArgs> _applicationRegionChangedEventHandler;\r
+ private NUIApplicationRegionChangedEventCallbackDelegate _applicationRegionChangedEventCallbackDelegate;\r
+\r
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]\r
+ private delegate void NUIApplicationBatteryLowEventCallbackDelegate(IntPtr application);\r
+ private DaliEventHandler<object, NUIApplicationBatteryLowEventArgs> _applicationBatteryLowEventHandler;\r
+ private NUIApplicationBatteryLowEventCallbackDelegate _applicationBatteryLowEventCallbackDelegate;\r
+\r
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]\r
+ private delegate void NUIApplicationMemoryLowEventCallbackDelegate(IntPtr application);\r
+ private DaliEventHandler<object, NUIApplicationMemoryLowEventArgs> _applicationMemoryLowEventHandler;\r
+ private NUIApplicationMemoryLowEventCallbackDelegate _applicationMemoryLowEventCallbackDelegate;\r
+\r
+ [UnmanagedFunctionPointer(CallingConvention.StdCall)]\r
+ private delegate void NUIApplicationAppControlEventCallbackDelegate(IntPtr application, IntPtr voidp);\r
+ private DaliEventHandler<object, NUIApplicationAppControlEventArgs> _applicationAppControlEventHandler;\r
+ private NUIApplicationAppControlEventCallbackDelegate _applicationAppControlEventCallbackDelegate;\r
+\r
+ /**
+ * @brief Event for Initialized signal which can be used to subscribe/unsubscribe the event handler
+ * (in the type of NUIApplicationInitEventHandler - DaliEventHandler<object,NUIApplicationInitEventArgs>)
+ * provided by the user. Initialized signal is emitted when application is initialised
+ */\r
+ public event DaliEventHandler<object, NUIApplicationInitEventArgs> Initialized\r
+ {\r
+ add\r
+ {\r
+ lock (this)\r
+ {\r
+ // Restricted to only one listener\r
+ if (_applicationInitEventHandler == null)\r
+ {\r
+ _applicationInitEventHandler += value;\r
+\r
+ _applicationInitEventCallbackDelegate = new NUIApplicationInitEventCallbackDelegate(OnApplicationInit);\r
+ this.InitSignal().Connect(_applicationInitEventCallbackDelegate);\r
+ }\r
+ }\r
+ }\r
+\r
+ remove\r
+ {\r
+ lock (this)\r
+ {\r
+ if (_applicationInitEventHandler != null)\r
+ {\r
+ this.InitSignal().Disconnect(_applicationInitEventCallbackDelegate);\r
+ }\r
+\r
+ _applicationInitEventHandler -= value;\r
+ }\r
+ }\r
+ }\r
+\r
+ // Callback for Application InitSignal\r
+ private void OnApplicationInit(IntPtr data)\r
+ {\r
+ NUIApplicationInitEventArgs e = new NUIApplicationInitEventArgs();\r
+\r
+ // Populate all members of "e" (NUIApplicationInitEventArgs) with real data\r
+ e.Application = Application.GetApplicationFromPtr(data);\r
+\r
+ if (_applicationInitEventHandler != null)\r
+ {\r
+ //here we send all data to user event handlers\r
+ _applicationInitEventHandler(this, e);\r
+ }\r
+ }\r
+\r
+ /**
+ * @brief Event for Terminated signal which can be used to subscribe/unsubscribe the event handler
+ * (in the type of NUIApplicationTerminateEventHandler-DaliEventHandler<object,NUIApplicationTerminateEventArgs>)
+ * provided by the user. Terminated signal is emitted when application is terminated
+ */\r
+ public event DaliEventHandler<object, NUIApplicationTerminateEventArgs> Terminated\r
+ {\r
+ add\r
+ {\r
+ lock (this)\r
+ {\r
+ // Restricted to only one listener\r
+ if (_applicationTerminateEventHandler == null)\r
+ {\r
+ _applicationTerminateEventHandler += value;\r
+\r
+ _applicationTerminateEventCallbackDelegate = new NUIApplicationTerminateEventCallbackDelegate(OnNUIApplicationTerminate);\r
+ this.TerminateSignal().Connect(_applicationTerminateEventCallbackDelegate);\r
+ }\r
+ }\r
+ }\r
+\r
+ remove\r
+ {\r
+ lock (this)\r
+ {\r
+ if (_applicationTerminateEventHandler != null)\r
+ {\r
+ this.TerminateSignal().Disconnect(_applicationTerminateEventCallbackDelegate);\r
+ }\r
+\r
+ _applicationTerminateEventHandler -= value;\r
+ }\r
+ }\r
+ }\r
+\r
+ // Callback for Application TerminateSignal\r
+ private void OnNUIApplicationTerminate(IntPtr data)\r
+ {\r
+ NUIApplicationTerminateEventArgs e = new NUIApplicationTerminateEventArgs();\r
+\r
+ // Populate all members of "e" (NUIApplicationTerminateEventArgs) with real data\r
+ e.Application = Application.GetApplicationFromPtr(data);\r
+\r
+ if (_applicationTerminateEventHandler != null)\r
+ {\r
+ //here we send all data to user event handlers\r
+ _applicationTerminateEventHandler(this, e);\r
+ }\r
+ }\r
+\r
+ /**
+ * @brief Event for Paused signal which can be used to subscribe/unsubscribe the event handler
+ * (in the type of NUIApplicationPauseEventHandler-DaliEventHandler<object,NUIApplicationPauseEventArgs>)
+ * provided by the user. Paused signal is emitted when application is paused
+ */\r
+ public event DaliEventHandler<object, NUIApplicationPauseEventArgs> Paused\r
+ {\r
+ add\r
+ {\r
+ lock (this)\r
+ {\r
+ // Restricted to only one listener\r
+ if (_applicationPauseEventHandler == null)\r
+ {\r
+ _applicationPauseEventHandler += value;\r
+\r
+ _applicationPauseEventCallbackDelegate = new NUIApplicationPauseEventCallbackDelegate(OnNUIApplicationPause);\r
+ this.PauseSignal().Connect(_applicationPauseEventCallbackDelegate);\r
+ }\r
+ }\r
+ }\r
+\r
+ remove\r
+ {\r
+ lock (this)\r
+ {\r
+ if (_applicationPauseEventHandler != null)\r
+ {\r
+ this.PauseSignal().Disconnect(_applicationPauseEventCallbackDelegate);\r
+ }\r
+\r
+ _applicationPauseEventHandler -= value;\r
+ }\r
+ }\r
+ }\r
+\r
+ // Callback for Application PauseSignal\r
+ private void OnNUIApplicationPause(IntPtr data)\r
+ {\r
+ NUIApplicationPauseEventArgs e = new NUIApplicationPauseEventArgs();\r
+\r
+ // Populate all members of "e" (NUIApplicationPauseEventArgs) with real data\r
+ e.Application = Application.GetApplicationFromPtr(data);\r
+\r
+ if (_applicationPauseEventHandler != null)\r
+ {\r
+ //here we send all data to user event handlers\r
+ _applicationPauseEventHandler(this, e);\r
+ }\r
+ }\r
+\r
+ /**
+ * @brief Event for Resumed signal which can be used to subscribe/unsubscribe the event handler
+ * (in the type of NUIApplicationResumeEventHandler-DaliEventHandler<object,NUIApplicationResumeEventArgs>)
+ * provided by the user. Resumed signal is emitted when application is resumed
+ */\r
+ public event DaliEventHandler<object, NUIApplicationResumeEventArgs> Resumed\r
+ {\r
+ add\r
+ {\r
+ lock (this)\r
+ {\r
+ // Restricted to only one listener\r
+ if (_applicationResumeEventHandler == null)\r
+ {\r
+ _applicationResumeEventHandler += value;\r
+\r
+ _applicationResumeEventCallbackDelegate = new NUIApplicationResumeEventCallbackDelegate(OnNUIApplicationResume);\r
+ this.ResumeSignal().Connect(_applicationResumeEventCallbackDelegate);\r
+ }\r
+ }\r
+ }\r
+\r
+ remove\r
+ {\r
+ lock (this)\r
+ {\r
+ if (_applicationResumeEventHandler != null)\r
+ {\r
+ this.ResumeSignal().Disconnect(_applicationResumeEventCallbackDelegate);\r
+ }\r
+\r
+ _applicationResumeEventHandler -= value;\r
+ }\r
+ }\r
+ }\r
+\r
+ // Callback for Application ResumeSignal\r
+ private void OnNUIApplicationResume(IntPtr data)\r
+ {\r
+ NUIApplicationResumeEventArgs e = new NUIApplicationResumeEventArgs();\r
+\r
+ // Populate all members of "e" (NUIApplicationResumeEventArgs) with real data\r
+ e.Application = Application.GetApplicationFromPtr(data);\r
+\r
+ if (_applicationResumeEventHandler != null)\r
+ {\r
+ //here we send all data to user event handlers\r
+ _applicationResumeEventHandler(this, e);\r
+ }\r
+ }\r
+\r
+ /**
+ * @brief Event for Reset signal which can be used to subscribe/unsubscribe the event handler
+ * (in the type of NUIApplicationResetEventHandler-DaliEventHandler<object,NUIApplicationResetEventArgs>)
+ * provided by the user. Reset signal is emitted when application is reset
+ */\r
+ public event DaliEventHandler<object, NUIApplicationResetEventArgs> Reset\r
+ {\r
+ add\r
+ {\r
+ lock (this)\r
+ {\r
+ // Restricted to only one listener\r
+ if (_applicationResetEventHandler == null)\r
+ {\r
+ _applicationResetEventHandler += value;\r
+\r
+ _applicationResetEventCallbackDelegate = new NUIApplicationResetEventCallbackDelegate(OnNUIApplicationReset);\r
+ this.ResetSignal().Connect(_applicationResetEventCallbackDelegate);\r
+ }\r
+ }\r
+ }\r
+\r
+ remove\r
+ {\r
+ lock (this)\r
+ {\r
+ if (_applicationResetEventHandler != null)\r
+ {\r
+ this.ResetSignal().Disconnect(_applicationResetEventCallbackDelegate);\r
+ }\r
+\r
+ _applicationResetEventHandler -= value;\r
+ }\r
+ }\r
+ }\r
+\r
+ // Callback for Application ResetSignal\r
+ private void OnNUIApplicationReset(IntPtr data)\r
+ {\r
+ NUIApplicationResetEventArgs e = new NUIApplicationResetEventArgs();\r
+\r
+ // Populate all members of "e" (NUIApplicationResetEventArgs) with real data\r
+ e.Application = Application.GetApplicationFromPtr(data);\r
+\r
+ if (_applicationResetEventHandler != null)\r
+ {\r
+ //here we send all data to user event handlers\r
+ _applicationResetEventHandler(this, e);\r
+ }\r
+ }\r
+\r
+ /**
+ * @brief Event for Resized signal which can be used to subscribe/unsubscribe the event handler
+ * (in the type of NUIApplicationResizeEventHandler-DaliEventHandler<object,NUIApplicationResizeEventArgs>)
+ * provided by the user. Resized signal is emitted when application is resized
+ */\r
+ public event DaliEventHandler<object, NUIApplicationResizeEventArgs> Resized\r
+ {\r
+ add\r
+ {\r
+ lock (this)\r
+ {\r
+ // Restricted to only one listener\r
+ if (_applicationResizeEventHandler == null)\r
+ {\r
+ _applicationResizeEventHandler += value;\r
+\r
+ _applicationResizeEventCallbackDelegate = new NUIApplicationResizeEventCallbackDelegate(OnNUIApplicationResize);\r
+ this.ResizeSignal().Connect(_applicationResizeEventCallbackDelegate);\r
+ }\r
+ }\r
+ }\r
+\r
+ remove\r
+ {\r
+ lock (this)\r
+ {\r
+ if (_applicationResizeEventHandler != null)\r
+ {\r
+ this.ResizeSignal().Disconnect(_applicationResizeEventCallbackDelegate);\r
+ }\r
+\r
+ _applicationResizeEventHandler -= value;\r
+ }\r
+ }\r
+ }\r
+\r
+ // Callback for Application ResizeSignal\r
+ private void OnNUIApplicationResize(IntPtr data)\r
+ {\r
+ NUIApplicationResizeEventArgs e = new NUIApplicationResizeEventArgs();\r
+\r
+ // Populate all members of "e" (NUIApplicationResizeEventArgs) with real data\r
+ e.Application = Application.GetApplicationFromPtr(data);\r
+\r
+ if (_applicationResizeEventHandler != null)\r
+ {\r
+ //here we send all data to user event handlers\r
+ _applicationResizeEventHandler(this, e);\r
+ }\r
+ }\r
+\r
+ /**
+ * @brief Event for LanguageChanged signal which can be used to subscribe/unsubscribe the event handler
+ * (in the type of NUIApplicationLanguageChangedEventHandler-DaliEventHandler<object,NUIApplicationLanguageChangedEventArgs>)
+ * provided by the user. LanguageChanged signal is emitted when the region of the device is changed.
+ */\r
+ public event DaliEventHandler<object, NUIApplicationLanguageChangedEventArgs> LanguageChanged\r
+ {\r
+ add\r
+ {\r
+ lock (this)\r
+ {\r
+ // Restricted to only one listener\r
+ if (_applicationLanguageChangedEventHandler == null)\r
+ {\r
+ _applicationLanguageChangedEventHandler += value;\r
+\r
+ _applicationLanguageChangedEventCallbackDelegate = new NUIApplicationLanguageChangedEventCallbackDelegate(OnNUIApplicationLanguageChanged);\r
+ this.LanguageChangedSignal().Connect(_applicationLanguageChangedEventCallbackDelegate);\r
+ }\r
+ }\r
+ }\r
+\r
+ remove\r
+ {\r
+ lock (this)\r
+ {\r
+ if (_applicationLanguageChangedEventHandler != null)\r
+ {\r
+ this.LanguageChangedSignal().Disconnect(_applicationLanguageChangedEventCallbackDelegate);\r
+ }\r
+\r
+ _applicationLanguageChangedEventHandler -= value;\r
+ }\r
+ }\r
+ }\r
+\r
+ // Callback for Application LanguageChangedSignal\r
+ private void OnNUIApplicationLanguageChanged(IntPtr data)\r
+ {\r
+ NUIApplicationLanguageChangedEventArgs e = new NUIApplicationLanguageChangedEventArgs();\r
+\r
+ // Populate all members of "e" (NUIApplicationLanguageChangedEventArgs) with real data\r
+ e.Application = Application.GetApplicationFromPtr(data);\r
+\r
+ if (_applicationLanguageChangedEventHandler != null)\r
+ {\r
+ //here we send all data to user event handlers\r
+ _applicationLanguageChangedEventHandler(this, e);\r
+ }\r
+ }\r
+\r
+ /**
+ * @brief Event for RegionChanged signal which can be used to subscribe/unsubscribe the event handler
+ * (in the type of NUIApplicationRegionChangedEventHandler-DaliEventHandler<object,NUIApplicationRegionChangedEventArgs>)
+ * provided by the user. RegionChanged signal is emitted when the region of the device is changed.
+ */\r
+ public event DaliEventHandler<object, NUIApplicationRegionChangedEventArgs> RegionChanged\r
+ {\r
+ add\r
+ {\r
+ lock (this)\r
+ {\r
+ // Restricted to only one listener\r
+ if (_applicationRegionChangedEventHandler == null)\r
+ {\r
+ _applicationRegionChangedEventHandler += value;\r
+\r
+ _applicationRegionChangedEventCallbackDelegate = new NUIApplicationRegionChangedEventCallbackDelegate(OnNUIApplicationRegionChanged);\r
+ this.RegionChangedSignal().Connect(_applicationRegionChangedEventCallbackDelegate);\r
+ }\r
+ }\r
+ }\r
+\r
+ remove\r
+ {\r
+ lock (this)\r
+ {\r
+ if (_applicationRegionChangedEventHandler != null)\r
+ {\r
+ this.RegionChangedSignal().Disconnect(_applicationRegionChangedEventCallbackDelegate);\r
+ }\r
+\r
+ _applicationRegionChangedEventHandler -= value;\r
+ }\r
+ }\r
+ }\r
+\r
+ // Callback for Application RegionChangedSignal\r
+ private void OnNUIApplicationRegionChanged(IntPtr data)\r
+ {\r
+ NUIApplicationRegionChangedEventArgs e = new NUIApplicationRegionChangedEventArgs();\r
+\r
+ // Populate all members of "e" (NUIApplicationRegionChangedEventArgs) with real data\r
+ e.Application = Application.GetApplicationFromPtr(data);\r
+\r
+ if (_applicationRegionChangedEventHandler != null)\r
+ {\r
+ //here we send all data to user event handlers\r
+ _applicationRegionChangedEventHandler(this, e);\r
+ }\r
+ }\r
+\r
+ /**
+ * @brief Event for BatteryLow signal which can be used to subscribe/unsubscribe the event handler
+ * (in the type of NUIApplicationBatteryLowEventHandler-DaliEventHandler<object,NUIApplicationBatteryLowEventArgs>)
+ * provided by the user. BatteryLow signal is emitted when the battery level of the device is low.
+ */\r
+ public event DaliEventHandler<object, NUIApplicationBatteryLowEventArgs> BatteryLow\r
+ {\r
+ add\r
+ {\r
+ lock (this)\r
+ {\r
+ // Restricted to only one listener\r
+ if (_applicationBatteryLowEventHandler == null)\r
+ {\r
+ _applicationBatteryLowEventHandler += value;\r
+\r
+ _applicationBatteryLowEventCallbackDelegate = new NUIApplicationBatteryLowEventCallbackDelegate(OnNUIApplicationBatteryLow);\r
+ this.BatteryLowSignal().Connect(_applicationBatteryLowEventCallbackDelegate);\r
+ }\r
+ }\r
+ }\r
+\r
+ remove\r
+ {\r
+ lock (this)\r
+ {\r
+ if (_applicationBatteryLowEventHandler != null)\r
+ {\r
+ this.BatteryLowSignal().Disconnect(_applicationBatteryLowEventCallbackDelegate);\r
+ }\r
+\r
+ _applicationBatteryLowEventHandler -= value;\r
+ }\r
+ }\r
+ }\r
+\r
+ // Callback for Application BatteryLowSignal\r
+ private void OnNUIApplicationBatteryLow(IntPtr data)\r
+ {\r
+ NUIApplicationBatteryLowEventArgs e = new NUIApplicationBatteryLowEventArgs();\r
+\r
+ // Populate all members of "e" (NUIApplicationBatteryLowEventArgs) with real data\r
+ e.Application = Application.GetApplicationFromPtr(data);\r
+\r
+ if (_applicationBatteryLowEventHandler != null)\r
+ {\r
+ //here we send all data to user event handlers\r
+ _applicationBatteryLowEventHandler(this, e);\r
+ }\r
+ }\r
+\r
+ /**
+ * @brief Event for MemoryLow signal which can be used to subscribe/unsubscribe the event handler
+ * (in the type of NUIApplicationMemoryLowEventHandler-DaliEventHandler<object,NUIApplicationMemoryLowEventArgs>)
+ * provided by the user. MemoryLow signal is emitted when the memory level of the device is low.
+ */\r
+ public event DaliEventHandler<object, NUIApplicationMemoryLowEventArgs> MemoryLow\r
+ {\r
+ add\r
+ {\r
+ lock (this)\r
+ {\r
+ // Restricted to only one listener\r
+ if (_applicationMemoryLowEventHandler == null)\r
+ {\r
+ _applicationMemoryLowEventHandler += value;\r
+\r
+ _applicationMemoryLowEventCallbackDelegate = new NUIApplicationMemoryLowEventCallbackDelegate(OnNUIApplicationMemoryLow);\r
+ this.MemoryLowSignal().Connect(_applicationMemoryLowEventCallbackDelegate);\r
+ }\r
+ }\r
+ }\r
+\r
+ remove\r
+ {\r
+ lock (this)\r
+ {\r
+ if (_applicationMemoryLowEventHandler != null)\r
+ {\r
+ this.MemoryLowSignal().Disconnect(_applicationMemoryLowEventCallbackDelegate);\r
+ }\r
+\r
+ _applicationMemoryLowEventHandler -= value;\r
+ }\r
+ }\r
+ }\r
+\r
+ // Callback for Application MemoryLowSignal\r
+ private void OnNUIApplicationMemoryLow(IntPtr data)\r
+ {\r
+ NUIApplicationMemoryLowEventArgs e = new NUIApplicationMemoryLowEventArgs();\r
+\r
+ // Populate all members of "e" (NUIApplicationMemoryLowEventArgs) with real data\r
+ e.Application = Application.GetApplicationFromPtr(data);\r
+\r
+ if (_applicationMemoryLowEventHandler != null)\r
+ {\r
+ //here we send all data to user event handlers\r
+ _applicationMemoryLowEventHandler(this, e);\r
+ }\r
+ }\r
+\r
+ /**
+ * @brief Event for AppControl signal which can be used to subscribe/unsubscribe the event handler
+ * (in the type of NUIApplicationAppControlEventHandler-DaliEventHandler<object,NUIApplicationAppControlEventArgs>)
+ * provided by the user. AppControl signal is emitted when another application sends a launch request to the application.
+ */\r
+ public event DaliEventHandler<object, NUIApplicationAppControlEventArgs> AppControl\r
+ {\r
+ add\r
+ {\r
+ lock (this)\r
+ {\r
+ // Restricted to only one listener\r
+ if (_applicationAppControlEventHandler == null)\r
+ {\r
+ _applicationAppControlEventHandler += value;\r
+\r
+ _applicationAppControlEventCallbackDelegate = new NUIApplicationAppControlEventCallbackDelegate(OnNUIApplicationAppControl);\r
+ this.AppControlSignal().Connect(_applicationAppControlEventCallbackDelegate);\r
+ }\r
+ }\r
+ }\r
+\r
+ remove\r
+ {\r
+ lock (this)\r
+ {\r
+ if (_applicationAppControlEventHandler != null)\r
+ {\r
+ this.AppControlSignal().Disconnect(_applicationAppControlEventCallbackDelegate);\r
+ }\r
+\r
+ _applicationAppControlEventHandler -= value;\r
+ }\r
+ }\r
+ }\r
+\r
+ // Callback for Application AppControlSignal\r
+ private void OnNUIApplicationAppControl(IntPtr application, IntPtr voidp)\r
+ {\r
+ NUIApplicationAppControlEventArgs e = new NUIApplicationAppControlEventArgs();\r
+\r
+ // Populate all members of "e" (NUIApplicationAppControlEventArgs) with real data\r
+ e.Application = Application.GetApplicationFromPtr(application);\r
+ e.VoidP = voidp;\r
+\r
+ if (_applicationAppControlEventHandler != null)\r
+ {\r
+ //here we send all data to user event handlers\r
+ _applicationAppControlEventHandler(this, e);\r
+ }\r
+ }\r
+\r
+ private static Application _instance; // singleton\r
+\r
+ public delegate void InitDelegate();\r
+\r
+ public delegate void TerminateDelegate();\r
+\r
+ public delegate void PauseDelegate();\r
+\r
+ public delegate void ResumeDelegate();\r
+\r
+ public delegate void ResizeDelegate();\r
+\r
+ public delegate void AppControlDelegate();\r
+\r
+ public delegate void LanguageChangedDelegate();\r
+\r
+ public delegate void RegionChangedDelegate();\r
+\r
+ public delegate void BatteryLowDelegate();\r
+\r
+ public delegate void MemoryLowDelegate();\r
+\r
+ [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]\r
+ internal delegate void InitDelegateInternal();\r
+\r
+ [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]\r
+ internal delegate void TerminateDelegateInternal();\r
+\r
+ [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]\r
+ internal delegate void PauseDelegateInternal();\r
+\r
+ [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]\r
+ internal delegate void ResumeDelegateInternal();\r
+\r
+ [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]\r
+ internal delegate void ResizeDelegateInternal();\r
+\r
+ [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]\r
+ internal delegate void AppControlDelegateInternal();\r
+\r
+ [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]\r
+ internal delegate void LanguageChangedDelegateInternal();\r
+\r
+ [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]\r
+ internal delegate void RegionChangedDelegateInternal();\r
+\r
+ [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]\r
+ internal delegate void BatteryLowDelegateInternal();\r
+\r
+ [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]\r
+ internal delegate void MemoryLowDelegateInternal();\r
+\r
+ static void Initialize()\r
+ {\r
+ // instance.InitDelegate();\r
+ }\r
+\r
+ public static Application Instance\r
+ {\r
+ get\r
+ {\r
+ return _instance;\r
+ }\r
+ }\r
+\r
+ public static Application GetApplicationFromPtr(global::System.IntPtr cPtr)\r
+ {\r
+ Application ret = new Application(cPtr, false);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
+ internal void SetupDelegates()\r
+ {\r
+ InitDelegateInternal initializeCallback = new InitDelegateInternal(Initialize);\r
+ System.Console.WriteLine("InitSignal connection count");\r
+\r
+ this.InitSignal().Connect(initializeCallback);\r
+ //Console.WriteLine( "InitSignal connection count = " + app.InitSignal().GetConnectionCount() );\r
+ }\r
+\r
+ public static Application NewApplication()\r
+ {\r
+ _instance = NewApplication("", Application.WINDOW_MODE.OPAQUE);\r
+ return _instance;\r
+ }\r
+\r
+ public static Application NewApplication(string stylesheet)\r
+ {\r
+ _instance = NewApplication(stylesheet, Application.WINDOW_MODE.OPAQUE);\r
+ return _instance;\r
+ }\r
+\r
+ public static Application NewApplication(string stylesheet, Application.WINDOW_MODE windowMode)\r
+ {\r
+\r
+ // register all Views with the type registry, so that can be created / styled via JSON\r
+ ViewRegistryHelper.Initialize();\r
+\r
+ Application ret = New(1, stylesheet, windowMode);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+\r
+ // we've got an application now connect the signals\r
+ ret.SetupDelegates();\r
+ // set the singleton\r
+ _instance = ret;\r
+ return ret;\r
+ }\r
+\r
+ public bool AddIdle(System.Delegate func)\r
+ {\r
+ System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);\r
+ System.IntPtr ip2 = NDalicManualPINVOKE.MakeCallback(new System.Runtime.InteropServices.HandleRef(this, ip));\r
+\r
+ bool ret = NDalicPINVOKE.Application_AddIdle(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip2));\r
+\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
+\r
+\r
+ /**
+ * Outer::outer_method(int)
+ */\r
+ public static Application New()\r
+ {\r
+ Application ret = new Application(NDalicPINVOKE.Application_New__SWIG_0(), true);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
+ public static Application New(int argc)\r
+ {\r
+ Application ret = new Application(NDalicPINVOKE.Application_New__SWIG_1(argc), true);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
+ public static Application New(int argc, string stylesheet)\r
+ {\r
+ Application ret = new Application(NDalicPINVOKE.Application_New__SWIG_2(argc, stylesheet), true);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
+ public static Application New(int argc, string stylesheet, Application.WINDOW_MODE windowMode)\r
+ {\r
+ Application ret = new Application(NDalicPINVOKE.Application_New__SWIG_3(argc, stylesheet, (int)windowMode), true);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
+ public Application() : this(NDalicPINVOKE.new_Application__SWIG_0(), true)\r
+ {\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ }\r
+\r
+ public Application(Application application) : this(NDalicPINVOKE.new_Application__SWIG_1(Application.getCPtr(application)), true)\r
+ {\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ }\r
+\r
+ public Application Assign(Application application)\r
+ {\r
+ Application ret = new Application(NDalicPINVOKE.Application_Assign(swigCPtr, Application.getCPtr(application)), false);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
+ public void MainLoop()\r
+ {\r
+ NDalicPINVOKE.Application_MainLoop__SWIG_0(swigCPtr);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ }\r
+\r
+ internal void MainLoop(SWIGTYPE_p_Configuration__ContextLoss configuration)\r
+ {\r
+ NDalicPINVOKE.Application_MainLoop__SWIG_1(swigCPtr, SWIGTYPE_p_Configuration__ContextLoss.getCPtr(configuration));\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ }\r
+\r
+ public void Lower()\r
+ {\r
+ NDalicPINVOKE.Application_Lower(swigCPtr);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ }\r
+\r
+ public void Quit()\r
+ {\r
+ NDalicPINVOKE.Application_Quit(swigCPtr);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ }\r
+\r
+ internal bool AddIdle(SWIGTYPE_p_Dali__CallbackBase callback)\r
+ {\r
+ bool ret = NDalicPINVOKE.Application_AddIdle(swigCPtr, SWIGTYPE_p_Dali__CallbackBase.getCPtr(callback));\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
+ public Window GetWindow()\r
+ {\r
+ Window ret = new Window(NDalicPINVOKE.Application_GetWindow(swigCPtr), true);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
+ public void ReplaceWindow(Rectangle windowPosition, string name)\r
+ {\r
+ NDalicPINVOKE.Application_ReplaceWindow(swigCPtr, Rectangle.getCPtr(windowPosition), name);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ }\r
+\r
+ public static string GetResourcePath()\r
+ {\r
+ string ret = NDalicPINVOKE.Application_GetResourcePath();\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
+ internal void SetViewMode(ViewMode viewMode)\r
+ {\r
+ NDalicPINVOKE.Application_SetViewMode(swigCPtr, (int)viewMode);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ }\r
+\r
+ internal ViewMode GetViewMode()\r
+ {\r
+ ViewMode ret = (ViewMode)NDalicPINVOKE.Application_GetViewMode(swigCPtr);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
+ public void SetStereoBase(float stereoBase)\r
+ {\r
+ NDalicPINVOKE.Application_SetStereoBase(swigCPtr, stereoBase);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ }\r
+\r
+ public float GetStereoBase()\r
+ {\r
+ float ret = NDalicPINVOKE.Application_GetStereoBase(swigCPtr);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
+ internal ApplicationSignal InitSignal()\r
+ {\r
+ ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_InitSignal(swigCPtr), false);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
+ internal ApplicationSignal TerminateSignal()\r
+ {\r
+ ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_TerminateSignal(swigCPtr), false);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
+ internal ApplicationSignal PauseSignal()\r
+ {\r
+ ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_PauseSignal(swigCPtr), false);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
+ internal ApplicationSignal ResumeSignal()\r
+ {\r
+ ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_ResumeSignal(swigCPtr), false);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
+ internal ApplicationSignal ResetSignal()\r
+ {\r
+ ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_ResetSignal(swigCPtr), false);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
+ internal ApplicationSignal ResizeSignal()\r
+ {\r
+ ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_ResizeSignal(swigCPtr), false);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
+ internal ApplicationControlSignal AppControlSignal()\r
+ {\r
+ ApplicationControlSignal ret = new ApplicationControlSignal(NDalicPINVOKE.Application_AppControlSignal(swigCPtr), false);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
+ internal ApplicationSignal LanguageChangedSignal()\r
+ {\r
+ ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_LanguageChangedSignal(swigCPtr), false);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
+ internal ApplicationSignal RegionChangedSignal()\r
+ {\r
+ ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_RegionChangedSignal(swigCPtr), false);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
+ internal ApplicationSignal BatteryLowSignal()\r
+ {\r
+ ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_BatteryLowSignal(swigCPtr), false);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
+ internal ApplicationSignal MemoryLowSignal()\r
+ {\r
+ ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_MemoryLowSignal(swigCPtr), false);\r
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
+ return ret;\r
+ }\r
+\r
+ public enum WINDOW_MODE\r
+ {\r
+ OPAQUE = 0,\r
+ TRANSPARENT = 1\r
+ }\r
+\r