1 //------------------------------------------------------------------------------
4 // This file was automatically generated by SWIG (http://www.swig.org).
7 // Do not make changes to this file unless you know what you are doing--modify
8 // the SWIG interface file instead.
9 //------------------------------------------------------------------------------
14 using System.Runtime.InteropServices;
17 * @brief Event arguments that passed via NUIApplicationInit signal
20 public class NUIApplicationInitEventArgs : EventArgs
22 private Application _application;
25 * @brief Application - is the application that is being initialized
28 public Application Application
42 * @brief Event arguments that passed via NUIApplicationTerminate signal
45 public class NUIApplicationTerminateEventArgs : EventArgs
47 private Application _application;
49 * @brief Application - is the application that is being Terminated
52 public Application Application
66 * @brief Event arguments that passed via NUIApplicationPause signal
69 public class NUIApplicationPauseEventArgs : EventArgs
71 private Application _application;
73 * @brief Application - is the application that is being Paused
76 public Application Application
90 * @brief Event arguments that passed via NUIApplicationResume signal
93 public class NUIApplicationResumeEventArgs : EventArgs
95 private Application _application;
97 * @brief Application - is the application that is being Resumed
100 public Application Application
108 _application = value;
114 * @brief Event arguments that passed via NUIApplicationReset signal
117 public class NUIApplicationResetEventArgs : EventArgs
119 private Application _application;
121 * @brief Application - is the application that is being Reset
124 public Application Application
132 _application = value;
138 * @brief Event arguments that passed via NUIApplicationResize signal
141 public class NUIApplicationResizeEventArgs : EventArgs
143 private Application _application;
145 * @brief Application - is the application that is being Resized
148 public Application Application
156 _application = value;
162 * @brief Event arguments that passed via NUIApplicationLanguageChanged signal
165 public class NUIApplicationLanguageChangedEventArgs : EventArgs
167 private Application _application;
169 * @brief Application - is the application that is being affected with Device's language change
172 public Application Application
180 _application = value;
186 * @brief Event arguments that passed via NUIApplicationRegionChanged signal
189 public class NUIApplicationRegionChangedEventArgs : EventArgs
191 private Application _application;
193 * @brief Application - is the application that is being affected with Device's region change
196 public Application Application
204 _application = value;
210 * @brief Event arguments that passed via NUIApplicationBatteryLow signal
213 public class NUIApplicationBatteryLowEventArgs : EventArgs
215 private Application _application;
217 * @brief Application - is the application that is being affected when the battery level of the device is low
220 public Application Application
228 _application = value;
234 * @brief Event arguments that passed via NUIApplicationMemoryLow signal
237 public class NUIApplicationMemoryLowEventArgs : EventArgs
239 private Application _application;
241 * @brief Application - is the application that is being affected when the memory level of the device is low
244 public Application Application
252 _application = value;
258 * @brief Event arguments that passed via NUIApplicationAppControl signal
261 public class NUIApplicationAppControlEventArgs : EventArgs
263 private Application _application;
264 private IntPtr _voidp;
266 * @brief Application - is the application that is receiving the launch request from another application
269 public Application Application
277 _application = value;
281 * @brief VoidP - contains the information about why the application is launched
297 public class Application : BaseHandle {
298 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
300 internal Application(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Application_SWIGUpcast(cPtr), cMemoryOwn) {
301 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
304 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Application obj) {
305 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
309 DisposeQueue.Instance.Add(this);
312 public override void Dispose() {
313 if (!Window.IsInstalled()) {
314 DisposeQueue.Instance.Add(this);
319 if (swigCPtr.Handle != global::System.IntPtr.Zero) {
322 NDalicPINVOKE.delete_Application(swigCPtr);
324 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
326 global::System.GC.SuppressFinalize(this);
332 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
333 private delegate void NUIApplicationInitEventCallbackDelegate(IntPtr application);
334 private DaliEventHandler<object,NUIApplicationInitEventArgs> _applicationInitEventHandler;
335 private NUIApplicationInitEventCallbackDelegate _applicationInitEventCallbackDelegate;
338 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
339 private delegate void NUIApplicationTerminateEventCallbackDelegate(IntPtr application);
340 private DaliEventHandler<object,NUIApplicationTerminateEventArgs> _applicationTerminateEventHandler;
341 private NUIApplicationTerminateEventCallbackDelegate _applicationTerminateEventCallbackDelegate;
344 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
345 private delegate void NUIApplicationPauseEventCallbackDelegate(IntPtr application);
346 private DaliEventHandler<object,NUIApplicationPauseEventArgs> _applicationPauseEventHandler;
347 private NUIApplicationPauseEventCallbackDelegate _applicationPauseEventCallbackDelegate;
349 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
350 private delegate void NUIApplicationResumeEventCallbackDelegate(IntPtr application);
351 private DaliEventHandler<object,NUIApplicationResumeEventArgs> _applicationResumeEventHandler;
352 private NUIApplicationResumeEventCallbackDelegate _applicationResumeEventCallbackDelegate;
354 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
355 private delegate void NUIApplicationResetEventCallbackDelegate(IntPtr application);
356 private DaliEventHandler<object,NUIApplicationResetEventArgs> _applicationResetEventHandler;
357 private NUIApplicationResetEventCallbackDelegate _applicationResetEventCallbackDelegate;
359 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
360 private delegate void NUIApplicationResizeEventCallbackDelegate(IntPtr application);
361 private DaliEventHandler<object,NUIApplicationResizeEventArgs> _applicationResizeEventHandler;
362 private NUIApplicationResizeEventCallbackDelegate _applicationResizeEventCallbackDelegate;
364 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
365 private delegate void NUIApplicationLanguageChangedEventCallbackDelegate(IntPtr application);
366 private DaliEventHandler<object,NUIApplicationLanguageChangedEventArgs> _applicationLanguageChangedEventHandler;
367 private NUIApplicationLanguageChangedEventCallbackDelegate _applicationLanguageChangedEventCallbackDelegate;
370 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
371 private delegate void NUIApplicationRegionChangedEventCallbackDelegate(IntPtr application);
372 private DaliEventHandler<object,NUIApplicationRegionChangedEventArgs> _applicationRegionChangedEventHandler;
373 private NUIApplicationRegionChangedEventCallbackDelegate _applicationRegionChangedEventCallbackDelegate;
375 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
376 private delegate void NUIApplicationBatteryLowEventCallbackDelegate(IntPtr application);
377 private DaliEventHandler<object,NUIApplicationBatteryLowEventArgs> _applicationBatteryLowEventHandler;
378 private NUIApplicationBatteryLowEventCallbackDelegate _applicationBatteryLowEventCallbackDelegate;
380 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
381 private delegate void NUIApplicationMemoryLowEventCallbackDelegate(IntPtr application);
382 private DaliEventHandler<object,NUIApplicationMemoryLowEventArgs> _applicationMemoryLowEventHandler;
383 private NUIApplicationMemoryLowEventCallbackDelegate _applicationMemoryLowEventCallbackDelegate;
385 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
386 private delegate void NUIApplicationAppControlEventCallbackDelegate(IntPtr application, IntPtr voidp);
387 private DaliEventHandler<object,NUIApplicationAppControlEventArgs> _applicationAppControlEventHandler;
388 private NUIApplicationAppControlEventCallbackDelegate _applicationAppControlEventCallbackDelegate;
391 * @brief Event for Initialized signal which can be used to subscribe/unsubscribe the event handler
392 * (in the type of NUIApplicationInitEventHandler - DaliEventHandler<object,NUIApplicationInitEventArgs>)
393 * provided by the user. Initialized signal is emitted when application is initialised
395 public event DaliEventHandler<object,NUIApplicationInitEventArgs> Initialized
401 // Restricted to only one listener
402 if (_applicationInitEventHandler == null)
404 _applicationInitEventHandler += value;
406 _applicationInitEventCallbackDelegate = new NUIApplicationInitEventCallbackDelegate(OnApplicationInit);
407 this.InitSignal().Connect(_applicationInitEventCallbackDelegate);
416 if (_applicationInitEventHandler != null)
418 this.InitSignal().Disconnect(_applicationInitEventCallbackDelegate);
421 _applicationInitEventHandler -= value;
426 // Callback for Application InitSignal
427 private void OnApplicationInit(IntPtr data)
429 // Initialize DisposeQueue Singleton class. This is also required to create DisposeQueue on main thread.
430 DisposeQueue.Instance.Initialize();
432 NUIApplicationInitEventArgs e = new NUIApplicationInitEventArgs();
434 // Populate all members of "e" (NUIApplicationInitEventArgs) with real data
435 e.Application = Application.GetApplicationFromPtr(data);
437 if (_applicationInitEventHandler != null)
439 //here we send all data to user event handlers
440 _applicationInitEventHandler(this, e);
445 * @brief Event for Terminated signal which can be used to subscribe/unsubscribe the event handler
446 * (in the type of NUIApplicationTerminateEventHandler-DaliEventHandler<object,NUIApplicationTerminateEventArgs>)
447 * provided by the user. Terminated signal is emitted when application is terminated
449 public event DaliEventHandler<object,NUIApplicationTerminateEventArgs> Terminated
455 // Restricted to only one listener
456 if (_applicationTerminateEventHandler == null)
458 _applicationTerminateEventHandler += value;
460 _applicationTerminateEventCallbackDelegate = new NUIApplicationTerminateEventCallbackDelegate(OnNUIApplicationTerminate);
461 this.TerminateSignal().Connect(_applicationTerminateEventCallbackDelegate);
470 if (_applicationTerminateEventHandler != null)
472 this.TerminateSignal().Disconnect(_applicationTerminateEventCallbackDelegate);
475 _applicationTerminateEventHandler -= value;
480 // Callback for Application TerminateSignal
481 private void OnNUIApplicationTerminate(IntPtr data)
483 NUIApplicationTerminateEventArgs e = new NUIApplicationTerminateEventArgs();
485 // Populate all members of "e" (NUIApplicationTerminateEventArgs) with real data
486 e.Application = Application.GetApplicationFromPtr(data);
488 if (_applicationTerminateEventHandler != null)
490 //here we send all data to user event handlers
491 _applicationTerminateEventHandler(this, e);
496 * @brief Event for Paused signal which can be used to subscribe/unsubscribe the event handler
497 * (in the type of NUIApplicationPauseEventHandler-DaliEventHandler<object,NUIApplicationPauseEventArgs>)
498 * provided by the user. Paused signal is emitted when application is paused
500 public event DaliEventHandler<object,NUIApplicationPauseEventArgs> Paused
506 // Restricted to only one listener
507 if (_applicationPauseEventHandler == null)
509 _applicationPauseEventHandler += value;
511 _applicationPauseEventCallbackDelegate = new NUIApplicationPauseEventCallbackDelegate(OnNUIApplicationPause);
512 this.PauseSignal().Connect(_applicationPauseEventCallbackDelegate);
521 if (_applicationPauseEventHandler != null)
523 this.PauseSignal().Disconnect(_applicationPauseEventCallbackDelegate);
526 _applicationPauseEventHandler -= value;
531 // Callback for Application PauseSignal
532 private void OnNUIApplicationPause(IntPtr data)
534 NUIApplicationPauseEventArgs e = new NUIApplicationPauseEventArgs();
536 // Populate all members of "e" (NUIApplicationPauseEventArgs) with real data
537 e.Application = Application.GetApplicationFromPtr(data);
539 if (_applicationPauseEventHandler != null)
541 //here we send all data to user event handlers
542 _applicationPauseEventHandler(this, e);
547 * @brief Event for Resumed signal which can be used to subscribe/unsubscribe the event handler
548 * (in the type of NUIApplicationResumeEventHandler-DaliEventHandler<object,NUIApplicationResumeEventArgs>)
549 * provided by the user. Resumed signal is emitted when application is resumed
551 public event DaliEventHandler<object,NUIApplicationResumeEventArgs> Resumed
557 // Restricted to only one listener
558 if (_applicationResumeEventHandler == null)
560 _applicationResumeEventHandler += value;
562 _applicationResumeEventCallbackDelegate = new NUIApplicationResumeEventCallbackDelegate(OnNUIApplicationResume);
563 this.ResumeSignal().Connect(_applicationResumeEventCallbackDelegate);
572 if (_applicationResumeEventHandler != null)
574 this.ResumeSignal().Disconnect(_applicationResumeEventCallbackDelegate);
577 _applicationResumeEventHandler -= value;
582 // Callback for Application ResumeSignal
583 private void OnNUIApplicationResume(IntPtr data)
585 NUIApplicationResumeEventArgs e = new NUIApplicationResumeEventArgs();
587 // Populate all members of "e" (NUIApplicationResumeEventArgs) with real data
588 e.Application = Application.GetApplicationFromPtr(data);
590 if (_applicationResumeEventHandler != null)
592 //here we send all data to user event handlers
593 _applicationResumeEventHandler(this, e);
598 * @brief Event for Reset signal which can be used to subscribe/unsubscribe the event handler
599 * (in the type of NUIApplicationResetEventHandler-DaliEventHandler<object,NUIApplicationResetEventArgs>)
600 * provided by the user. Reset signal is emitted when application is reset
602 public event DaliEventHandler<object,NUIApplicationResetEventArgs> Reset
608 // Restricted to only one listener
609 if (_applicationResetEventHandler == null)
611 _applicationResetEventHandler += value;
613 _applicationResetEventCallbackDelegate = new NUIApplicationResetEventCallbackDelegate(OnNUIApplicationReset);
614 this.ResetSignal().Connect(_applicationResetEventCallbackDelegate);
623 if (_applicationResetEventHandler != null)
625 this.ResetSignal().Disconnect(_applicationResetEventCallbackDelegate);
628 _applicationResetEventHandler -= value;
633 // Callback for Application ResetSignal
634 private void OnNUIApplicationReset(IntPtr data)
636 NUIApplicationResetEventArgs e = new NUIApplicationResetEventArgs();
638 // Populate all members of "e" (NUIApplicationResetEventArgs) with real data
639 e.Application = Application.GetApplicationFromPtr(data);
641 if (_applicationResetEventHandler != null)
643 //here we send all data to user event handlers
644 _applicationResetEventHandler(this, e);
649 * @brief Event for Resized signal which can be used to subscribe/unsubscribe the event handler
650 * (in the type of NUIApplicationResizeEventHandler-DaliEventHandler<object,NUIApplicationResizeEventArgs>)
651 * provided by the user. Resized signal is emitted when application is resized
653 public event DaliEventHandler<object,NUIApplicationResizeEventArgs> Resized
659 // Restricted to only one listener
660 if (_applicationResizeEventHandler == null)
662 _applicationResizeEventHandler += value;
664 _applicationResizeEventCallbackDelegate = new NUIApplicationResizeEventCallbackDelegate(OnNUIApplicationResize);
665 this.ResizeSignal().Connect(_applicationResizeEventCallbackDelegate);
674 if (_applicationResizeEventHandler != null)
676 this.ResizeSignal().Disconnect(_applicationResizeEventCallbackDelegate);
679 _applicationResizeEventHandler -= value;
684 // Callback for Application ResizeSignal
685 private void OnNUIApplicationResize(IntPtr data)
687 NUIApplicationResizeEventArgs e = new NUIApplicationResizeEventArgs();
689 // Populate all members of "e" (NUIApplicationResizeEventArgs) with real data
690 e.Application = Application.GetApplicationFromPtr(data);
692 if (_applicationResizeEventHandler != null)
694 //here we send all data to user event handlers
695 _applicationResizeEventHandler(this, e);
700 * @brief Event for LanguageChanged signal which can be used to subscribe/unsubscribe the event handler
701 * (in the type of NUIApplicationLanguageChangedEventHandler-DaliEventHandler<object,NUIApplicationLanguageChangedEventArgs>)
702 * provided by the user. LanguageChanged signal is emitted when the region of the device is changed.
704 public event DaliEventHandler<object,NUIApplicationLanguageChangedEventArgs> LanguageChanged
710 // Restricted to only one listener
711 if (_applicationLanguageChangedEventHandler == null)
713 _applicationLanguageChangedEventHandler += value;
715 _applicationLanguageChangedEventCallbackDelegate = new NUIApplicationLanguageChangedEventCallbackDelegate(OnNUIApplicationLanguageChanged);
716 this.LanguageChangedSignal().Connect(_applicationLanguageChangedEventCallbackDelegate);
725 if (_applicationLanguageChangedEventHandler != null)
727 this.LanguageChangedSignal().Disconnect(_applicationLanguageChangedEventCallbackDelegate);
730 _applicationLanguageChangedEventHandler -= value;
735 // Callback for Application LanguageChangedSignal
736 private void OnNUIApplicationLanguageChanged(IntPtr data)
738 NUIApplicationLanguageChangedEventArgs e = new NUIApplicationLanguageChangedEventArgs();
740 // Populate all members of "e" (NUIApplicationLanguageChangedEventArgs) with real data
741 e.Application = Application.GetApplicationFromPtr(data);
743 if (_applicationLanguageChangedEventHandler != null)
745 //here we send all data to user event handlers
746 _applicationLanguageChangedEventHandler(this, e);
751 * @brief Event for RegionChanged signal which can be used to subscribe/unsubscribe the event handler
752 * (in the type of NUIApplicationRegionChangedEventHandler-DaliEventHandler<object,NUIApplicationRegionChangedEventArgs>)
753 * provided by the user. RegionChanged signal is emitted when the region of the device is changed.
755 public event DaliEventHandler<object,NUIApplicationRegionChangedEventArgs> RegionChanged
761 // Restricted to only one listener
762 if (_applicationRegionChangedEventHandler == null)
764 _applicationRegionChangedEventHandler += value;
766 _applicationRegionChangedEventCallbackDelegate = new NUIApplicationRegionChangedEventCallbackDelegate(OnNUIApplicationRegionChanged);
767 this.RegionChangedSignal().Connect(_applicationRegionChangedEventCallbackDelegate);
776 if (_applicationRegionChangedEventHandler != null)
778 this.RegionChangedSignal().Disconnect(_applicationRegionChangedEventCallbackDelegate);
781 _applicationRegionChangedEventHandler -= value;
786 // Callback for Application RegionChangedSignal
787 private void OnNUIApplicationRegionChanged(IntPtr data)
789 NUIApplicationRegionChangedEventArgs e = new NUIApplicationRegionChangedEventArgs();
791 // Populate all members of "e" (NUIApplicationRegionChangedEventArgs) with real data
792 e.Application = Application.GetApplicationFromPtr(data);
794 if (_applicationRegionChangedEventHandler != null)
796 //here we send all data to user event handlers
797 _applicationRegionChangedEventHandler(this, e);
802 * @brief Event for BatteryLow signal which can be used to subscribe/unsubscribe the event handler
803 * (in the type of NUIApplicationBatteryLowEventHandler-DaliEventHandler<object,NUIApplicationBatteryLowEventArgs>)
804 * provided by the user. BatteryLow signal is emitted when the battery level of the device is low.
806 public event DaliEventHandler<object,NUIApplicationBatteryLowEventArgs> BatteryLow
812 // Restricted to only one listener
813 if (_applicationBatteryLowEventHandler == null)
815 _applicationBatteryLowEventHandler += value;
817 _applicationBatteryLowEventCallbackDelegate = new NUIApplicationBatteryLowEventCallbackDelegate(OnNUIApplicationBatteryLow);
818 this.BatteryLowSignal().Connect(_applicationBatteryLowEventCallbackDelegate);
827 if (_applicationBatteryLowEventHandler != null)
829 this.BatteryLowSignal().Disconnect(_applicationBatteryLowEventCallbackDelegate);
832 _applicationBatteryLowEventHandler -= value;
837 // Callback for Application BatteryLowSignal
838 private void OnNUIApplicationBatteryLow(IntPtr data)
840 NUIApplicationBatteryLowEventArgs e = new NUIApplicationBatteryLowEventArgs();
842 // Populate all members of "e" (NUIApplicationBatteryLowEventArgs) with real data
843 e.Application = Application.GetApplicationFromPtr(data);
845 if (_applicationBatteryLowEventHandler != null)
847 //here we send all data to user event handlers
848 _applicationBatteryLowEventHandler(this, e);
853 * @brief Event for MemoryLow signal which can be used to subscribe/unsubscribe the event handler
854 * (in the type of NUIApplicationMemoryLowEventHandler-DaliEventHandler<object,NUIApplicationMemoryLowEventArgs>)
855 * provided by the user. MemoryLow signal is emitted when the memory level of the device is low.
857 public event DaliEventHandler<object,NUIApplicationMemoryLowEventArgs> MemoryLow
863 // Restricted to only one listener
864 if (_applicationMemoryLowEventHandler == null)
866 _applicationMemoryLowEventHandler += value;
868 _applicationMemoryLowEventCallbackDelegate = new NUIApplicationMemoryLowEventCallbackDelegate(OnNUIApplicationMemoryLow);
869 this.MemoryLowSignal().Connect(_applicationMemoryLowEventCallbackDelegate);
878 if (_applicationMemoryLowEventHandler != null)
880 this.MemoryLowSignal().Disconnect(_applicationMemoryLowEventCallbackDelegate);
883 _applicationMemoryLowEventHandler -= value;
888 // Callback for Application MemoryLowSignal
889 private void OnNUIApplicationMemoryLow(IntPtr data)
891 NUIApplicationMemoryLowEventArgs e = new NUIApplicationMemoryLowEventArgs();
893 // Populate all members of "e" (NUIApplicationMemoryLowEventArgs) with real data
894 e.Application = Application.GetApplicationFromPtr(data);
896 if (_applicationMemoryLowEventHandler != null)
898 //here we send all data to user event handlers
899 _applicationMemoryLowEventHandler(this, e);
904 * @brief Event for AppControl signal which can be used to subscribe/unsubscribe the event handler
905 * (in the type of NUIApplicationAppControlEventHandler-DaliEventHandler<object,NUIApplicationAppControlEventArgs>)
906 * provided by the user. AppControl signal is emitted when another application sends a launch request to the application.
908 public event DaliEventHandler<object,NUIApplicationAppControlEventArgs> AppControl
914 // Restricted to only one listener
915 if (_applicationAppControlEventHandler == null)
917 _applicationAppControlEventHandler += value;
919 _applicationAppControlEventCallbackDelegate = new NUIApplicationAppControlEventCallbackDelegate(OnNUIApplicationAppControl);
920 this.AppControlSignal().Connect(_applicationAppControlEventCallbackDelegate);
929 if (_applicationAppControlEventHandler != null)
931 this.AppControlSignal().Disconnect(_applicationAppControlEventCallbackDelegate);
934 _applicationAppControlEventHandler -= value;
939 // Callback for Application AppControlSignal
940 private void OnNUIApplicationAppControl(IntPtr application, IntPtr voidp)
942 NUIApplicationAppControlEventArgs e = new NUIApplicationAppControlEventArgs();
944 // Populate all members of "e" (NUIApplicationAppControlEventArgs) with real data
945 e.Application = Application.GetApplicationFromPtr(application);
948 if (_applicationAppControlEventHandler != null)
950 //here we send all data to user event handlers
951 _applicationAppControlEventHandler(this, e);
955 private static Application _instance; // singleton
957 public delegate void InitDelegate();
959 public delegate void TerminateDelegate();
961 public delegate void PauseDelegate();
963 public delegate void ResumeDelegate();
965 public delegate void ResizeDelegate();
967 public delegate void AppControlDelegate();
969 public delegate void LanguageChangedDelegate();
971 public delegate void RegionChangedDelegate();
973 public delegate void BatteryLowDelegate();
975 public delegate void MemoryLowDelegate();
977 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
978 internal delegate void InitDelegateInternal();
980 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
981 internal delegate void TerminateDelegateInternal();
983 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
984 internal delegate void PauseDelegateInternal();
986 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
987 internal delegate void ResumeDelegateInternal();
989 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
990 internal delegate void ResizeDelegateInternal();
992 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
993 internal delegate void AppControlDelegateInternal();
995 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
996 internal delegate void LanguageChangedDelegateInternal();
998 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
999 internal delegate void RegionChangedDelegateInternal();
1001 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
1002 internal delegate void BatteryLowDelegateInternal();
1004 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
1005 internal delegate void MemoryLowDelegateInternal();
1007 static void Initialize()
1009 // instance.InitDelegate();
1012 public static Application Instance
1020 public static Application GetApplicationFromPtr(global::System.IntPtr cPtr) {
1021 Application ret = new Application(cPtr, false);
1022 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1026 internal void SetupDelegates() {
1027 InitDelegateInternal initializeCallback = new InitDelegateInternal( Initialize );
1028 System.Console.WriteLine( "InitSignal connection count");
1030 this.InitSignal().Connect( initializeCallback );
1031 //Console.WriteLine( "InitSignal connection count = " + app.InitSignal().GetConnectionCount() );
1034 public static Application NewApplication() {
1035 _instance = NewApplication("", Application.WindowMode.Opaque);
1039 public static Application NewApplication(string stylesheet) {
1040 _instance = NewApplication(stylesheet, Application.WindowMode.Opaque);
1044 public static Application NewApplication(string stylesheet, Application.WindowMode windowMode) {
1046 // register all Views with the type registry, so that can be created / styled via JSON
1047 ViewRegistryHelper.Initialize();
1049 Application ret = New(1, stylesheet, windowMode);
1050 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1052 // we've got an application now connect the signals
1053 ret.SetupDelegates();
1054 // set the singleton
1062 * Outer::outer_method(int)
1064 public static Application New() {
1065 Application ret = new Application(NDalicPINVOKE.Application_New__SWIG_0(), true);
1066 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1070 public static Application New(int argc) {
1071 Application ret = new Application(NDalicPINVOKE.Application_New__SWIG_1(argc), true);
1072 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1076 public static Application New(int argc, string stylesheet) {
1077 Application ret = new Application(NDalicPINVOKE.Application_New__SWIG_2(argc, stylesheet), true);
1078 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1082 public static Application New(int argc, string stylesheet, Application.WindowMode windowMode) {
1083 Application ret = new Application(NDalicPINVOKE.Application_New__SWIG_3(argc, stylesheet, (int)windowMode), true);
1084 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1088 public Application() : this(NDalicPINVOKE.new_Application__SWIG_0(), true) {
1089 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1092 public void MainLoop() {
1093 NDalicPINVOKE.Application_MainLoop__SWIG_0(swigCPtr);
1094 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1097 internal void MainLoop(SWIGTYPE_p_Configuration__ContextLoss configuration) {
1098 NDalicPINVOKE.Application_MainLoop__SWIG_1(swigCPtr, SWIGTYPE_p_Configuration__ContextLoss.getCPtr(configuration));
1099 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1102 public void Lower() {
1103 NDalicPINVOKE.Application_Lower(swigCPtr);
1104 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1107 public void Quit() {
1108 NDalicPINVOKE.Application_Quit(swigCPtr);
1109 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1112 internal bool AddIdle(SWIGTYPE_p_Dali__CallbackBase callback) {
1113 bool ret = NDalicPINVOKE.Application_AddIdle(swigCPtr, SWIGTYPE_p_Dali__CallbackBase.getCPtr(callback));
1114 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1118 public Window GetWindow() {
1119 Window ret = new Window(NDalicPINVOKE.Application_GetWindow(swigCPtr), true);
1120 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1124 public void ReplaceWindow(Rectangle windowPosition, string name) {
1125 NDalicPINVOKE.Application_ReplaceWindow(swigCPtr, Rectangle.getCPtr(windowPosition), name);
1126 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1129 public static string GetResourcePath() {
1130 string ret = NDalicPINVOKE.Application_GetResourcePath();
1131 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1135 internal void SetViewMode(ViewMode viewMode) {
1136 NDalicPINVOKE.Application_SetViewMode(swigCPtr, (int)viewMode);
1137 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1140 internal ViewMode GetViewMode() {
1141 ViewMode ret = (ViewMode)NDalicPINVOKE.Application_GetViewMode(swigCPtr);
1142 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1146 public void SetStereoBase(float stereoBase) {
1147 NDalicPINVOKE.Application_SetStereoBase(swigCPtr, stereoBase);
1148 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1151 public float GetStereoBase() {
1152 float ret = NDalicPINVOKE.Application_GetStereoBase(swigCPtr);
1153 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1157 internal ApplicationSignal InitSignal() {
1158 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_InitSignal(swigCPtr), false);
1159 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1163 internal ApplicationSignal TerminateSignal() {
1164 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_TerminateSignal(swigCPtr), false);
1165 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1169 internal ApplicationSignal PauseSignal() {
1170 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_PauseSignal(swigCPtr), false);
1171 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1175 internal ApplicationSignal ResumeSignal() {
1176 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_ResumeSignal(swigCPtr), false);
1177 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1181 internal ApplicationSignal ResetSignal() {
1182 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_ResetSignal(swigCPtr), false);
1183 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1187 internal ApplicationSignal ResizeSignal() {
1188 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_ResizeSignal(swigCPtr), false);
1189 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1193 internal ApplicationControlSignal AppControlSignal() {
1194 ApplicationControlSignal ret = new ApplicationControlSignal(NDalicPINVOKE.Application_AppControlSignal(swigCPtr), false);
1195 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1199 internal ApplicationSignal LanguageChangedSignal() {
1200 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_LanguageChangedSignal(swigCPtr), false);
1201 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1205 internal ApplicationSignal RegionChangedSignal() {
1206 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_RegionChangedSignal(swigCPtr), false);
1207 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1211 internal ApplicationSignal BatteryLowSignal() {
1212 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_BatteryLowSignal(swigCPtr), false);
1213 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1217 internal ApplicationSignal MemoryLowSignal() {
1218 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_MemoryLowSignal(swigCPtr), false);
1219 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1223 public enum WindowMode {