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;
17 //This version should be updated and synced for every Dali native release
18 internal static class Version
20 public const int ver1 = 1;
21 public const int ver2 = 2;
22 public const int ver3 = 39;
23 public const int nuiVer1 = 0;
24 public const int nuiVer2 = 2;
25 public const int nuiVer3 = 39;
26 public const string nuiRelease = "";
30 * @brief Event arguments that passed via NUIApplicationInit signal
33 internal class NUIApplicationInitEventArgs : EventArgs
35 private Application _application;
38 * @brief Application - is the application that is being initialized
41 public Application Application
55 * @brief Event arguments that passed via NUIApplicationTerminate signal
58 internal class NUIApplicationTerminateEventArgs : EventArgs
60 private Application _application;
62 * @brief Application - is the application that is being Terminated
65 public Application Application
79 * @brief Event arguments that passed via NUIApplicationPause signal
82 internal class NUIApplicationPauseEventArgs : EventArgs
84 private Application _application;
86 * @brief Application - is the application that is being Paused
89 public Application Application
103 * @brief Event arguments that passed via NUIApplicationResume signal
106 internal class NUIApplicationResumeEventArgs : EventArgs
108 private Application _application;
110 * @brief Application - is the application that is being Resumed
113 public Application Application
121 _application = value;
127 * @brief Event arguments that passed via NUIApplicationReset signal
130 internal class NUIApplicationResetEventArgs : EventArgs
132 private Application _application;
134 * @brief Application - is the application that is being Reset
137 public Application Application
145 _application = value;
151 * @brief Event arguments that passed via NUIApplicationResize signal
154 internal class NUIApplicationResizeEventArgs : EventArgs
156 private Application _application;
158 * @brief Application - is the application that is being Resized
161 public Application Application
169 _application = value;
175 * @brief Event arguments that passed via NUIApplicationLanguageChanged signal
178 internal class NUIApplicationLanguageChangedEventArgs : EventArgs
180 private Application _application;
182 * @brief Application - is the application that is being affected with Device's language change
185 public Application Application
193 _application = value;
199 * @brief Event arguments that passed via NUIApplicationRegionChanged signal
202 internal class NUIApplicationRegionChangedEventArgs : EventArgs
204 private Application _application;
206 * @brief Application - is the application that is being affected with Device's region change
209 public Application Application
217 _application = value;
223 * @brief Event arguments that passed via NUIApplicationBatteryLow signal
226 internal class NUIApplicationBatteryLowEventArgs : EventArgs
228 private Application _application;
230 * @brief Application - is the application that is being affected when the battery level of the device is low
233 public Application Application
241 _application = value;
247 * @brief Event arguments that passed via NUIApplicationMemoryLow signal
250 internal class NUIApplicationMemoryLowEventArgs : EventArgs
252 private Application _application;
254 * @brief Application - is the application that is being affected when the memory level of the device is low
257 public Application Application
265 _application = value;
271 * @brief Event arguments that passed via NUIApplicationAppControl signal
274 internal class NUIApplicationAppControlEventArgs : EventArgs
276 private Application _application;
277 private IntPtr _voidp;
279 * @brief Application - is the application that is receiving the launch request from another application
282 public Application Application
290 _application = value;
294 * @brief VoidP - contains the information about why the application is launched
310 internal class Application : BaseHandle
312 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
314 internal Application(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Application_SWIGUpcast(cPtr), cMemoryOwn)
316 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
319 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Application obj)
321 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
324 protected override void Dispose(DisposeTypes type)
331 if (type == DisposeTypes.Explicit)
334 //Release your own managed resources here.
335 //You should release all of your own disposable objects here.
339 //Release your own unmanaged resources here.
340 //You should not access any managed member here except static instance.
341 //because the execution order of Finalizes is non-deterministic.
343 if (swigCPtr.Handle != global::System.IntPtr.Zero)
348 NDalicPINVOKE.delete_Application(swigCPtr);
350 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
356 private static void LOG(string str)
359 Tizen.Log.Debug("NUI", str);
363 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
364 private delegate void NUIApplicationInitEventCallbackDelegate(IntPtr application);
365 private DaliEventHandler<object, NUIApplicationInitEventArgs> _applicationInitEventHandler;
366 private NUIApplicationInitEventCallbackDelegate _applicationInitEventCallbackDelegate;
369 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
370 private delegate void NUIApplicationTerminateEventCallbackDelegate(IntPtr application);
371 private DaliEventHandler<object, NUIApplicationTerminateEventArgs> _applicationTerminateEventHandler;
372 private NUIApplicationTerminateEventCallbackDelegate _applicationTerminateEventCallbackDelegate;
375 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
376 private delegate void NUIApplicationPauseEventCallbackDelegate(IntPtr application);
377 private DaliEventHandler<object, NUIApplicationPauseEventArgs> _applicationPauseEventHandler;
378 private NUIApplicationPauseEventCallbackDelegate _applicationPauseEventCallbackDelegate;
380 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
381 private delegate void NUIApplicationResumeEventCallbackDelegate(IntPtr application);
382 private DaliEventHandler<object, NUIApplicationResumeEventArgs> _applicationResumeEventHandler;
383 private NUIApplicationResumeEventCallbackDelegate _applicationResumeEventCallbackDelegate;
385 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
386 private delegate void NUIApplicationResetEventCallbackDelegate(IntPtr application);
387 private DaliEventHandler<object, NUIApplicationResetEventArgs> _applicationResetEventHandler;
388 private NUIApplicationResetEventCallbackDelegate _applicationResetEventCallbackDelegate;
390 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
391 private delegate void NUIApplicationResizeEventCallbackDelegate(IntPtr application);
392 private DaliEventHandler<object, NUIApplicationResizeEventArgs> _applicationResizeEventHandler;
393 private NUIApplicationResizeEventCallbackDelegate _applicationResizeEventCallbackDelegate;
395 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
396 private delegate void NUIApplicationLanguageChangedEventCallbackDelegate(IntPtr application);
397 private DaliEventHandler<object, NUIApplicationLanguageChangedEventArgs> _applicationLanguageChangedEventHandler;
398 private NUIApplicationLanguageChangedEventCallbackDelegate _applicationLanguageChangedEventCallbackDelegate;
401 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
402 private delegate void NUIApplicationRegionChangedEventCallbackDelegate(IntPtr application);
403 private DaliEventHandler<object, NUIApplicationRegionChangedEventArgs> _applicationRegionChangedEventHandler;
404 private NUIApplicationRegionChangedEventCallbackDelegate _applicationRegionChangedEventCallbackDelegate;
406 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
407 private delegate void NUIApplicationBatteryLowEventCallbackDelegate(IntPtr application);
408 private DaliEventHandler<object, NUIApplicationBatteryLowEventArgs> _applicationBatteryLowEventHandler;
409 private NUIApplicationBatteryLowEventCallbackDelegate _applicationBatteryLowEventCallbackDelegate;
411 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
412 private delegate void NUIApplicationMemoryLowEventCallbackDelegate(IntPtr application);
413 private DaliEventHandler<object, NUIApplicationMemoryLowEventArgs> _applicationMemoryLowEventHandler;
414 private NUIApplicationMemoryLowEventCallbackDelegate _applicationMemoryLowEventCallbackDelegate;
416 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
417 private delegate void NUIApplicationAppControlEventCallbackDelegate(IntPtr application, IntPtr voidp);
418 private DaliEventHandler<object, NUIApplicationAppControlEventArgs> _applicationAppControlEventHandler;
419 private NUIApplicationAppControlEventCallbackDelegate _applicationAppControlEventCallbackDelegate;
422 * @brief Event for Initialized signal which can be used to subscribe/unsubscribe the event handler
423 * (in the type of NUIApplicationInitEventHandler - DaliEventHandler<object,NUIApplicationInitEventArgs>)
424 * provided by the user. Initialized signal is emitted when application is initialised
426 public event DaliEventHandler<object, NUIApplicationInitEventArgs> Initialized
432 // Restricted to only one listener
433 if (_applicationInitEventHandler == null)
435 _applicationInitEventHandler += value;
437 _applicationInitEventCallbackDelegate = new NUIApplicationInitEventCallbackDelegate(OnApplicationInit);
438 this.InitSignal().Connect(_applicationInitEventCallbackDelegate);
447 if (_applicationInitEventHandler != null)
449 this.InitSignal().Disconnect(_applicationInitEventCallbackDelegate);
452 _applicationInitEventHandler -= value;
457 // Callback for Application InitSignal
458 private void OnApplicationInit(IntPtr data)
460 // Initialize DisposeQueue Singleton class. This is also required to create DisposeQueue on main thread.
461 DisposeQueue.Instance.Initialize();
462 NUIApplicationInitEventArgs e = new NUIApplicationInitEventArgs();
464 // Populate all members of "e" (NUIApplicationInitEventArgs) with real data
465 e.Application = Application.GetApplicationFromPtr(data);
467 if (_applicationInitEventHandler != null)
469 //here we send all data to user event handlers
470 _applicationInitEventHandler(this, e);
475 * @brief Event for Terminated signal which can be used to subscribe/unsubscribe the event handler
476 * (in the type of NUIApplicationTerminateEventHandler-DaliEventHandler<object,NUIApplicationTerminateEventArgs>)
477 * provided by the user. Terminated signal is emitted when application is terminated
479 public event DaliEventHandler<object, NUIApplicationTerminateEventArgs> Terminated
485 // Restricted to only one listener
486 if (_applicationTerminateEventHandler == null)
488 _applicationTerminateEventHandler += value;
490 _applicationTerminateEventCallbackDelegate = new NUIApplicationTerminateEventCallbackDelegate(OnNUIApplicationTerminate);
491 this.TerminateSignal().Connect(_applicationTerminateEventCallbackDelegate);
500 if (_applicationTerminateEventHandler != null)
502 this.TerminateSignal().Disconnect(_applicationTerminateEventCallbackDelegate);
505 _applicationTerminateEventHandler -= value;
510 // Callback for Application TerminateSignal
511 private void OnNUIApplicationTerminate(IntPtr data)
513 NUIApplicationTerminateEventArgs e = new NUIApplicationTerminateEventArgs();
515 // Populate all members of "e" (NUIApplicationTerminateEventArgs) with real data
516 e.Application = Application.GetApplicationFromPtr(data);
518 if (_applicationTerminateEventHandler != null)
520 //here we send all data to user event handlers
521 _applicationTerminateEventHandler(this, e);
526 * @brief Event for Paused signal which can be used to subscribe/unsubscribe the event handler
527 * (in the type of NUIApplicationPauseEventHandler-DaliEventHandler<object,NUIApplicationPauseEventArgs>)
528 * provided by the user. Paused signal is emitted when application is paused
530 public event DaliEventHandler<object, NUIApplicationPauseEventArgs> Paused
536 // Restricted to only one listener
537 if (_applicationPauseEventHandler == null)
539 _applicationPauseEventHandler += value;
541 _applicationPauseEventCallbackDelegate = new NUIApplicationPauseEventCallbackDelegate(OnNUIApplicationPause);
542 this.PauseSignal().Connect(_applicationPauseEventCallbackDelegate);
551 if (_applicationPauseEventHandler != null)
553 this.PauseSignal().Disconnect(_applicationPauseEventCallbackDelegate);
556 _applicationPauseEventHandler -= value;
561 // Callback for Application PauseSignal
562 private void OnNUIApplicationPause(IntPtr data)
564 NUIApplicationPauseEventArgs e = new NUIApplicationPauseEventArgs();
566 // Populate all members of "e" (NUIApplicationPauseEventArgs) with real data
567 e.Application = Application.GetApplicationFromPtr(data);
569 if (_applicationPauseEventHandler != null)
571 //here we send all data to user event handlers
572 _applicationPauseEventHandler(this, e);
577 * @brief Event for Resumed signal which can be used to subscribe/unsubscribe the event handler
578 * (in the type of NUIApplicationResumeEventHandler-DaliEventHandler<object,NUIApplicationResumeEventArgs>)
579 * provided by the user. Resumed signal is emitted when application is resumed
581 public event DaliEventHandler<object, NUIApplicationResumeEventArgs> Resumed
587 // Restricted to only one listener
588 if (_applicationResumeEventHandler == null)
590 _applicationResumeEventHandler += value;
592 _applicationResumeEventCallbackDelegate = new NUIApplicationResumeEventCallbackDelegate(OnNUIApplicationResume);
593 this.ResumeSignal().Connect(_applicationResumeEventCallbackDelegate);
602 if (_applicationResumeEventHandler != null)
604 this.ResumeSignal().Disconnect(_applicationResumeEventCallbackDelegate);
607 _applicationResumeEventHandler -= value;
612 // Callback for Application ResumeSignal
613 private void OnNUIApplicationResume(IntPtr data)
615 NUIApplicationResumeEventArgs e = new NUIApplicationResumeEventArgs();
617 // Populate all members of "e" (NUIApplicationResumeEventArgs) with real data
618 e.Application = Application.GetApplicationFromPtr(data);
620 if (_applicationResumeEventHandler != null)
622 //here we send all data to user event handlers
623 _applicationResumeEventHandler(this, e);
628 * @brief Event for Reset signal which can be used to subscribe/unsubscribe the event handler
629 * (in the type of NUIApplicationResetEventHandler-DaliEventHandler<object,NUIApplicationResetEventArgs>)
630 * provided by the user. Reset signal is emitted when application is reset
632 public event DaliEventHandler<object, NUIApplicationResetEventArgs> Reset
638 // Restricted to only one listener
639 if (_applicationResetEventHandler == null)
641 _applicationResetEventHandler += value;
643 _applicationResetEventCallbackDelegate = new NUIApplicationResetEventCallbackDelegate(OnNUIApplicationReset);
644 this.ResetSignal().Connect(_applicationResetEventCallbackDelegate);
653 if (_applicationResetEventHandler != null)
655 this.ResetSignal().Disconnect(_applicationResetEventCallbackDelegate);
658 _applicationResetEventHandler -= value;
663 // Callback for Application ResetSignal
664 private void OnNUIApplicationReset(IntPtr data)
666 NUIApplicationResetEventArgs e = new NUIApplicationResetEventArgs();
668 // Populate all members of "e" (NUIApplicationResetEventArgs) with real data
669 e.Application = Application.GetApplicationFromPtr(data);
671 if (_applicationResetEventHandler != null)
673 //here we send all data to user event handlers
674 _applicationResetEventHandler(this, e);
679 * @brief Event for Resized signal which can be used to subscribe/unsubscribe the event handler
680 * (in the type of NUIApplicationResizeEventHandler-DaliEventHandler<object,NUIApplicationResizeEventArgs>)
681 * provided by the user. Resized signal is emitted when application is resized
683 public event DaliEventHandler<object, NUIApplicationResizeEventArgs> Resized
689 // Restricted to only one listener
690 if (_applicationResizeEventHandler == null)
692 _applicationResizeEventHandler += value;
694 _applicationResizeEventCallbackDelegate = new NUIApplicationResizeEventCallbackDelegate(OnNUIApplicationResize);
695 this.ResizeSignal().Connect(_applicationResizeEventCallbackDelegate);
704 if (_applicationResizeEventHandler != null)
706 this.ResizeSignal().Disconnect(_applicationResizeEventCallbackDelegate);
709 _applicationResizeEventHandler -= value;
714 // Callback for Application ResizeSignal
715 private void OnNUIApplicationResize(IntPtr data)
717 NUIApplicationResizeEventArgs e = new NUIApplicationResizeEventArgs();
719 // Populate all members of "e" (NUIApplicationResizeEventArgs) with real data
720 e.Application = Application.GetApplicationFromPtr(data);
722 if (_applicationResizeEventHandler != null)
724 //here we send all data to user event handlers
725 _applicationResizeEventHandler(this, e);
730 * @brief Event for LanguageChanged signal which can be used to subscribe/unsubscribe the event handler
731 * (in the type of NUIApplicationLanguageChangedEventHandler-DaliEventHandler<object,NUIApplicationLanguageChangedEventArgs>)
732 * provided by the user. LanguageChanged signal is emitted when the region of the device is changed.
734 public event DaliEventHandler<object, NUIApplicationLanguageChangedEventArgs> LanguageChanged
740 // Restricted to only one listener
741 if (_applicationLanguageChangedEventHandler == null)
743 _applicationLanguageChangedEventHandler += value;
745 _applicationLanguageChangedEventCallbackDelegate = new NUIApplicationLanguageChangedEventCallbackDelegate(OnNUIApplicationLanguageChanged);
746 this.LanguageChangedSignal().Connect(_applicationLanguageChangedEventCallbackDelegate);
755 if (_applicationLanguageChangedEventHandler != null)
757 this.LanguageChangedSignal().Disconnect(_applicationLanguageChangedEventCallbackDelegate);
760 _applicationLanguageChangedEventHandler -= value;
765 // Callback for Application LanguageChangedSignal
766 private void OnNUIApplicationLanguageChanged(IntPtr data)
768 NUIApplicationLanguageChangedEventArgs e = new NUIApplicationLanguageChangedEventArgs();
770 // Populate all members of "e" (NUIApplicationLanguageChangedEventArgs) with real data
771 e.Application = Application.GetApplicationFromPtr(data);
773 if (_applicationLanguageChangedEventHandler != null)
775 //here we send all data to user event handlers
776 _applicationLanguageChangedEventHandler(this, e);
781 * @brief Event for RegionChanged signal which can be used to subscribe/unsubscribe the event handler
782 * (in the type of NUIApplicationRegionChangedEventHandler-DaliEventHandler<object,NUIApplicationRegionChangedEventArgs>)
783 * provided by the user. RegionChanged signal is emitted when the region of the device is changed.
785 public event DaliEventHandler<object, NUIApplicationRegionChangedEventArgs> RegionChanged
791 // Restricted to only one listener
792 if (_applicationRegionChangedEventHandler == null)
794 _applicationRegionChangedEventHandler += value;
796 _applicationRegionChangedEventCallbackDelegate = new NUIApplicationRegionChangedEventCallbackDelegate(OnNUIApplicationRegionChanged);
797 this.RegionChangedSignal().Connect(_applicationRegionChangedEventCallbackDelegate);
806 if (_applicationRegionChangedEventHandler != null)
808 this.RegionChangedSignal().Disconnect(_applicationRegionChangedEventCallbackDelegate);
811 _applicationRegionChangedEventHandler -= value;
816 // Callback for Application RegionChangedSignal
817 private void OnNUIApplicationRegionChanged(IntPtr data)
819 NUIApplicationRegionChangedEventArgs e = new NUIApplicationRegionChangedEventArgs();
821 // Populate all members of "e" (NUIApplicationRegionChangedEventArgs) with real data
822 e.Application = Application.GetApplicationFromPtr(data);
824 if (_applicationRegionChangedEventHandler != null)
826 //here we send all data to user event handlers
827 _applicationRegionChangedEventHandler(this, e);
832 * @brief Event for BatteryLow signal which can be used to subscribe/unsubscribe the event handler
833 * (in the type of NUIApplicationBatteryLowEventHandler-DaliEventHandler<object,NUIApplicationBatteryLowEventArgs>)
834 * provided by the user. BatteryLow signal is emitted when the battery level of the device is low.
836 public event DaliEventHandler<object, NUIApplicationBatteryLowEventArgs> BatteryLow
842 // Restricted to only one listener
843 if (_applicationBatteryLowEventHandler == null)
845 _applicationBatteryLowEventHandler += value;
847 _applicationBatteryLowEventCallbackDelegate = new NUIApplicationBatteryLowEventCallbackDelegate(OnNUIApplicationBatteryLow);
848 this.BatteryLowSignal().Connect(_applicationBatteryLowEventCallbackDelegate);
857 if (_applicationBatteryLowEventHandler != null)
859 this.BatteryLowSignal().Disconnect(_applicationBatteryLowEventCallbackDelegate);
862 _applicationBatteryLowEventHandler -= value;
867 // Callback for Application BatteryLowSignal
868 private void OnNUIApplicationBatteryLow(IntPtr data)
870 NUIApplicationBatteryLowEventArgs e = new NUIApplicationBatteryLowEventArgs();
872 // Populate all members of "e" (NUIApplicationBatteryLowEventArgs) with real data
873 e.Application = Application.GetApplicationFromPtr(data);
875 if (_applicationBatteryLowEventHandler != null)
877 //here we send all data to user event handlers
878 _applicationBatteryLowEventHandler(this, e);
883 * @brief Event for MemoryLow signal which can be used to subscribe/unsubscribe the event handler
884 * (in the type of NUIApplicationMemoryLowEventHandler-DaliEventHandler<object,NUIApplicationMemoryLowEventArgs>)
885 * provided by the user. MemoryLow signal is emitted when the memory level of the device is low.
887 public event DaliEventHandler<object, NUIApplicationMemoryLowEventArgs> MemoryLow
893 // Restricted to only one listener
894 if (_applicationMemoryLowEventHandler == null)
896 _applicationMemoryLowEventHandler += value;
898 _applicationMemoryLowEventCallbackDelegate = new NUIApplicationMemoryLowEventCallbackDelegate(OnNUIApplicationMemoryLow);
899 this.MemoryLowSignal().Connect(_applicationMemoryLowEventCallbackDelegate);
908 if (_applicationMemoryLowEventHandler != null)
910 this.MemoryLowSignal().Disconnect(_applicationMemoryLowEventCallbackDelegate);
913 _applicationMemoryLowEventHandler -= value;
918 // Callback for Application MemoryLowSignal
919 private void OnNUIApplicationMemoryLow(IntPtr data)
921 NUIApplicationMemoryLowEventArgs e = new NUIApplicationMemoryLowEventArgs();
923 // Populate all members of "e" (NUIApplicationMemoryLowEventArgs) with real data
924 e.Application = Application.GetApplicationFromPtr(data);
926 if (_applicationMemoryLowEventHandler != null)
928 //here we send all data to user event handlers
929 _applicationMemoryLowEventHandler(this, e);
934 * @brief Event for AppControl signal which can be used to subscribe/unsubscribe the event handler
935 * (in the type of NUIApplicationAppControlEventHandler-DaliEventHandler<object,NUIApplicationAppControlEventArgs>)
936 * provided by the user. AppControl signal is emitted when another application sends a launch request to the application.
938 public event DaliEventHandler<object, NUIApplicationAppControlEventArgs> AppControl
944 // Restricted to only one listener
945 if (_applicationAppControlEventHandler == null)
947 _applicationAppControlEventHandler += value;
949 _applicationAppControlEventCallbackDelegate = new NUIApplicationAppControlEventCallbackDelegate(OnNUIApplicationAppControl);
950 this.AppControlSignal().Connect(_applicationAppControlEventCallbackDelegate);
959 if (_applicationAppControlEventHandler != null)
961 this.AppControlSignal().Disconnect(_applicationAppControlEventCallbackDelegate);
964 _applicationAppControlEventHandler -= value;
969 // Callback for Application AppControlSignal
970 private void OnNUIApplicationAppControl(IntPtr application, IntPtr voidp)
972 NUIApplicationAppControlEventArgs e = new NUIApplicationAppControlEventArgs();
974 // Populate all members of "e" (NUIApplicationAppControlEventArgs) with real data
975 e.Application = Application.GetApplicationFromPtr(application);
978 if (_applicationAppControlEventHandler != null)
980 //here we send all data to user event handlers
981 _applicationAppControlEventHandler(this, e);
985 private static Application _instance; // singleton
987 public delegate void InitDelegate();
989 public delegate void TerminateDelegate();
991 public delegate void PauseDelegate();
993 public delegate void ResumeDelegate();
995 public delegate void ResizeDelegate();
997 public delegate void AppControlDelegate();
999 public delegate void LanguageChangedDelegate();
1001 public delegate void RegionChangedDelegate();
1003 public delegate void BatteryLowDelegate();
1005 public delegate void MemoryLowDelegate();
1007 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
1008 internal delegate void InitDelegateInternal();
1010 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
1011 internal delegate void TerminateDelegateInternal();
1013 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
1014 internal delegate void PauseDelegateInternal();
1016 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
1017 internal delegate void ResumeDelegateInternal();
1019 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
1020 internal delegate void ResizeDelegateInternal();
1022 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
1023 internal delegate void AppControlDelegateInternal();
1025 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
1026 internal delegate void LanguageChangedDelegateInternal();
1028 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
1029 internal delegate void RegionChangedDelegateInternal();
1031 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
1032 internal delegate void BatteryLowDelegateInternal();
1034 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
1035 internal delegate void MemoryLowDelegateInternal();
1037 static void Initialize()
1039 // instance.InitDelegate();
1042 public static Application Instance
1050 public static Application GetApplicationFromPtr(global::System.IntPtr cPtr)
1052 Application ret = new Application(cPtr, false);
1053 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1057 internal void SetupDelegates()
1059 InitDelegateInternal initializeCallback = new InitDelegateInternal(Initialize);
1061 Tizen.Log.Debug("NUI", "InitSignal connection count");
1063 this.InitSignal().Connect(initializeCallback);
1065 Tizen.Log.Debug("NUI", "InitSignal connection count = " + InitSignal().GetConnectionCount());
1069 public static Application NewApplication()
1071 _instance = NewApplication("", Application.WindowMode.Opaque);
1075 public static Application NewApplication(string stylesheet)
1077 _instance = NewApplication(stylesheet, Application.WindowMode.Opaque);
1081 public static Application NewApplication(string stylesheet, Application.WindowMode windowMode)
1090 if (NDalicManualPINVOKE.NativeVersionCheck(ref ver1, ref ver2, ref ver3))
1092 if (ver1 != Version.ver1 || ver2 != Version.ver2 || ver3 != Version.ver3)
1094 //throw new System.InvalidOperationException("Dali native version mismatch error! nui=" + Version.ver1 + "." + Version.ver2 + "." + Version.ver3 + " but dali=" + ver1 + "." + ver2 + "." + ver3);
1095 Tizen.Log.Fatal("NUI", "Dali native version mismatch error! nui=" + Version.nuiVer1 + "." + Version.nuiVer2 + "." + Version.nuiVer3 + Version.nuiRelease + " but native dali=" + ver1 + "." + ver2 + "." + ver3);
1100 //throw new System.InvalidOperationException("Dali native version mismatch error! nui=" + Version.ver1 + "." + Version.ver2 + "." + Version.ver3 + " but dali=" + ver1 + "." + ver2 + "." + ver3);
1101 Tizen.Log.Fatal("NUI", "Dali native version mismatch error! nui=" + Version.nuiVer1 + "." + Version.nuiVer2 + "." + Version.nuiVer3 + Version.nuiRelease + " but native dali=" + ver1 + "." + ver2 + "." + ver3);
1104 catch (Exception exc)
1106 //throw new System.InvalidOperationException("Dali native version is very old! nui=" + Version.ver1 + "." + Version.ver2 + "." + Version.ver3);
1107 Tizen.Log.Fatal("NUI", "Dali native version is very old! nui=" + Version.nuiVer1 + "." + Version.nuiVer2 + "." + Version.nuiVer3 + Version.nuiRelease);
1108 Tizen.Log.Fatal("NUI", "exception occured! =" + exc.Message);
1110 LOG(" Dali native version=" + ver1 + "." + ver2 + "." + ver3 + " NUI version=" + Version.nuiVer1 + "." + Version.nuiVer2 + "." + Version.nuiVer3 + Version.nuiRelease);
1112 LOG(" NewApplication(string stylesheet, Application.WindowMode windowMode) is called! ");
1114 // register all Views with the type registry, so that can be created / styled via JSON
1115 //ViewRegistryHelper.Initialize(); //moved to Application side.
1117 Application ret = New(1, stylesheet, windowMode);
1118 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1120 // we've got an application now connect the signals
1121 ret.SetupDelegates();
1122 // set the singleton
1127 //Removed from v0.2.33
1128 /*public bool AddIdle(System.Delegate func)
1130 System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
1131 System.IntPtr ip2 = NDalicManualPINVOKE.MakeCallback(new System.Runtime.InteropServices.HandleRef(this, ip));
1133 bool ret = NDalicPINVOKE.Application_AddIdle(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip2));
1135 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1142 * Outer::outer_method(int)
1144 public static Application New()
1146 LOG("New() is called!");
1148 Application ret = new Application(NDalicPINVOKE.Application_New__SWIG_0(), true);
1149 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1153 public static Application New(int argc)
1155 LOG("New(int argc) is called!");
1157 Application ret = new Application(NDalicPINVOKE.Application_New__SWIG_1(argc), true);
1158 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1162 public static Application New(int argc, string stylesheet)
1164 LOG("New(int argc, string stylesheet) is called!");
1166 Application ret = new Application(NDalicPINVOKE.Application_New__SWIG_2(argc, stylesheet), true);
1167 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1171 public static Application New(int argc, string stylesheet, Application.WindowMode windowMode)
1173 LOG("New(int argc, string stylesheet, Application.WindowMode windowMode) is called!");
1175 Application ret = new Application(NDalicPINVOKE.Application_New__SWIG_3(argc, stylesheet, (int)windowMode), true);
1176 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1180 public Application() : this(NDalicPINVOKE.new_Application__SWIG_0(), true)
1182 LOG("Application() is called!");
1184 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1187 public Application(Application application) : this(NDalicPINVOKE.new_Application__SWIG_1(Application.getCPtr(application)), true)
1189 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1192 public Application Assign(Application application)
1194 Application ret = new Application(NDalicPINVOKE.Application_Assign(swigCPtr, Application.getCPtr(application)), false);
1195 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1199 public void MainLoop()
1201 NDalicPINVOKE.Application_MainLoop__SWIG_0(swigCPtr);
1202 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1205 internal void MainLoop(SWIGTYPE_p_Configuration__ContextLoss configuration)
1207 NDalicPINVOKE.Application_MainLoop__SWIG_1(swigCPtr, SWIGTYPE_p_Configuration__ContextLoss.getCPtr(configuration));
1208 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1213 NDalicPINVOKE.Application_Lower(swigCPtr);
1214 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1219 NDalicPINVOKE.Application_Quit(swigCPtr);
1220 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1223 internal bool AddIdle(SWIGTYPE_p_Dali__CallbackBase callback)
1225 bool ret = NDalicPINVOKE.Application_AddIdle(swigCPtr, SWIGTYPE_p_Dali__CallbackBase.getCPtr(callback));
1226 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1230 public Window GetWindow()
1232 Window ret = new Window(NDalicPINVOKE.Application_GetWindow(swigCPtr), true);
1233 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1237 public void ReplaceWindow(Rectangle windowPosition, string name)
1239 NDalicPINVOKE.Application_ReplaceWindow(swigCPtr, Rectangle.getCPtr(windowPosition), name);
1240 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1243 public static string GetResourcePath()
1245 string ret = NDalicPINVOKE.Application_GetResourcePath();
1246 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1250 internal void SetViewMode(ViewMode viewMode)
1252 NDalicPINVOKE.Application_SetViewMode(swigCPtr, (int)viewMode);
1253 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1256 internal ViewMode GetViewMode()
1258 ViewMode ret = (ViewMode)NDalicPINVOKE.Application_GetViewMode(swigCPtr);
1259 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1263 public void SetStereoBase(float stereoBase)
1265 NDalicPINVOKE.Application_SetStereoBase(swigCPtr, stereoBase);
1266 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1269 public float GetStereoBase()
1271 float ret = NDalicPINVOKE.Application_GetStereoBase(swigCPtr);
1272 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1276 internal ApplicationSignal InitSignal()
1278 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_InitSignal(swigCPtr), false);
1279 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1283 internal ApplicationSignal TerminateSignal()
1285 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_TerminateSignal(swigCPtr), false);
1286 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1290 internal ApplicationSignal PauseSignal()
1292 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_PauseSignal(swigCPtr), false);
1293 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1297 internal ApplicationSignal ResumeSignal()
1299 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_ResumeSignal(swigCPtr), false);
1300 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1304 internal ApplicationSignal ResetSignal()
1306 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_ResetSignal(swigCPtr), false);
1307 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1311 internal ApplicationSignal ResizeSignal()
1313 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_ResizeSignal(swigCPtr), false);
1314 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1318 internal ApplicationControlSignal AppControlSignal()
1320 ApplicationControlSignal ret = new ApplicationControlSignal(NDalicPINVOKE.Application_AppControlSignal(swigCPtr), false);
1321 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1325 internal ApplicationSignal LanguageChangedSignal()
1327 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_LanguageChangedSignal(swigCPtr), false);
1328 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1332 internal ApplicationSignal RegionChangedSignal()
1334 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_RegionChangedSignal(swigCPtr), false);
1335 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1339 internal ApplicationSignal BatteryLowSignal()
1341 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_BatteryLowSignal(swigCPtr), false);
1342 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1346 internal ApplicationSignal MemoryLowSignal()
1348 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_MemoryLowSignal(swigCPtr), false);
1349 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
1353 public enum WindowMode