1 //------------------------------------------------------------------------------
\r
2 // <auto-generated />
\r
4 // This file was automatically generated by SWIG (http://www.swig.org).
\r
7 // Do not make changes to this file unless you know what you are doing--modify
\r
8 // the SWIG interface file instead.
\r
9 //------------------------------------------------------------------------------
\r
15 using System.Runtime.InteropServices;
\r
19 internal LOG(string _str)
\r
21 Tizen.Log.Debug("NUI", _str);
\r
26 * @brief Event arguments that passed via NUIApplicationInit signal
\r
29 internal class NUIApplicationInitEventArgs : EventArgs
\r
31 private Application _application;
\r
34 * @brief Application - is the application that is being initialized
\r
37 public Application Application
\r
41 return _application;
\r
45 _application = value;
\r
51 * @brief Event arguments that passed via NUIApplicationTerminate signal
\r
54 internal class NUIApplicationTerminateEventArgs : EventArgs
\r
56 private Application _application;
\r
58 * @brief Application - is the application that is being Terminated
\r
61 public Application Application
\r
65 return _application;
\r
69 _application = value;
\r
75 * @brief Event arguments that passed via NUIApplicationPause signal
\r
78 internal class NUIApplicationPauseEventArgs : EventArgs
\r
80 private Application _application;
\r
82 * @brief Application - is the application that is being Paused
\r
85 public Application Application
\r
89 return _application;
\r
93 _application = value;
\r
99 * @brief Event arguments that passed via NUIApplicationResume signal
\r
102 internal class NUIApplicationResumeEventArgs : EventArgs
\r
104 private Application _application;
\r
106 * @brief Application - is the application that is being Resumed
\r
109 public Application Application
\r
113 return _application;
\r
117 _application = value;
\r
123 * @brief Event arguments that passed via NUIApplicationReset signal
\r
126 internal class NUIApplicationResetEventArgs : EventArgs
\r
128 private Application _application;
\r
130 * @brief Application - is the application that is being Reset
\r
133 public Application Application
\r
137 return _application;
\r
141 _application = value;
\r
147 * @brief Event arguments that passed via NUIApplicationResize signal
\r
150 internal class NUIApplicationResizeEventArgs : EventArgs
\r
152 private Application _application;
\r
154 * @brief Application - is the application that is being Resized
\r
157 public Application Application
\r
161 return _application;
\r
165 _application = value;
\r
171 * @brief Event arguments that passed via NUIApplicationLanguageChanged signal
\r
174 internal class NUIApplicationLanguageChangedEventArgs : EventArgs
\r
176 private Application _application;
\r
178 * @brief Application - is the application that is being affected with Device's language change
\r
181 public Application Application
\r
185 return _application;
\r
189 _application = value;
\r
195 * @brief Event arguments that passed via NUIApplicationRegionChanged signal
\r
198 internal class NUIApplicationRegionChangedEventArgs : EventArgs
\r
200 private Application _application;
\r
202 * @brief Application - is the application that is being affected with Device's region change
\r
205 public Application Application
\r
209 return _application;
\r
213 _application = value;
\r
219 * @brief Event arguments that passed via NUIApplicationBatteryLow signal
\r
222 internal class NUIApplicationBatteryLowEventArgs : EventArgs
\r
224 private Application _application;
\r
226 * @brief Application - is the application that is being affected when the battery level of the device is low
\r
229 public Application Application
\r
233 return _application;
\r
237 _application = value;
\r
243 * @brief Event arguments that passed via NUIApplicationMemoryLow signal
\r
246 internal class NUIApplicationMemoryLowEventArgs : EventArgs
\r
248 private Application _application;
\r
250 * @brief Application - is the application that is being affected when the memory level of the device is low
\r
253 public Application Application
\r
257 return _application;
\r
261 _application = value;
\r
267 * @brief Event arguments that passed via NUIApplicationAppControl signal
\r
270 internal class NUIApplicationAppControlEventArgs : EventArgs
\r
272 private Application _application;
\r
273 private IntPtr _voidp;
\r
275 * @brief Application - is the application that is receiving the launch request from another application
\r
278 public Application Application
\r
282 return _application;
\r
286 _application = value;
\r
290 * @brief VoidP - contains the information about why the application is launched
\r
293 public IntPtr VoidP
\r
306 internal class Application : BaseHandle
\r
308 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
\r
310 internal Application(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Application_SWIGUpcast(cPtr), cMemoryOwn)
\r
312 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
\r
315 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Application obj)
\r
317 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
\r
322 DisposeQueue.Instance.Add(this);
\r
325 public override void Dispose()
\r
327 if (!Stage.IsInstalled())
\r
329 DisposeQueue.Instance.Add(this);
\r
335 if (swigCPtr.Handle != global::System.IntPtr.Zero)
\r
339 swigCMemOwn = false;
\r
340 NDalicPINVOKE.delete_Application(swigCPtr);
\r
342 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
\r
344 global::System.GC.SuppressFinalize(this);
\r
350 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
\r
351 private delegate void NUIApplicationInitEventCallbackDelegate(IntPtr application);
\r
352 private DaliEventHandler<object, NUIApplicationInitEventArgs> _applicationInitEventHandler;
\r
353 private NUIApplicationInitEventCallbackDelegate _applicationInitEventCallbackDelegate;
\r
356 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
\r
357 private delegate void NUIApplicationTerminateEventCallbackDelegate(IntPtr application);
\r
358 private DaliEventHandler<object, NUIApplicationTerminateEventArgs> _applicationTerminateEventHandler;
\r
359 private NUIApplicationTerminateEventCallbackDelegate _applicationTerminateEventCallbackDelegate;
\r
362 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
\r
363 private delegate void NUIApplicationPauseEventCallbackDelegate(IntPtr application);
\r
364 private DaliEventHandler<object, NUIApplicationPauseEventArgs> _applicationPauseEventHandler;
\r
365 private NUIApplicationPauseEventCallbackDelegate _applicationPauseEventCallbackDelegate;
\r
367 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
\r
368 private delegate void NUIApplicationResumeEventCallbackDelegate(IntPtr application);
\r
369 private DaliEventHandler<object, NUIApplicationResumeEventArgs> _applicationResumeEventHandler;
\r
370 private NUIApplicationResumeEventCallbackDelegate _applicationResumeEventCallbackDelegate;
\r
372 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
\r
373 private delegate void NUIApplicationResetEventCallbackDelegate(IntPtr application);
\r
374 private DaliEventHandler<object, NUIApplicationResetEventArgs> _applicationResetEventHandler;
\r
375 private NUIApplicationResetEventCallbackDelegate _applicationResetEventCallbackDelegate;
\r
377 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
\r
378 private delegate void NUIApplicationResizeEventCallbackDelegate(IntPtr application);
\r
379 private DaliEventHandler<object, NUIApplicationResizeEventArgs> _applicationResizeEventHandler;
\r
380 private NUIApplicationResizeEventCallbackDelegate _applicationResizeEventCallbackDelegate;
\r
382 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
\r
383 private delegate void NUIApplicationLanguageChangedEventCallbackDelegate(IntPtr application);
\r
384 private DaliEventHandler<object, NUIApplicationLanguageChangedEventArgs> _applicationLanguageChangedEventHandler;
\r
385 private NUIApplicationLanguageChangedEventCallbackDelegate _applicationLanguageChangedEventCallbackDelegate;
\r
388 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
\r
389 private delegate void NUIApplicationRegionChangedEventCallbackDelegate(IntPtr application);
\r
390 private DaliEventHandler<object, NUIApplicationRegionChangedEventArgs> _applicationRegionChangedEventHandler;
\r
391 private NUIApplicationRegionChangedEventCallbackDelegate _applicationRegionChangedEventCallbackDelegate;
\r
393 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
\r
394 private delegate void NUIApplicationBatteryLowEventCallbackDelegate(IntPtr application);
\r
395 private DaliEventHandler<object, NUIApplicationBatteryLowEventArgs> _applicationBatteryLowEventHandler;
\r
396 private NUIApplicationBatteryLowEventCallbackDelegate _applicationBatteryLowEventCallbackDelegate;
\r
398 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
\r
399 private delegate void NUIApplicationMemoryLowEventCallbackDelegate(IntPtr application);
\r
400 private DaliEventHandler<object, NUIApplicationMemoryLowEventArgs> _applicationMemoryLowEventHandler;
\r
401 private NUIApplicationMemoryLowEventCallbackDelegate _applicationMemoryLowEventCallbackDelegate;
\r
403 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
\r
404 private delegate void NUIApplicationAppControlEventCallbackDelegate(IntPtr application, IntPtr voidp);
\r
405 private DaliEventHandler<object, NUIApplicationAppControlEventArgs> _applicationAppControlEventHandler;
\r
406 private NUIApplicationAppControlEventCallbackDelegate _applicationAppControlEventCallbackDelegate;
\r
409 * @brief Event for Initialized signal which can be used to subscribe/unsubscribe the event handler
\r
410 * (in the type of NUIApplicationInitEventHandler - DaliEventHandler<object,NUIApplicationInitEventArgs>)
\r
411 * provided by the user. Initialized signal is emitted when application is initialised
\r
413 public event DaliEventHandler<object, NUIApplicationInitEventArgs> Initialized
\r
419 // Restricted to only one listener
\r
420 if (_applicationInitEventHandler == null)
\r
422 _applicationInitEventHandler += value;
\r
424 _applicationInitEventCallbackDelegate = new NUIApplicationInitEventCallbackDelegate(OnApplicationInit);
\r
425 this.InitSignal().Connect(_applicationInitEventCallbackDelegate);
\r
434 if (_applicationInitEventHandler != null)
\r
436 this.InitSignal().Disconnect(_applicationInitEventCallbackDelegate);
\r
439 _applicationInitEventHandler -= value;
\r
444 // Callback for Application InitSignal
\r
445 private void OnApplicationInit(IntPtr data)
\r
447 NUIApplicationInitEventArgs e = new NUIApplicationInitEventArgs();
\r
449 // Populate all members of "e" (NUIApplicationInitEventArgs) with real data
\r
450 e.Application = Application.GetApplicationFromPtr(data);
\r
452 if (_applicationInitEventHandler != null)
\r
454 //here we send all data to user event handlers
\r
455 _applicationInitEventHandler(this, e);
\r
460 * @brief Event for Terminated signal which can be used to subscribe/unsubscribe the event handler
\r
461 * (in the type of NUIApplicationTerminateEventHandler-DaliEventHandler<object,NUIApplicationTerminateEventArgs>)
\r
462 * provided by the user. Terminated signal is emitted when application is terminated
\r
464 public event DaliEventHandler<object, NUIApplicationTerminateEventArgs> Terminated
\r
470 // Restricted to only one listener
\r
471 if (_applicationTerminateEventHandler == null)
\r
473 _applicationTerminateEventHandler += value;
\r
475 _applicationTerminateEventCallbackDelegate = new NUIApplicationTerminateEventCallbackDelegate(OnNUIApplicationTerminate);
\r
476 this.TerminateSignal().Connect(_applicationTerminateEventCallbackDelegate);
\r
485 if (_applicationTerminateEventHandler != null)
\r
487 this.TerminateSignal().Disconnect(_applicationTerminateEventCallbackDelegate);
\r
490 _applicationTerminateEventHandler -= value;
\r
495 // Callback for Application TerminateSignal
\r
496 private void OnNUIApplicationTerminate(IntPtr data)
\r
498 NUIApplicationTerminateEventArgs e = new NUIApplicationTerminateEventArgs();
\r
500 // Populate all members of "e" (NUIApplicationTerminateEventArgs) with real data
\r
501 e.Application = Application.GetApplicationFromPtr(data);
\r
503 if (_applicationTerminateEventHandler != null)
\r
505 //here we send all data to user event handlers
\r
506 _applicationTerminateEventHandler(this, e);
\r
511 * @brief Event for Paused signal which can be used to subscribe/unsubscribe the event handler
\r
512 * (in the type of NUIApplicationPauseEventHandler-DaliEventHandler<object,NUIApplicationPauseEventArgs>)
\r
513 * provided by the user. Paused signal is emitted when application is paused
\r
515 public event DaliEventHandler<object, NUIApplicationPauseEventArgs> Paused
\r
521 // Restricted to only one listener
\r
522 if (_applicationPauseEventHandler == null)
\r
524 _applicationPauseEventHandler += value;
\r
526 _applicationPauseEventCallbackDelegate = new NUIApplicationPauseEventCallbackDelegate(OnNUIApplicationPause);
\r
527 this.PauseSignal().Connect(_applicationPauseEventCallbackDelegate);
\r
536 if (_applicationPauseEventHandler != null)
\r
538 this.PauseSignal().Disconnect(_applicationPauseEventCallbackDelegate);
\r
541 _applicationPauseEventHandler -= value;
\r
546 // Callback for Application PauseSignal
\r
547 private void OnNUIApplicationPause(IntPtr data)
\r
549 NUIApplicationPauseEventArgs e = new NUIApplicationPauseEventArgs();
\r
551 // Populate all members of "e" (NUIApplicationPauseEventArgs) with real data
\r
552 e.Application = Application.GetApplicationFromPtr(data);
\r
554 if (_applicationPauseEventHandler != null)
\r
556 //here we send all data to user event handlers
\r
557 _applicationPauseEventHandler(this, e);
\r
562 * @brief Event for Resumed signal which can be used to subscribe/unsubscribe the event handler
\r
563 * (in the type of NUIApplicationResumeEventHandler-DaliEventHandler<object,NUIApplicationResumeEventArgs>)
\r
564 * provided by the user. Resumed signal is emitted when application is resumed
\r
566 public event DaliEventHandler<object, NUIApplicationResumeEventArgs> Resumed
\r
572 // Restricted to only one listener
\r
573 if (_applicationResumeEventHandler == null)
\r
575 _applicationResumeEventHandler += value;
\r
577 _applicationResumeEventCallbackDelegate = new NUIApplicationResumeEventCallbackDelegate(OnNUIApplicationResume);
\r
578 this.ResumeSignal().Connect(_applicationResumeEventCallbackDelegate);
\r
587 if (_applicationResumeEventHandler != null)
\r
589 this.ResumeSignal().Disconnect(_applicationResumeEventCallbackDelegate);
\r
592 _applicationResumeEventHandler -= value;
\r
597 // Callback for Application ResumeSignal
\r
598 private void OnNUIApplicationResume(IntPtr data)
\r
600 NUIApplicationResumeEventArgs e = new NUIApplicationResumeEventArgs();
\r
602 // Populate all members of "e" (NUIApplicationResumeEventArgs) with real data
\r
603 e.Application = Application.GetApplicationFromPtr(data);
\r
605 if (_applicationResumeEventHandler != null)
\r
607 //here we send all data to user event handlers
\r
608 _applicationResumeEventHandler(this, e);
\r
613 * @brief Event for Reset signal which can be used to subscribe/unsubscribe the event handler
\r
614 * (in the type of NUIApplicationResetEventHandler-DaliEventHandler<object,NUIApplicationResetEventArgs>)
\r
615 * provided by the user. Reset signal is emitted when application is reset
\r
617 public event DaliEventHandler<object, NUIApplicationResetEventArgs> Reset
\r
623 // Restricted to only one listener
\r
624 if (_applicationResetEventHandler == null)
\r
626 _applicationResetEventHandler += value;
\r
628 _applicationResetEventCallbackDelegate = new NUIApplicationResetEventCallbackDelegate(OnNUIApplicationReset);
\r
629 this.ResetSignal().Connect(_applicationResetEventCallbackDelegate);
\r
638 if (_applicationResetEventHandler != null)
\r
640 this.ResetSignal().Disconnect(_applicationResetEventCallbackDelegate);
\r
643 _applicationResetEventHandler -= value;
\r
648 // Callback for Application ResetSignal
\r
649 private void OnNUIApplicationReset(IntPtr data)
\r
651 NUIApplicationResetEventArgs e = new NUIApplicationResetEventArgs();
\r
653 // Populate all members of "e" (NUIApplicationResetEventArgs) with real data
\r
654 e.Application = Application.GetApplicationFromPtr(data);
\r
656 if (_applicationResetEventHandler != null)
\r
658 //here we send all data to user event handlers
\r
659 _applicationResetEventHandler(this, e);
\r
664 * @brief Event for Resized signal which can be used to subscribe/unsubscribe the event handler
\r
665 * (in the type of NUIApplicationResizeEventHandler-DaliEventHandler<object,NUIApplicationResizeEventArgs>)
\r
666 * provided by the user. Resized signal is emitted when application is resized
\r
668 public event DaliEventHandler<object, NUIApplicationResizeEventArgs> Resized
\r
674 // Restricted to only one listener
\r
675 if (_applicationResizeEventHandler == null)
\r
677 _applicationResizeEventHandler += value;
\r
679 _applicationResizeEventCallbackDelegate = new NUIApplicationResizeEventCallbackDelegate(OnNUIApplicationResize);
\r
680 this.ResizeSignal().Connect(_applicationResizeEventCallbackDelegate);
\r
689 if (_applicationResizeEventHandler != null)
\r
691 this.ResizeSignal().Disconnect(_applicationResizeEventCallbackDelegate);
\r
694 _applicationResizeEventHandler -= value;
\r
699 // Callback for Application ResizeSignal
\r
700 private void OnNUIApplicationResize(IntPtr data)
\r
702 NUIApplicationResizeEventArgs e = new NUIApplicationResizeEventArgs();
\r
704 // Populate all members of "e" (NUIApplicationResizeEventArgs) with real data
\r
705 e.Application = Application.GetApplicationFromPtr(data);
\r
707 if (_applicationResizeEventHandler != null)
\r
709 //here we send all data to user event handlers
\r
710 _applicationResizeEventHandler(this, e);
\r
715 * @brief Event for LanguageChanged signal which can be used to subscribe/unsubscribe the event handler
\r
716 * (in the type of NUIApplicationLanguageChangedEventHandler-DaliEventHandler<object,NUIApplicationLanguageChangedEventArgs>)
\r
717 * provided by the user. LanguageChanged signal is emitted when the region of the device is changed.
\r
719 public event DaliEventHandler<object, NUIApplicationLanguageChangedEventArgs> LanguageChanged
\r
725 // Restricted to only one listener
\r
726 if (_applicationLanguageChangedEventHandler == null)
\r
728 _applicationLanguageChangedEventHandler += value;
\r
730 _applicationLanguageChangedEventCallbackDelegate = new NUIApplicationLanguageChangedEventCallbackDelegate(OnNUIApplicationLanguageChanged);
\r
731 this.LanguageChangedSignal().Connect(_applicationLanguageChangedEventCallbackDelegate);
\r
740 if (_applicationLanguageChangedEventHandler != null)
\r
742 this.LanguageChangedSignal().Disconnect(_applicationLanguageChangedEventCallbackDelegate);
\r
745 _applicationLanguageChangedEventHandler -= value;
\r
750 // Callback for Application LanguageChangedSignal
\r
751 private void OnNUIApplicationLanguageChanged(IntPtr data)
\r
753 NUIApplicationLanguageChangedEventArgs e = new NUIApplicationLanguageChangedEventArgs();
\r
755 // Populate all members of "e" (NUIApplicationLanguageChangedEventArgs) with real data
\r
756 e.Application = Application.GetApplicationFromPtr(data);
\r
758 if (_applicationLanguageChangedEventHandler != null)
\r
760 //here we send all data to user event handlers
\r
761 _applicationLanguageChangedEventHandler(this, e);
\r
766 * @brief Event for RegionChanged signal which can be used to subscribe/unsubscribe the event handler
\r
767 * (in the type of NUIApplicationRegionChangedEventHandler-DaliEventHandler<object,NUIApplicationRegionChangedEventArgs>)
\r
768 * provided by the user. RegionChanged signal is emitted when the region of the device is changed.
\r
770 public event DaliEventHandler<object, NUIApplicationRegionChangedEventArgs> RegionChanged
\r
776 // Restricted to only one listener
\r
777 if (_applicationRegionChangedEventHandler == null)
\r
779 _applicationRegionChangedEventHandler += value;
\r
781 _applicationRegionChangedEventCallbackDelegate = new NUIApplicationRegionChangedEventCallbackDelegate(OnNUIApplicationRegionChanged);
\r
782 this.RegionChangedSignal().Connect(_applicationRegionChangedEventCallbackDelegate);
\r
791 if (_applicationRegionChangedEventHandler != null)
\r
793 this.RegionChangedSignal().Disconnect(_applicationRegionChangedEventCallbackDelegate);
\r
796 _applicationRegionChangedEventHandler -= value;
\r
801 // Callback for Application RegionChangedSignal
\r
802 private void OnNUIApplicationRegionChanged(IntPtr data)
\r
804 NUIApplicationRegionChangedEventArgs e = new NUIApplicationRegionChangedEventArgs();
\r
806 // Populate all members of "e" (NUIApplicationRegionChangedEventArgs) with real data
\r
807 e.Application = Application.GetApplicationFromPtr(data);
\r
809 if (_applicationRegionChangedEventHandler != null)
\r
811 //here we send all data to user event handlers
\r
812 _applicationRegionChangedEventHandler(this, e);
\r
817 * @brief Event for BatteryLow signal which can be used to subscribe/unsubscribe the event handler
\r
818 * (in the type of NUIApplicationBatteryLowEventHandler-DaliEventHandler<object,NUIApplicationBatteryLowEventArgs>)
\r
819 * provided by the user. BatteryLow signal is emitted when the battery level of the device is low.
\r
821 public event DaliEventHandler<object, NUIApplicationBatteryLowEventArgs> BatteryLow
\r
827 // Restricted to only one listener
\r
828 if (_applicationBatteryLowEventHandler == null)
\r
830 _applicationBatteryLowEventHandler += value;
\r
832 _applicationBatteryLowEventCallbackDelegate = new NUIApplicationBatteryLowEventCallbackDelegate(OnNUIApplicationBatteryLow);
\r
833 this.BatteryLowSignal().Connect(_applicationBatteryLowEventCallbackDelegate);
\r
842 if (_applicationBatteryLowEventHandler != null)
\r
844 this.BatteryLowSignal().Disconnect(_applicationBatteryLowEventCallbackDelegate);
\r
847 _applicationBatteryLowEventHandler -= value;
\r
852 // Callback for Application BatteryLowSignal
\r
853 private void OnNUIApplicationBatteryLow(IntPtr data)
\r
855 NUIApplicationBatteryLowEventArgs e = new NUIApplicationBatteryLowEventArgs();
\r
857 // Populate all members of "e" (NUIApplicationBatteryLowEventArgs) with real data
\r
858 e.Application = Application.GetApplicationFromPtr(data);
\r
860 if (_applicationBatteryLowEventHandler != null)
\r
862 //here we send all data to user event handlers
\r
863 _applicationBatteryLowEventHandler(this, e);
\r
868 * @brief Event for MemoryLow signal which can be used to subscribe/unsubscribe the event handler
\r
869 * (in the type of NUIApplicationMemoryLowEventHandler-DaliEventHandler<object,NUIApplicationMemoryLowEventArgs>)
\r
870 * provided by the user. MemoryLow signal is emitted when the memory level of the device is low.
\r
872 public event DaliEventHandler<object, NUIApplicationMemoryLowEventArgs> MemoryLow
\r
878 // Restricted to only one listener
\r
879 if (_applicationMemoryLowEventHandler == null)
\r
881 _applicationMemoryLowEventHandler += value;
\r
883 _applicationMemoryLowEventCallbackDelegate = new NUIApplicationMemoryLowEventCallbackDelegate(OnNUIApplicationMemoryLow);
\r
884 this.MemoryLowSignal().Connect(_applicationMemoryLowEventCallbackDelegate);
\r
893 if (_applicationMemoryLowEventHandler != null)
\r
895 this.MemoryLowSignal().Disconnect(_applicationMemoryLowEventCallbackDelegate);
\r
898 _applicationMemoryLowEventHandler -= value;
\r
903 // Callback for Application MemoryLowSignal
\r
904 private void OnNUIApplicationMemoryLow(IntPtr data)
\r
906 NUIApplicationMemoryLowEventArgs e = new NUIApplicationMemoryLowEventArgs();
\r
908 // Populate all members of "e" (NUIApplicationMemoryLowEventArgs) with real data
\r
909 e.Application = Application.GetApplicationFromPtr(data);
\r
911 if (_applicationMemoryLowEventHandler != null)
\r
913 //here we send all data to user event handlers
\r
914 _applicationMemoryLowEventHandler(this, e);
\r
919 * @brief Event for AppControl signal which can be used to subscribe/unsubscribe the event handler
\r
920 * (in the type of NUIApplicationAppControlEventHandler-DaliEventHandler<object,NUIApplicationAppControlEventArgs>)
\r
921 * provided by the user. AppControl signal is emitted when another application sends a launch request to the application.
\r
923 public event DaliEventHandler<object, NUIApplicationAppControlEventArgs> AppControl
\r
929 // Restricted to only one listener
\r
930 if (_applicationAppControlEventHandler == null)
\r
932 _applicationAppControlEventHandler += value;
\r
934 _applicationAppControlEventCallbackDelegate = new NUIApplicationAppControlEventCallbackDelegate(OnNUIApplicationAppControl);
\r
935 this.AppControlSignal().Connect(_applicationAppControlEventCallbackDelegate);
\r
944 if (_applicationAppControlEventHandler != null)
\r
946 this.AppControlSignal().Disconnect(_applicationAppControlEventCallbackDelegate);
\r
949 _applicationAppControlEventHandler -= value;
\r
954 // Callback for Application AppControlSignal
\r
955 private void OnNUIApplicationAppControl(IntPtr application, IntPtr voidp)
\r
957 NUIApplicationAppControlEventArgs e = new NUIApplicationAppControlEventArgs();
\r
959 // Populate all members of "e" (NUIApplicationAppControlEventArgs) with real data
\r
960 e.Application = Application.GetApplicationFromPtr(application);
\r
963 if (_applicationAppControlEventHandler != null)
\r
965 //here we send all data to user event handlers
\r
966 _applicationAppControlEventHandler(this, e);
\r
970 private static Application _instance; // singleton
\r
972 public delegate void InitDelegate();
\r
974 public delegate void TerminateDelegate();
\r
976 public delegate void PauseDelegate();
\r
978 public delegate void ResumeDelegate();
\r
980 public delegate void ResizeDelegate();
\r
982 public delegate void AppControlDelegate();
\r
984 public delegate void LanguageChangedDelegate();
\r
986 public delegate void RegionChangedDelegate();
\r
988 public delegate void BatteryLowDelegate();
\r
990 public delegate void MemoryLowDelegate();
\r
992 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
\r
993 internal delegate void InitDelegateInternal();
\r
995 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
\r
996 internal delegate void TerminateDelegateInternal();
\r
998 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
\r
999 internal delegate void PauseDelegateInternal();
\r
1001 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
\r
1002 internal delegate void ResumeDelegateInternal();
\r
1004 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
\r
1005 internal delegate void ResizeDelegateInternal();
\r
1007 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
\r
1008 internal delegate void AppControlDelegateInternal();
\r
1010 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
\r
1011 internal delegate void LanguageChangedDelegateInternal();
\r
1013 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
\r
1014 internal delegate void RegionChangedDelegateInternal();
\r
1016 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
\r
1017 internal delegate void BatteryLowDelegateInternal();
\r
1019 [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]
\r
1020 internal delegate void MemoryLowDelegateInternal();
\r
1022 static void Initialize()
\r
1024 // instance.InitDelegate();
\r
1027 public static Application Instance
\r
1035 public static Application GetApplicationFromPtr(global::System.IntPtr cPtr)
\r
1037 Application ret = new Application(cPtr, false);
\r
1038 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
1042 internal void SetupDelegates()
\r
1044 InitDelegateInternal initializeCallback = new InitDelegateInternal(Initialize);
\r
1045 System.Console.WriteLine("InitSignal connection count");
\r
1047 this.InitSignal().Connect(initializeCallback);
\r
1048 //Console.WriteLine( "InitSignal connection count = " + app.InitSignal().GetConnectionCount() );
\r
1051 public static Application NewApplication()
\r
1053 _instance = NewApplication("", Application.WindowMode.Opaque);
\r
1057 public static Application NewApplication(string stylesheet)
\r
1059 _instance = NewApplication(stylesheet, Application.WindowMode.Opaque);
\r
1063 public static Application NewApplication(string stylesheet, Application.WindowMode windowMode)
\r
1065 new LOG(" NewApplication(string stylesheet, Application.WindowMode windowMode) is called! ");
\r
1067 // register all Views with the type registry, so that can be created / styled via JSON
\r
1068 ViewRegistryHelper.Initialize();
\r
1070 Application ret = New(1, stylesheet, windowMode);
\r
1071 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
1073 // we've got an application now connect the signals
\r
1074 ret.SetupDelegates();
\r
1075 // set the singleton
\r
1080 public bool AddIdle(System.Delegate func)
\r
1082 System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func);
\r
1083 System.IntPtr ip2 = NDalicManualPINVOKE.MakeCallback(new System.Runtime.InteropServices.HandleRef(this, ip));
\r
1085 bool ret = NDalicPINVOKE.Application_AddIdle(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip2));
\r
1087 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
1094 * Outer::outer_method(int)
\r
1096 public static Application New()
\r
1098 new LOG("New() is called!");
\r
1100 Application ret = new Application(NDalicPINVOKE.Application_New__SWIG_0(), true);
\r
1101 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
1105 public static Application New(int argc)
\r
1107 new LOG("New(int argc) is called!");
\r
1109 Application ret = new Application(NDalicPINVOKE.Application_New__SWIG_1(argc), true);
\r
1110 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
1114 public static Application New(int argc, string stylesheet)
\r
1116 new LOG("New(int argc, string stylesheet) is called!");
\r
1118 Application ret = new Application(NDalicPINVOKE.Application_New__SWIG_2(argc, stylesheet), true);
\r
1119 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
1123 public static Application New(int argc, string stylesheet, Application.WindowMode windowMode)
\r
1125 new LOG("New(int argc, string stylesheet, Application.WindowMode windowMode) is called!");
\r
1127 Application ret = new Application(NDalicPINVOKE.Application_New__SWIG_3(argc, stylesheet, (int)windowMode), true);
\r
1128 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
1132 public Application() : this(NDalicPINVOKE.new_Application__SWIG_0(), true)
\r
1134 new LOG("Application() is called!");
\r
1136 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
1139 public Application(Application application) : this(NDalicPINVOKE.new_Application__SWIG_1(Application.getCPtr(application)), true)
\r
1141 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
1144 public Application Assign(Application application)
\r
1146 Application ret = new Application(NDalicPINVOKE.Application_Assign(swigCPtr, Application.getCPtr(application)), false);
\r
1147 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
1151 public void MainLoop()
\r
1153 NDalicPINVOKE.Application_MainLoop__SWIG_0(swigCPtr);
\r
1154 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
1157 internal void MainLoop(SWIGTYPE_p_Configuration__ContextLoss configuration)
\r
1159 NDalicPINVOKE.Application_MainLoop__SWIG_1(swigCPtr, SWIGTYPE_p_Configuration__ContextLoss.getCPtr(configuration));
\r
1160 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
1163 public void Lower()
\r
1165 NDalicPINVOKE.Application_Lower(swigCPtr);
\r
1166 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
1169 public void Quit()
\r
1171 NDalicPINVOKE.Application_Quit(swigCPtr);
\r
1172 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
1175 internal bool AddIdle(SWIGTYPE_p_Dali__CallbackBase callback)
\r
1177 bool ret = NDalicPINVOKE.Application_AddIdle(swigCPtr, SWIGTYPE_p_Dali__CallbackBase.getCPtr(callback));
\r
1178 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
1182 public Window GetWindow()
\r
1184 Window ret = new Window(NDalicPINVOKE.Application_GetWindow(swigCPtr), true);
\r
1185 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
1189 public void ReplaceWindow(Rectangle windowPosition, string name)
\r
1191 NDalicPINVOKE.Application_ReplaceWindow(swigCPtr, Rectangle.getCPtr(windowPosition), name);
\r
1192 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
1195 public static string GetResourcePath()
\r
1197 string ret = NDalicPINVOKE.Application_GetResourcePath();
\r
1198 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
1202 internal void SetViewMode(ViewMode viewMode)
\r
1204 NDalicPINVOKE.Application_SetViewMode(swigCPtr, (int)viewMode);
\r
1205 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
1208 internal ViewMode GetViewMode()
\r
1210 ViewMode ret = (ViewMode)NDalicPINVOKE.Application_GetViewMode(swigCPtr);
\r
1211 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
1215 public void SetStereoBase(float stereoBase)
\r
1217 NDalicPINVOKE.Application_SetStereoBase(swigCPtr, stereoBase);
\r
1218 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
1221 public float GetStereoBase()
\r
1223 float ret = NDalicPINVOKE.Application_GetStereoBase(swigCPtr);
\r
1224 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
1228 internal ApplicationSignal InitSignal()
\r
1230 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_InitSignal(swigCPtr), false);
\r
1231 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
1235 internal ApplicationSignal TerminateSignal()
\r
1237 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_TerminateSignal(swigCPtr), false);
\r
1238 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
1242 internal ApplicationSignal PauseSignal()
\r
1244 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_PauseSignal(swigCPtr), false);
\r
1245 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
1249 internal ApplicationSignal ResumeSignal()
\r
1251 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_ResumeSignal(swigCPtr), false);
\r
1252 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
1256 internal ApplicationSignal ResetSignal()
\r
1258 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_ResetSignal(swigCPtr), false);
\r
1259 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
1263 internal ApplicationSignal ResizeSignal()
\r
1265 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_ResizeSignal(swigCPtr), false);
\r
1266 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
1270 internal ApplicationControlSignal AppControlSignal()
\r
1272 ApplicationControlSignal ret = new ApplicationControlSignal(NDalicPINVOKE.Application_AppControlSignal(swigCPtr), false);
\r
1273 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
1277 internal ApplicationSignal LanguageChangedSignal()
\r
1279 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_LanguageChangedSignal(swigCPtr), false);
\r
1280 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
1284 internal ApplicationSignal RegionChangedSignal()
\r
1286 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_RegionChangedSignal(swigCPtr), false);
\r
1287 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
1291 internal ApplicationSignal BatteryLowSignal()
\r
1293 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_BatteryLowSignal(swigCPtr), false);
\r
1294 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
1298 internal ApplicationSignal MemoryLowSignal()
\r
1300 ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_MemoryLowSignal(swigCPtr), false);
\r
1301 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
\r
1305 public enum WindowMode
\r