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 //------------------------------------------------------------------------------
15 using System.Runtime.InteropServices;
18 * @brief Event arguments that passed via NUIApplicationInit signal
21 public class NUIApplicationInitEventArgs : EventArgs
23 private Application _application;
26 * @brief Application - is the application that is being initialized
29 public Application Application
43 * @brief Event arguments that passed via NUIApplicationTerminate signal
46 public class NUIApplicationTerminateEventArgs : EventArgs
48 private Application _application;
50 * @brief Application - is the application that is being Terminated
53 public Application Application
67 * @brief Event arguments that passed via NUIApplicationPause signal
70 public class NUIApplicationPauseEventArgs : EventArgs
72 private Application _application;
74 * @brief Application - is the application that is being Paused
77 public Application Application
91 * @brief Event arguments that passed via NUIApplicationResume signal
94 public class NUIApplicationResumeEventArgs : EventArgs
96 private Application _application;
98 * @brief Application - is the application that is being Resumed
101 public Application Application
109 _application = value;
115 * @brief Event arguments that passed via NUIApplicationReset signal
118 public class NUIApplicationResetEventArgs : EventArgs
120 private Application _application;
122 * @brief Application - is the application that is being Reset
125 public Application Application
133 _application = value;
139 * @brief Event arguments that passed via NUIApplicationResize signal
142 public class NUIApplicationResizeEventArgs : EventArgs
144 private Application _application;
146 * @brief Application - is the application that is being Resized
149 public Application Application
157 _application = value;
163 * @brief Event arguments that passed via NUIApplicationLanguageChanged signal
166 public class NUIApplicationLanguageChangedEventArgs : EventArgs
168 private Application _application;
170 * @brief Application - is the application that is being affected with Device's language change
173 public Application Application
181 _application = value;
187 * @brief Event arguments that passed via NUIApplicationRegionChanged signal
190 public class NUIApplicationRegionChangedEventArgs : EventArgs
192 private Application _application;
194 * @brief Application - is the application that is being affected with Device's region change
197 public Application Application
205 _application = value;
211 * @brief Event arguments that passed via NUIApplicationBatteryLow signal
214 public class NUIApplicationBatteryLowEventArgs : EventArgs
216 private Application _application;
218 * @brief Application - is the application that is being affected when the battery level of the device is low
221 public Application Application
229 _application = value;
235 * @brief Event arguments that passed via NUIApplicationMemoryLow signal
238 public class NUIApplicationMemoryLowEventArgs : EventArgs
240 private Application _application;
242 * @brief Application - is the application that is being affected when the memory level of the device is low
245 public Application Application
253 _application = value;
259 * @brief Event arguments that passed via NUIApplicationAppControl signal
262 public class NUIApplicationAppControlEventArgs : EventArgs
264 private Application _application;
265 private IntPtr _voidp;
267 * @brief Application - is the application that is receiving the launch request from another application
270 public Application Application
278 _application = value;
282 * @brief VoidP - contains the information about why the application is launched
298 public class Application : BaseHandle
300 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
302 internal Application(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Application_SWIGUpcast(cPtr), cMemoryOwn)
304 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
307 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Application obj)
309 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
314 DisposeQueue.Instance.Add(this);
317 public override void Dispose()
319 if (!Stage.IsInstalled())
321 DisposeQueue.Instance.Add(this);
327 if (swigCPtr.Handle != global::System.IntPtr.Zero)
332 NDalicPINVOKE.delete_Application(swigCPtr);
334 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
336 global::System.GC.SuppressFinalize(this);
341 private static void LOG(string str)
343 //Tizen.Log.Debug("NUI", str);
346 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
347 private delegate void NUIApplicationInitEventCallbackDelegate(IntPtr application);
348 private DaliEventHandler<object, NUIApplicationInitEventArgs> _applicationInitEventHandler;
349 private NUIApplicationInitEventCallbackDelegate _applicationInitEventCallbackDelegate;
352 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
353 private delegate void NUIApplicationTerminateEventCallbackDelegate(IntPtr application);
354 private DaliEventHandler<object, NUIApplicationTerminateEventArgs> _applicationTerminateEventHandler;
355 private NUIApplicationTerminateEventCallbackDelegate _applicationTerminateEventCallbackDelegate;
358 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
359 private delegate void NUIApplicationPauseEventCallbackDelegate(IntPtr application);
360 private DaliEventHandler<object, NUIApplicationPauseEventArgs> _applicationPauseEventHandler;
361 private NUIApplicationPauseEventCallbackDelegate _applicationPauseEventCallbackDelegate;
363 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
364 private delegate void NUIApplicationResumeEventCallbackDelegate(IntPtr application);
365 private DaliEventHandler<object, NUIApplicationResumeEventArgs> _applicationResumeEventHandler;
366 private NUIApplicationResumeEventCallbackDelegate _applicationResumeEventCallbackDelegate;
368 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
369 private delegate void NUIApplicationResetEventCallbackDelegate(IntPtr application);
370 private DaliEventHandler<object, NUIApplicationResetEventArgs> _applicationResetEventHandler;
371 private NUIApplicationResetEventCallbackDelegate _applicationResetEventCallbackDelegate;
373 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
374 private delegate void NUIApplicationResizeEventCallbackDelegate(IntPtr application);
375 private DaliEventHandler<object, NUIApplicationResizeEventArgs> _applicationResizeEventHandler;
376 private NUIApplicationResizeEventCallbackDelegate _applicationResizeEventCallbackDelegate;
378 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
379 private delegate void NUIApplicationLanguageChangedEventCallbackDelegate(IntPtr application);
380 private DaliEventHandler<object, NUIApplicationLanguageChangedEventArgs> _applicationLanguageChangedEventHandler;
381 private NUIApplicationLanguageChangedEventCallbackDelegate _applicationLanguageChangedEventCallbackDelegate;
384 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
385 private delegate void NUIApplicationRegionChangedEventCallbackDelegate(IntPtr application);
386 private DaliEventHandler<object, NUIApplicationRegionChangedEventArgs> _applicationRegionChangedEventHandler;
387 private NUIApplicationRegionChangedEventCallbackDelegate _applicationRegionChangedEventCallbackDelegate;
389 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
390 private delegate void NUIApplicationBatteryLowEventCallbackDelegate(IntPtr application);
391 private DaliEventHandler<object, NUIApplicationBatteryLowEventArgs> _applicationBatteryLowEventHandler;
392 private NUIApplicationBatteryLowEventCallbackDelegate _applicationBatteryLowEventCallbackDelegate;
394 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
395 private delegate void NUIApplicationMemoryLowEventCallbackDelegate(IntPtr application);
396 private DaliEventHandler<object, NUIApplicationMemoryLowEventArgs> _applicationMemoryLowEventHandler;
397 private NUIApplicationMemoryLowEventCallbackDelegate _applicationMemoryLowEventCallbackDelegate;
399 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
400 private delegate void NUIApplicationAppControlEventCallbackDelegate(IntPtr application, IntPtr voidp);
401 private DaliEventHandler<object, NUIApplicationAppControlEventArgs> _applicationAppControlEventHandler;
402 private NUIApplicationAppControlEventCallbackDelegate _applicationAppControlEventCallbackDelegate;
405 * @brief Event for Initialized signal which can be used to subscribe/unsubscribe the event handler
406 * (in the type of NUIApplicationInitEventHandler - DaliEventHandler<object,NUIApplicationInitEventArgs>)
407 * provided by the user. Initialized signal is emitted when application is initialised
409 public event DaliEventHandler<object, NUIApplicationInitEventArgs> Initialized
415 // Restricted to only one listener
416 if (_applicationInitEventHandler == null)
418 _applicationInitEventHandler += value;
420 _applicationInitEventCallbackDelegate = new NUIApplicationInitEventCallbackDelegate(OnApplicationInit);
421 this.InitSignal().Connect(_applicationInitEventCallbackDelegate);
430 if (_applicationInitEventHandler != null)
432 this.InitSignal().Disconnect(_applicationInitEventCallbackDelegate);
435 _applicationInitEventHandler -= value;
440 // Callback for Application InitSignal
441 private void OnApplicationInit(IntPtr data)
443 NUIApplicationInitEventArgs e = new NUIApplicationInitEventArgs();
445 // Populate all members of "e" (NUIApplicationInitEventArgs) with real data
446 e.Application = Application.GetApplicationFromPtr(data);
448 if (_applicationInitEventHandler != null)
450 //here we send all data to user event handlers
451 _applicationInitEventHandler(this, e);
456 * @brief Event for Terminated signal which can be used to subscribe/unsubscribe the event handler
457 * (in the type of NUIApplicationTerminateEventHandler-DaliEventHandler<object,NUIApplicationTerminateEventArgs>)
458 * provided by the user. Terminated signal is emitted when application is terminated
460 public event DaliEventHandler<object, NUIApplicationTerminateEventArgs> Terminated
466 // Restricted to only one listener
467 if (_applicationTerminateEventHandler == null)
469 _applicationTerminateEventHandler += value;
471 _applicationTerminateEventCallbackDelegate = new NUIApplicationTerminateEventCallbackDelegate(OnNUIApplicationTerminate);
472 this.TerminateSignal().Connect(_applicationTerminateEventCallbackDelegate);
481 if (_applicationTerminateEventHandler != null)
483 this.TerminateSignal().Disconnect(_applicationTerminateEventCallbackDelegate);
486 _applicationTerminateEventHandler -= value;
491 // Callback for Application TerminateSignal
492 private void OnNUIApplicationTerminate(IntPtr data)
494 NUIApplicationTerminateEventArgs e = new NUIApplicationTerminateEventArgs();
496 // Populate all members of "e" (NUIApplicationTerminateEventArgs) with real data
497 e.Application = Application.GetApplicationFromPtr(data);
499 if (_applicationTerminateEventHandler != null)
501 //here we send all data to user event handlers
502 _applicationTerminateEventHandler(this, e);
507 * @brief Event for Paused signal which can be used to subscribe/unsubscribe the event handler
508 * (in the type of NUIApplicationPauseEventHandler-DaliEventHandler<object,NUIApplicationPauseEventArgs>)
509 * provided by the user. Paused signal is emitted when application is paused
511 public event DaliEventHandler<object, NUIApplicationPauseEventArgs> Paused
517 // Restricted to only one listener
518 if (_applicationPauseEventHandler == null)
520 _applicationPauseEventHandler += value;
522 _applicationPauseEventCallbackDelegate = new NUIApplicationPauseEventCallbackDelegate(OnNUIApplicationPause);
523 this.PauseSignal().Connect(_applicationPauseEventCallbackDelegate);
532 if (_applicationPauseEventHandler != null)
534 this.PauseSignal().Disconnect(_applicationPauseEventCallbackDelegate);
537 _applicationPauseEventHandler -= value;
542 // Callback for Application PauseSignal
543 private void OnNUIApplicationPause(IntPtr data)
545 NUIApplicationPauseEventArgs e = new NUIApplicationPauseEventArgs();
547 // Populate all members of "e" (NUIApplicationPauseEventArgs) with real data
548 e.Application = Application.GetApplicationFromPtr(data);
550 if (_applicationPauseEventHandler != null)
552 //here we send all data to user event handlers
553 _applicationPauseEventHandler(this, e);
558 * @brief Event for Resumed signal which can be used to subscribe/unsubscribe the event handler
559 * (in the type of NUIApplicationResumeEventHandler-DaliEventHandler<object,NUIApplicationResumeEventArgs>)
560 * provided by the user. Resumed signal is emitted when application is resumed
562 public event DaliEventHandler<object, NUIApplicationResumeEventArgs> Resumed
568 // Restricted to only one listener
569 if (_applicationResumeEventHandler == null)
571 _applicationResumeEventHandler += value;
573 _applicationResumeEventCallbackDelegate = new NUIApplicationResumeEventCallbackDelegate(OnNUIApplicationResume);
574 this.ResumeSignal().Connect(_applicationResumeEventCallbackDelegate);
583 if (_applicationResumeEventHandler != null)
585 this.ResumeSignal().Disconnect(_applicationResumeEventCallbackDelegate);
588 _applicationResumeEventHandler -= value;
593 // Callback for Application ResumeSignal
594 private void OnNUIApplicationResume(IntPtr data)
596 NUIApplicationResumeEventArgs e = new NUIApplicationResumeEventArgs();
598 // Populate all members of "e" (NUIApplicationResumeEventArgs) with real data
599 e.Application = Application.GetApplicationFromPtr(data);
601 if (_applicationResumeEventHandler != null)
603 //here we send all data to user event handlers
604 _applicationResumeEventHandler(this, e);
609 * @brief Event for Reset signal which can be used to subscribe/unsubscribe the event handler
610 * (in the type of NUIApplicationResetEventHandler-DaliEventHandler<object,NUIApplicationResetEventArgs>)
611 * provided by the user. Reset signal is emitted when application is reset
613 public event DaliEventHandler<object, NUIApplicationResetEventArgs> Reset
619 // Restricted to only one listener
620 if (_applicationResetEventHandler == null)
622 _applicationResetEventHandler += value;
624 _applicationResetEventCallbackDelegate = new NUIApplicationResetEventCallbackDelegate(OnNUIApplicationReset);
625 this.ResetSignal().Connect(_applicationResetEventCallbackDelegate);
634 if (_applicationResetEventHandler != null)
636 this.ResetSignal().Disconnect(_applicationResetEventCallbackDelegate);
639 _applicationResetEventHandler -= value;
644 // Callback for Application ResetSignal
645 private void OnNUIApplicationReset(IntPtr data)
647 NUIApplicationResetEventArgs e = new NUIApplicationResetEventArgs();
649 // Populate all members of "e" (NUIApplicationResetEventArgs) with real data
650 e.Application = Application.GetApplicationFromPtr(data);
652 if (_applicationResetEventHandler != null)
654 //here we send all data to user event handlers
655 _applicationResetEventHandler(this, e);
660 * @brief Event for Resized signal which can be used to subscribe/unsubscribe the event handler
661 * (in the type of NUIApplicationResizeEventHandler-DaliEventHandler<object,NUIApplicationResizeEventArgs>)
662 * provided by the user. Resized signal is emitted when application is resized
664 public event DaliEventHandler<object, NUIApplicationResizeEventArgs> Resized
670 // Restricted to only one listener
671 if (_applicationResizeEventHandler == null)
673 _applicationResizeEventHandler += value;
675 _applicationResizeEventCallbackDelegate = new NUIApplicationResizeEventCallbackDelegate(OnNUIApplicationResize);
676 this.ResizeSignal().Connect(_applicationResizeEventCallbackDelegate);
685 if (_applicationResizeEventHandler != null)
687 this.ResizeSignal().Disconnect(_applicationResizeEventCallbackDelegate);
690 _applicationResizeEventHandler -= value;
695 // Callback for Application ResizeSignal
696 private void OnNUIApplicationResize(IntPtr data)
698 NUIApplicationResizeEventArgs e = new NUIApplicationResizeEventArgs();
700 // Populate all members of "e" (NUIApplicationResizeEventArgs) with real data
701 e.Application = Application.GetApplicationFromPtr(data);
703 if (_applicationResizeEventHandler != null)
705 //here we send all data to user event handlers
706 _applicationResizeEventHandler(this, e);
711 * @brief Event for LanguageChanged signal which can be used to subscribe/unsubscribe the event handler
712 * (in the type of NUIApplicationLanguageChangedEventHandler-DaliEventHandler<object,NUIApplicationLanguageChangedEventArgs>)
713 * provided by the user. LanguageChanged signal is emitted when the region of the device is changed.
715 public event DaliEventHandler<object, NUIApplicationLanguageChangedEventArgs> LanguageChanged
721 // Restricted to only one listener
722 if (_applicationLanguageChangedEventHandler == null)
724 _applicationLanguageChangedEventHandler += value;
726 _applicationLanguageChangedEventCallbackDelegate = new NUIApplicationLanguageChangedEventCallbackDelegate(OnNUIApplicationLanguageChanged);
727 this.LanguageChangedSignal().Connect(_applicationLanguageChangedEventCallbackDelegate);
736 if (_applicationLanguageChangedEventHandler != null)
738 this.LanguageChangedSignal().Disconnect(_applicationLanguageChangedEventCallbackDelegate);
741 _applicationLanguageChangedEventHandler -= value;
746 // Callback for Application LanguageChangedSignal
747 private void OnNUIApplicationLanguageChanged(IntPtr data)
749 NUIApplicationLanguageChangedEventArgs e = new NUIApplicationLanguageChangedEventArgs();
751 // Populate all members of "e" (NUIApplicationLanguageChangedEventArgs) with real data
752 e.Application = Application.GetApplicationFromPtr(data);
754 if (_applicationLanguageChangedEventHandler != null)
756 //here we send all data to user event handlers
757 _applicationLanguageChangedEventHandler(this, e);
762 * @brief Event for RegionChanged signal which can be used to subscribe/unsubscribe the event handler
763 * (in the type of NUIApplicationRegionChangedEventHandler-DaliEventHandler<object,NUIApplicationRegionChangedEventArgs>)
764 * provided by the user. RegionChanged signal is emitted when the region of the device is changed.
766 public event DaliEventHandler<object, NUIApplicationRegionChangedEventArgs> RegionChanged
772 // Restricted to only one listener
773 if (_applicationRegionChangedEventHandler == null)
775 _applicationRegionChangedEventHandler += value;
777 _applicationRegionChangedEventCallbackDelegate = new NUIApplicationRegionChangedEventCallbackDelegate(OnNUIApplicationRegionChanged);
778 this.RegionChangedSignal().Connect(_applicationRegionChangedEventCallbackDelegate);
787 if (_applicationRegionChangedEventHandler != null)
789 this.RegionChangedSignal().Disconnect(_applicationRegionChangedEventCallbackDelegate);
792 _applicationRegionChangedEventHandler -= value;
797 // Callback for Application RegionChangedSignal
798 private void OnNUIApplicationRegionChanged(IntPtr data)
800 NUIApplicationRegionChangedEventArgs e = new NUIApplicationRegionChangedEventArgs();
802 // Populate all members of "e" (NUIApplicationRegionChangedEventArgs) with real data
803 e.Application = Application.GetApplicationFromPtr(data);
805 if (_applicationRegionChangedEventHandler != null)
807 //here we send all data to user event handlers
808 _applicationRegionChangedEventHandler(this, e);
813 * @brief Event for BatteryLow signal which can be used to subscribe/unsubscribe the event handler
814 * (in the type of NUIApplicationBatteryLowEventHandler-DaliEventHandler<object,NUIApplicationBatteryLowEventArgs>)
815 * provided by the user. BatteryLow signal is emitted when the battery level of the device is low.
817 public event DaliEventHandler<object, NUIApplicationBatteryLowEventArgs> BatteryLow
823 // Restricted to only one listener
824 if (_applicationBatteryLowEventHandler == null)
826 _applicationBatteryLowEventHandler += value;
828 _applicationBatteryLowEventCallbackDelegate = new NUIApplicationBatteryLowEventCallbackDelegate(OnNUIApplicationBatteryLow);
829 this.BatteryLowSignal().Connect(_applicationBatteryLowEventCallbackDelegate);
838 if (_applicationBatteryLowEventHandler != null)
840 this.BatteryLowSignal().Disconnect(_applicationBatteryLowEventCallbackDelegate);
843 _applicationBatteryLowEventHandler -= value;
848 // Callback for Application BatteryLowSignal
849 private void OnNUIApplicationBatteryLow(IntPtr data)
851 NUIApplicationBatteryLowEventArgs e = new NUIApplicationBatteryLowEventArgs();
853 // Populate all members of "e" (NUIApplicationBatteryLowEventArgs) with real data
854 e.Application = Application.GetApplicationFromPtr(data);
856 if (_applicationBatteryLowEventHandler != null)
858 //here we send all data to user event handlers
859 _applicationBatteryLowEventHandler(this, e);
864 * @brief Event for MemoryLow signal which can be used to subscribe/unsubscribe the event handler
865 * (in the type of NUIApplicationMemoryLowEventHandler-DaliEventHandler<object,NUIApplicationMemoryLowEventArgs>)
866 * provided by the user. MemoryLow signal is emitted when the memory level of the device is low.
868 public event DaliEventHandler<object, NUIApplicationMemoryLowEventArgs> MemoryLow
874 // Restricted to only one listener
875 if (_applicationMemoryLowEventHandler == null)
877 _applicationMemoryLowEventHandler += value;
879 _applicationMemoryLowEventCallbackDelegate = new NUIApplicationMemoryLowEventCallbackDelegate(OnNUIApplicationMemoryLow);
880 this.MemoryLowSignal().Connect(_applicationMemoryLowEventCallbackDelegate);
889 if (_applicationMemoryLowEventHandler != null)
891 this.MemoryLowSignal().Disconnect(_applicationMemoryLowEventCallbackDelegate);
894 _applicationMemoryLowEventHandler -= value;
899 // Callback for Application MemoryLowSignal
900 private void OnNUIApplicationMemoryLow(IntPtr data)
902 NUIApplicationMemoryLowEventArgs e = new NUIApplicationMemoryLowEventArgs();
904 // Populate all members of "e" (NUIApplicationMemoryLowEventArgs) with real data
905 e.Application = Application.GetApplicationFromPtr(data);
907 if (_applicationMemoryLowEventHandler != null)
909 //here we send all data to user event handlers
910 _applicationMemoryLowEventHandler(this, e);
915 * @brief Event for AppControl signal which can be used to subscribe/unsubscribe the event handler
916 * (in the type of NUIApplicationAppControlEventHandler-DaliEventHandler<object,NUIApplicationAppControlEventArgs>)
917 * provided by the user. AppControl signal is emitted when another application sends a launch request to the application.
919 public event DaliEventHandler<object, NUIApplicationAppControlEventArgs> AppControl
925 // Restricted to only one listener
926 if (_applicationAppControlEventHandler == null)
928 _applicationAppControlEventHandler += value;
930 _applicationAppControlEventCallbackDelegate = new NUIApplicationAppControlEventCallbackDelegate(OnNUIApplicationAppControl);
931 this.AppControlSignal().Connect(_applicationAppControlEventCallbackDelegate);
940 if (_applicationAppControlEventHandler != null)
942 this.AppControlSignal().Disconnect(_applicationAppControlEventCallbackDelegate);
945 _applicationAppControlEventHandler -= value;
950 // Callback for Application AppControlSignal
951 private void OnNUIApplicationAppControl(IntPtr application, IntPtr voidp)
953 NUIApplicationAppControlEventArgs e = new NUIApplicationAppControlEventArgs();
955 // Populate all members of "e" (NUIApplicationAppControlEventArgs) with real data
956 e.Application = Application.GetApplicationFromPtr(application);
959 if (_applicationAppControlEventHandler != null)
961 //here we send all data to user event handlers
962 _applicationAppControlEventHandler(this, e);
966 private static Application _instance; // singleton
968 public delegate void InitDelegate();
970 public delegate void TerminateDelegate();
972 public delegate void PauseDelegate();
974 public delegate void ResumeDelegate();
976 public delegate void ResizeDelegate();
978 public delegate void AppControlDelegate();
980 public delegate void LanguageChangedDelegate();
982 public delegate void RegionChangedDelegate();
984 public delegate void BatteryLowDelegate();
986 public delegate void MemoryLowDelegate();
988 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
989 internal delegate void InitDelegateInternal();
991 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
992 internal delegate void TerminateDelegateInternal();
994 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
995 internal delegate void PauseDelegateInternal();
997 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
998 internal delegate void ResumeDelegateInternal();
1000 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
1001 internal delegate void ResizeDelegateInternal();
1003 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
1004 internal delegate void AppControlDelegateInternal();
1006 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
1007 internal delegate void LanguageChangedDelegateInternal();
1009 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
1010 internal delegate void RegionChangedDelegateInternal();
1012 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
1013 internal delegate void BatteryLowDelegateInternal();
1015 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
1016 internal delegate void MemoryLowDelegateInternal();
1018 static void Initialize()
1020 // instance.InitDelegate();
1023 public static Application Instance
1031 public static Application GetApplicationFromPtr(global::System.IntPtr cPtr)
1033 Application ret = new Application(cPtr, false);
1034 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1038 internal void SetupDelegates()
1040 InitDelegateInternal initializeCallback = new InitDelegateInternal(Initialize);
1041 System.Console.WriteLine("InitSignal connection count");
1043 this.InitSignal().Connect(initializeCallback);
1044 //Console.WriteLine( "InitSignal connection count = " + app.InitSignal().GetConnectionCount() );
1047 public static Application NewApplication()
1049 _instance = NewApplication("", Application.WindowMode.Opaque);
1053 public static Application NewApplication(string stylesheet)
1055 _instance = NewApplication(stylesheet, Application.WindowMode.Opaque);
1059 public static Application NewApplication(string stylesheet, Application.WindowMode windowMode)
1061 LOG(" NewApplication(string stylesheet, Application.WindowMode windowMode) is called! ");
1063 // register all Views with the type registry, so that can be created / styled via JSON
1064 ViewRegistryHelper.Initialize();
1066 Application ret = New(1, stylesheet, windowMode);
1067 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1069 // we've got an application now connect the signals
1070 ret.SetupDelegates();
1071 // set the singleton
1076 public bool AddIdle(System.Delegate func)
1078 System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
1079 System.IntPtr ip2 = NDalicManualPINVOKE.MakeCallback(new System.Runtime.InteropServices.HandleRef(this, ip));
1081 bool ret = NDalicPINVOKE.Application_AddIdle(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip2));
1083 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1090 * Outer::outer_method(int)
1092 public static Application New()
1094 LOG("New() is called!");
1096 Application ret = new Application(NDalicPINVOKE.Application_New__SWIG_0(), true);
1097 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1101 public static Application New(int argc)
1103 LOG("New(int argc) is called!");
1105 Application ret = new Application(NDalicPINVOKE.Application_New__SWIG_1(argc), true);
1106 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1110 public static Application New(int argc, string stylesheet)
1112 LOG("New(int argc, string stylesheet) is called!");
1114 Application ret = new Application(NDalicPINVOKE.Application_New__SWIG_2(argc, stylesheet), true);
1115 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1119 public static Application New(int argc, string stylesheet, Application.WindowMode windowMode)
1121 LOG("New(int argc, string stylesheet, Application.WindowMode windowMode) is called!");
1123 Application ret = new Application(NDalicPINVOKE.Application_New__SWIG_3(argc, stylesheet, (int)windowMode), true);
1124 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1128 public Application() : this(NDalicPINVOKE.new_Application__SWIG_0(), true)
1130 LOG("Application() is called!");
1132 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1135 public Application(Application application) : this(NDalicPINVOKE.new_Application__SWIG_1(Application.getCPtr(application)), true)
1137 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1140 public Application Assign(Application application)
1142 Application ret = new Application(NDalicPINVOKE.Application_Assign(swigCPtr, Application.getCPtr(application)), false);
1143 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1147 public void MainLoop()
1149 NDalicPINVOKE.Application_MainLoop__SWIG_0(swigCPtr);
1150 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1153 internal void MainLoop(SWIGTYPE_p_Configuration__ContextLoss configuration)
1155 NDalicPINVOKE.Application_MainLoop__SWIG_1(swigCPtr, SWIGTYPE_p_Configuration__ContextLoss.getCPtr(configuration));
1156 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1161 NDalicPINVOKE.Application_Lower(swigCPtr);
1162 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1167 NDalicPINVOKE.Application_Quit(swigCPtr);
1168 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1171 internal bool AddIdle(SWIGTYPE_p_Dali__CallbackBase callback)
1173 bool ret = NDalicPINVOKE.Application_AddIdle(swigCPtr, SWIGTYPE_p_Dali__CallbackBase.getCPtr(callback));
1174 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1178 public Window GetWindow()
1180 Window ret = new Window(NDalicPINVOKE.Application_GetWindow(swigCPtr), true);
1181 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1185 public void ReplaceWindow(Rectangle windowPosition, string name)
1187 NDalicPINVOKE.Application_ReplaceWindow(swigCPtr, Rectangle.getCPtr(windowPosition), name);
1188 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1191 public static string GetResourcePath()
1193 string ret = NDalicPINVOKE.Application_GetResourcePath();
1194 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1198 internal void SetViewMode(ViewMode viewMode)
1200 NDalicPINVOKE.Application_SetViewMode(swigCPtr, (int)viewMode);
1201 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1204 internal ViewMode GetViewMode()
1206 ViewMode ret = (ViewMode)NDalicPINVOKE.Application_GetViewMode(swigCPtr);
1207 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1211 public void SetStereoBase(float stereoBase)
1213 NDalicPINVOKE.Application_SetStereoBase(swigCPtr, stereoBase);
1214 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1217 public float GetStereoBase()
1219 float ret = NDalicPINVOKE.Application_GetStereoBase(swigCPtr);
1220 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1224 internal ApplicationSignal InitSignal()
1226 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_InitSignal(swigCPtr), false);
1227 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1231 internal ApplicationSignal TerminateSignal()
1233 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_TerminateSignal(swigCPtr), false);
1234 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1238 internal ApplicationSignal PauseSignal()
1240 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_PauseSignal(swigCPtr), false);
1241 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1245 internal ApplicationSignal ResumeSignal()
1247 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_ResumeSignal(swigCPtr), false);
1248 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1252 internal ApplicationSignal ResetSignal()
1254 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_ResetSignal(swigCPtr), false);
1255 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1259 internal ApplicationSignal ResizeSignal()
1261 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_ResizeSignal(swigCPtr), false);
1262 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1266 internal ApplicationControlSignal AppControlSignal()
1268 ApplicationControlSignal ret = new ApplicationControlSignal(NDalicPINVOKE.Application_AppControlSignal(swigCPtr), false);
1269 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1273 internal ApplicationSignal LanguageChangedSignal()
1275 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_LanguageChangedSignal(swigCPtr), false);
1276 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1280 internal ApplicationSignal RegionChangedSignal()
1282 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_RegionChangedSignal(swigCPtr), false);
1283 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1287 internal ApplicationSignal BatteryLowSignal()
1289 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_BatteryLowSignal(swigCPtr), false);
1290 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1294 internal ApplicationSignal MemoryLowSignal()
1296 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_MemoryLowSignal(swigCPtr), false);
1297 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1301 public enum WindowMode