AnimationBetween() parameter changed and more
[platform/core/csapi/nui.git] / Tizen.NUI / src / internal / Application.cs
1 //------------------------------------------------------------------------------\r
2 // <auto-generated />\r
3 //\r
4 // This file was automatically generated by SWIG (http://www.swig.org).\r
5 // Version 3.0.9\r
6 //\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
10 \r
11 namespace Tizen.NUI\r
12 {\r
13 \r
14     using System;\r
15     using System.Runtime.InteropServices;\r
16 \r
17     internal class LOG\r
18     {\r
19         internal LOG(string _str)\r
20         {\r
21             Tizen.Log.Debug("NUI", _str);\r
22         }\r
23     }\r
24 \r
25     /**\r
26       * @brief Event arguments that passed via NUIApplicationInit signal\r
27       *\r
28       */\r
29     internal class NUIApplicationInitEventArgs : EventArgs\r
30     {\r
31         private Application _application;\r
32 \r
33         /**\r
34           * @brief Application - is the application that is being initialized\r
35           *\r
36           */\r
37         public Application Application\r
38         {\r
39             get\r
40             {\r
41                 return _application;\r
42             }\r
43             set\r
44             {\r
45                 _application = value;\r
46             }\r
47         }\r
48     }\r
49 \r
50     /**\r
51       * @brief Event arguments that passed via NUIApplicationTerminate signal\r
52       *\r
53       */\r
54     internal class NUIApplicationTerminateEventArgs : EventArgs\r
55     {\r
56         private Application _application;\r
57         /**\r
58           * @brief Application - is the application that is being Terminated\r
59           *\r
60           */\r
61         public Application Application\r
62         {\r
63             get\r
64             {\r
65                 return _application;\r
66             }\r
67             set\r
68             {\r
69                 _application = value;\r
70             }\r
71         }\r
72     }\r
73 \r
74     /**\r
75       * @brief Event arguments that passed via NUIApplicationPause signal\r
76       *\r
77       */\r
78     internal class NUIApplicationPauseEventArgs : EventArgs\r
79     {\r
80         private Application _application;\r
81         /**\r
82           * @brief Application - is the application that is being Paused\r
83           *\r
84           */\r
85         public Application Application\r
86         {\r
87             get\r
88             {\r
89                 return _application;\r
90             }\r
91             set\r
92             {\r
93                 _application = value;\r
94             }\r
95         }\r
96     }\r
97 \r
98     /**\r
99       * @brief Event arguments that passed via NUIApplicationResume signal\r
100       *\r
101       */\r
102     internal class NUIApplicationResumeEventArgs : EventArgs\r
103     {\r
104         private Application _application;\r
105         /**\r
106           * @brief Application - is the application that is being Resumed\r
107           *\r
108           */\r
109         public Application Application\r
110         {\r
111             get\r
112             {\r
113                 return _application;\r
114             }\r
115             set\r
116             {\r
117                 _application = value;\r
118             }\r
119         }\r
120     }\r
121 \r
122     /**\r
123       * @brief Event arguments that passed via NUIApplicationReset signal\r
124       *\r
125       */\r
126     internal class NUIApplicationResetEventArgs : EventArgs\r
127     {\r
128         private Application _application;\r
129         /**\r
130           * @brief Application - is the application that is being Reset\r
131           *\r
132           */\r
133         public Application Application\r
134         {\r
135             get\r
136             {\r
137                 return _application;\r
138             }\r
139             set\r
140             {\r
141                 _application = value;\r
142             }\r
143         }\r
144     }\r
145 \r
146     /**\r
147       * @brief Event arguments that passed via NUIApplicationResize signal\r
148       *\r
149       */\r
150     internal class NUIApplicationResizeEventArgs : EventArgs\r
151     {\r
152         private Application _application;\r
153         /**\r
154           * @brief Application - is the application that is being Resized\r
155           *\r
156           */\r
157         public Application Application\r
158         {\r
159             get\r
160             {\r
161                 return _application;\r
162             }\r
163             set\r
164             {\r
165                 _application = value;\r
166             }\r
167         }\r
168     }\r
169 \r
170     /**\r
171       * @brief Event arguments that passed via NUIApplicationLanguageChanged signal\r
172       *\r
173       */\r
174     internal class NUIApplicationLanguageChangedEventArgs : EventArgs\r
175     {\r
176         private Application _application;\r
177         /**\r
178           * @brief Application - is the application that is being affected with Device's language change\r
179           *\r
180           */\r
181         public Application Application\r
182         {\r
183             get\r
184             {\r
185                 return _application;\r
186             }\r
187             set\r
188             {\r
189                 _application = value;\r
190             }\r
191         }\r
192     }\r
193 \r
194     /**\r
195       * @brief Event arguments that passed via NUIApplicationRegionChanged signal\r
196       *\r
197       */\r
198     internal class NUIApplicationRegionChangedEventArgs : EventArgs\r
199     {\r
200         private Application _application;\r
201         /**\r
202           * @brief Application - is the application that is being affected with Device's region change\r
203           *\r
204           */\r
205         public Application Application\r
206         {\r
207             get\r
208             {\r
209                 return _application;\r
210             }\r
211             set\r
212             {\r
213                 _application = value;\r
214             }\r
215         }\r
216     }\r
217 \r
218     /**\r
219       * @brief Event arguments that passed via NUIApplicationBatteryLow signal\r
220       *\r
221       */\r
222     internal class NUIApplicationBatteryLowEventArgs : EventArgs\r
223     {\r
224         private Application _application;\r
225         /**\r
226           * @brief Application - is the application that is being affected when the battery level of the device is low\r
227           *\r
228           */\r
229         public Application Application\r
230         {\r
231             get\r
232             {\r
233                 return _application;\r
234             }\r
235             set\r
236             {\r
237                 _application = value;\r
238             }\r
239         }\r
240     }\r
241 \r
242     /**\r
243       * @brief Event arguments that passed via NUIApplicationMemoryLow signal\r
244       *\r
245       */\r
246     internal class NUIApplicationMemoryLowEventArgs : EventArgs\r
247     {\r
248         private Application _application;\r
249         /**\r
250           * @brief Application - is the application that is being affected when the memory level of the device is low\r
251           *\r
252           */\r
253         public Application Application\r
254         {\r
255             get\r
256             {\r
257                 return _application;\r
258             }\r
259             set\r
260             {\r
261                 _application = value;\r
262             }\r
263         }\r
264     }\r
265 \r
266     /**\r
267       * @brief Event arguments that passed via NUIApplicationAppControl  signal\r
268       *\r
269       */\r
270     internal class NUIApplicationAppControlEventArgs : EventArgs\r
271     {\r
272         private Application _application;\r
273         private IntPtr _voidp;\r
274         /**\r
275           * @brief Application - is the application that is receiving the launch request from another application\r
276           *\r
277           */\r
278         public Application Application\r
279         {\r
280             get\r
281             {\r
282                 return _application;\r
283             }\r
284             set\r
285             {\r
286                 _application = value;\r
287             }\r
288         }\r
289         /**\r
290           * @brief VoidP - contains the information about why the application is launched\r
291           *\r
292           */\r
293         public IntPtr VoidP\r
294         {\r
295             get\r
296             {\r
297                 return _voidp;\r
298             }\r
299             set\r
300             {\r
301                 _voidp = value;\r
302             }\r
303         }\r
304     }\r
305 \r
306     internal class Application : BaseHandle\r
307     {\r
308         private global::System.Runtime.InteropServices.HandleRef swigCPtr;\r
309 \r
310         internal Application(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Application_SWIGUpcast(cPtr), cMemoryOwn)\r
311         {\r
312             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);\r
313         }\r
314 \r
315         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Application obj)\r
316         {\r
317             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;\r
318         }\r
319 \r
320         ~Application()\r
321         {\r
322             DisposeQueue.Instance.Add(this);\r
323         }\r
324 \r
325         public override void Dispose()\r
326         {\r
327             if (!Stage.IsInstalled())\r
328             {\r
329                 DisposeQueue.Instance.Add(this);\r
330                 return;\r
331             }\r
332 \r
333             lock (this)\r
334             {\r
335                 if (swigCPtr.Handle != global::System.IntPtr.Zero)\r
336                 {\r
337                     if (swigCMemOwn)\r
338                     {\r
339                         swigCMemOwn = false;\r
340                         NDalicPINVOKE.delete_Application(swigCPtr);\r
341                     }\r
342                     swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);\r
343                 }\r
344                 global::System.GC.SuppressFinalize(this);\r
345                 base.Dispose();\r
346             }\r
347         }\r
348 \r
349 \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
354 \r
355 \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
360 \r
361 \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
366 \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
371 \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
376 \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
381 \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
386 \r
387 \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
392 \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
397 \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
402 \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
407 \r
408         /**\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
412           */\r
413         public event DaliEventHandler<object, NUIApplicationInitEventArgs> Initialized\r
414         {\r
415             add\r
416             {\r
417                 lock (this)\r
418                 {\r
419                     // Restricted to only one listener\r
420                     if (_applicationInitEventHandler == null)\r
421                     {\r
422                         _applicationInitEventHandler += value;\r
423 \r
424                         _applicationInitEventCallbackDelegate = new NUIApplicationInitEventCallbackDelegate(OnApplicationInit);\r
425                         this.InitSignal().Connect(_applicationInitEventCallbackDelegate);\r
426                     }\r
427                 }\r
428             }\r
429 \r
430             remove\r
431             {\r
432                 lock (this)\r
433                 {\r
434                     if (_applicationInitEventHandler != null)\r
435                     {\r
436                         this.InitSignal().Disconnect(_applicationInitEventCallbackDelegate);\r
437                     }\r
438 \r
439                     _applicationInitEventHandler -= value;\r
440                 }\r
441             }\r
442         }\r
443 \r
444         // Callback for Application InitSignal\r
445         private void OnApplicationInit(IntPtr data)\r
446         {\r
447             NUIApplicationInitEventArgs e = new NUIApplicationInitEventArgs();\r
448 \r
449             // Populate all members of "e" (NUIApplicationInitEventArgs) with real data\r
450             e.Application = Application.GetApplicationFromPtr(data);\r
451 \r
452             if (_applicationInitEventHandler != null)\r
453             {\r
454                 //here we send all data to user event handlers\r
455                 _applicationInitEventHandler(this, e);\r
456             }\r
457         }\r
458 \r
459         /**\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
463           */\r
464         public event DaliEventHandler<object, NUIApplicationTerminateEventArgs> Terminated\r
465         {\r
466             add\r
467             {\r
468                 lock (this)\r
469                 {\r
470                     // Restricted to only one listener\r
471                     if (_applicationTerminateEventHandler == null)\r
472                     {\r
473                         _applicationTerminateEventHandler += value;\r
474 \r
475                         _applicationTerminateEventCallbackDelegate = new NUIApplicationTerminateEventCallbackDelegate(OnNUIApplicationTerminate);\r
476                         this.TerminateSignal().Connect(_applicationTerminateEventCallbackDelegate);\r
477                     }\r
478                 }\r
479             }\r
480 \r
481             remove\r
482             {\r
483                 lock (this)\r
484                 {\r
485                     if (_applicationTerminateEventHandler != null)\r
486                     {\r
487                         this.TerminateSignal().Disconnect(_applicationTerminateEventCallbackDelegate);\r
488                     }\r
489 \r
490                     _applicationTerminateEventHandler -= value;\r
491                 }\r
492             }\r
493         }\r
494 \r
495         // Callback for Application TerminateSignal\r
496         private void OnNUIApplicationTerminate(IntPtr data)\r
497         {\r
498             NUIApplicationTerminateEventArgs e = new NUIApplicationTerminateEventArgs();\r
499 \r
500             // Populate all members of "e" (NUIApplicationTerminateEventArgs) with real data\r
501             e.Application = Application.GetApplicationFromPtr(data);\r
502 \r
503             if (_applicationTerminateEventHandler != null)\r
504             {\r
505                 //here we send all data to user event handlers\r
506                 _applicationTerminateEventHandler(this, e);\r
507             }\r
508         }\r
509 \r
510         /**\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
514           */\r
515         public event DaliEventHandler<object, NUIApplicationPauseEventArgs> Paused\r
516         {\r
517             add\r
518             {\r
519                 lock (this)\r
520                 {\r
521                     // Restricted to only one listener\r
522                     if (_applicationPauseEventHandler == null)\r
523                     {\r
524                         _applicationPauseEventHandler += value;\r
525 \r
526                         _applicationPauseEventCallbackDelegate = new NUIApplicationPauseEventCallbackDelegate(OnNUIApplicationPause);\r
527                         this.PauseSignal().Connect(_applicationPauseEventCallbackDelegate);\r
528                     }\r
529                 }\r
530             }\r
531 \r
532             remove\r
533             {\r
534                 lock (this)\r
535                 {\r
536                     if (_applicationPauseEventHandler != null)\r
537                     {\r
538                         this.PauseSignal().Disconnect(_applicationPauseEventCallbackDelegate);\r
539                     }\r
540 \r
541                     _applicationPauseEventHandler -= value;\r
542                 }\r
543             }\r
544         }\r
545 \r
546         // Callback for Application PauseSignal\r
547         private void OnNUIApplicationPause(IntPtr data)\r
548         {\r
549             NUIApplicationPauseEventArgs e = new NUIApplicationPauseEventArgs();\r
550 \r
551             // Populate all members of "e" (NUIApplicationPauseEventArgs) with real data\r
552             e.Application = Application.GetApplicationFromPtr(data);\r
553 \r
554             if (_applicationPauseEventHandler != null)\r
555             {\r
556                 //here we send all data to user event handlers\r
557                 _applicationPauseEventHandler(this, e);\r
558             }\r
559         }\r
560 \r
561         /**\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
565           */\r
566         public event DaliEventHandler<object, NUIApplicationResumeEventArgs> Resumed\r
567         {\r
568             add\r
569             {\r
570                 lock (this)\r
571                 {\r
572                     // Restricted to only one listener\r
573                     if (_applicationResumeEventHandler == null)\r
574                     {\r
575                         _applicationResumeEventHandler += value;\r
576 \r
577                         _applicationResumeEventCallbackDelegate = new NUIApplicationResumeEventCallbackDelegate(OnNUIApplicationResume);\r
578                         this.ResumeSignal().Connect(_applicationResumeEventCallbackDelegate);\r
579                     }\r
580                 }\r
581             }\r
582 \r
583             remove\r
584             {\r
585                 lock (this)\r
586                 {\r
587                     if (_applicationResumeEventHandler != null)\r
588                     {\r
589                         this.ResumeSignal().Disconnect(_applicationResumeEventCallbackDelegate);\r
590                     }\r
591 \r
592                     _applicationResumeEventHandler -= value;\r
593                 }\r
594             }\r
595         }\r
596 \r
597         // Callback for Application ResumeSignal\r
598         private void OnNUIApplicationResume(IntPtr data)\r
599         {\r
600             NUIApplicationResumeEventArgs e = new NUIApplicationResumeEventArgs();\r
601 \r
602             // Populate all members of "e" (NUIApplicationResumeEventArgs) with real data\r
603             e.Application = Application.GetApplicationFromPtr(data);\r
604 \r
605             if (_applicationResumeEventHandler != null)\r
606             {\r
607                 //here we send all data to user event handlers\r
608                 _applicationResumeEventHandler(this, e);\r
609             }\r
610         }\r
611 \r
612         /**\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
616           */\r
617         public event DaliEventHandler<object, NUIApplicationResetEventArgs> Reset\r
618         {\r
619             add\r
620             {\r
621                 lock (this)\r
622                 {\r
623                     // Restricted to only one listener\r
624                     if (_applicationResetEventHandler == null)\r
625                     {\r
626                         _applicationResetEventHandler += value;\r
627 \r
628                         _applicationResetEventCallbackDelegate = new NUIApplicationResetEventCallbackDelegate(OnNUIApplicationReset);\r
629                         this.ResetSignal().Connect(_applicationResetEventCallbackDelegate);\r
630                     }\r
631                 }\r
632             }\r
633 \r
634             remove\r
635             {\r
636                 lock (this)\r
637                 {\r
638                     if (_applicationResetEventHandler != null)\r
639                     {\r
640                         this.ResetSignal().Disconnect(_applicationResetEventCallbackDelegate);\r
641                     }\r
642 \r
643                     _applicationResetEventHandler -= value;\r
644                 }\r
645             }\r
646         }\r
647 \r
648         // Callback for Application ResetSignal\r
649         private void OnNUIApplicationReset(IntPtr data)\r
650         {\r
651             NUIApplicationResetEventArgs e = new NUIApplicationResetEventArgs();\r
652 \r
653             // Populate all members of "e" (NUIApplicationResetEventArgs) with real data\r
654             e.Application = Application.GetApplicationFromPtr(data);\r
655 \r
656             if (_applicationResetEventHandler != null)\r
657             {\r
658                 //here we send all data to user event handlers\r
659                 _applicationResetEventHandler(this, e);\r
660             }\r
661         }\r
662 \r
663         /**\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
667           */\r
668         public event DaliEventHandler<object, NUIApplicationResizeEventArgs> Resized\r
669         {\r
670             add\r
671             {\r
672                 lock (this)\r
673                 {\r
674                     // Restricted to only one listener\r
675                     if (_applicationResizeEventHandler == null)\r
676                     {\r
677                         _applicationResizeEventHandler += value;\r
678 \r
679                         _applicationResizeEventCallbackDelegate = new NUIApplicationResizeEventCallbackDelegate(OnNUIApplicationResize);\r
680                         this.ResizeSignal().Connect(_applicationResizeEventCallbackDelegate);\r
681                     }\r
682                 }\r
683             }\r
684 \r
685             remove\r
686             {\r
687                 lock (this)\r
688                 {\r
689                     if (_applicationResizeEventHandler != null)\r
690                     {\r
691                         this.ResizeSignal().Disconnect(_applicationResizeEventCallbackDelegate);\r
692                     }\r
693 \r
694                     _applicationResizeEventHandler -= value;\r
695                 }\r
696             }\r
697         }\r
698 \r
699         // Callback for Application ResizeSignal\r
700         private void OnNUIApplicationResize(IntPtr data)\r
701         {\r
702             NUIApplicationResizeEventArgs e = new NUIApplicationResizeEventArgs();\r
703 \r
704             // Populate all members of "e" (NUIApplicationResizeEventArgs) with real data\r
705             e.Application = Application.GetApplicationFromPtr(data);\r
706 \r
707             if (_applicationResizeEventHandler != null)\r
708             {\r
709                 //here we send all data to user event handlers\r
710                 _applicationResizeEventHandler(this, e);\r
711             }\r
712         }\r
713 \r
714         /**\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
718           */\r
719         public event DaliEventHandler<object, NUIApplicationLanguageChangedEventArgs> LanguageChanged\r
720         {\r
721             add\r
722             {\r
723                 lock (this)\r
724                 {\r
725                     // Restricted to only one listener\r
726                     if (_applicationLanguageChangedEventHandler == null)\r
727                     {\r
728                         _applicationLanguageChangedEventHandler += value;\r
729 \r
730                         _applicationLanguageChangedEventCallbackDelegate = new NUIApplicationLanguageChangedEventCallbackDelegate(OnNUIApplicationLanguageChanged);\r
731                         this.LanguageChangedSignal().Connect(_applicationLanguageChangedEventCallbackDelegate);\r
732                     }\r
733                 }\r
734             }\r
735 \r
736             remove\r
737             {\r
738                 lock (this)\r
739                 {\r
740                     if (_applicationLanguageChangedEventHandler != null)\r
741                     {\r
742                         this.LanguageChangedSignal().Disconnect(_applicationLanguageChangedEventCallbackDelegate);\r
743                     }\r
744 \r
745                     _applicationLanguageChangedEventHandler -= value;\r
746                 }\r
747             }\r
748         }\r
749 \r
750         // Callback for Application LanguageChangedSignal\r
751         private void OnNUIApplicationLanguageChanged(IntPtr data)\r
752         {\r
753             NUIApplicationLanguageChangedEventArgs e = new NUIApplicationLanguageChangedEventArgs();\r
754 \r
755             // Populate all members of "e" (NUIApplicationLanguageChangedEventArgs) with real data\r
756             e.Application = Application.GetApplicationFromPtr(data);\r
757 \r
758             if (_applicationLanguageChangedEventHandler != null)\r
759             {\r
760                 //here we send all data to user event handlers\r
761                 _applicationLanguageChangedEventHandler(this, e);\r
762             }\r
763         }\r
764 \r
765         /**\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
769           */\r
770         public event DaliEventHandler<object, NUIApplicationRegionChangedEventArgs> RegionChanged\r
771         {\r
772             add\r
773             {\r
774                 lock (this)\r
775                 {\r
776                     // Restricted to only one listener\r
777                     if (_applicationRegionChangedEventHandler == null)\r
778                     {\r
779                         _applicationRegionChangedEventHandler += value;\r
780 \r
781                         _applicationRegionChangedEventCallbackDelegate = new NUIApplicationRegionChangedEventCallbackDelegate(OnNUIApplicationRegionChanged);\r
782                         this.RegionChangedSignal().Connect(_applicationRegionChangedEventCallbackDelegate);\r
783                     }\r
784                 }\r
785             }\r
786 \r
787             remove\r
788             {\r
789                 lock (this)\r
790                 {\r
791                     if (_applicationRegionChangedEventHandler != null)\r
792                     {\r
793                         this.RegionChangedSignal().Disconnect(_applicationRegionChangedEventCallbackDelegate);\r
794                     }\r
795 \r
796                     _applicationRegionChangedEventHandler -= value;\r
797                 }\r
798             }\r
799         }\r
800 \r
801         // Callback for Application RegionChangedSignal\r
802         private void OnNUIApplicationRegionChanged(IntPtr data)\r
803         {\r
804             NUIApplicationRegionChangedEventArgs e = new NUIApplicationRegionChangedEventArgs();\r
805 \r
806             // Populate all members of "e" (NUIApplicationRegionChangedEventArgs) with real data\r
807             e.Application = Application.GetApplicationFromPtr(data);\r
808 \r
809             if (_applicationRegionChangedEventHandler != null)\r
810             {\r
811                 //here we send all data to user event handlers\r
812                 _applicationRegionChangedEventHandler(this, e);\r
813             }\r
814         }\r
815 \r
816         /**\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
820           */\r
821         public event DaliEventHandler<object, NUIApplicationBatteryLowEventArgs> BatteryLow\r
822         {\r
823             add\r
824             {\r
825                 lock (this)\r
826                 {\r
827                     // Restricted to only one listener\r
828                     if (_applicationBatteryLowEventHandler == null)\r
829                     {\r
830                         _applicationBatteryLowEventHandler += value;\r
831 \r
832                         _applicationBatteryLowEventCallbackDelegate = new NUIApplicationBatteryLowEventCallbackDelegate(OnNUIApplicationBatteryLow);\r
833                         this.BatteryLowSignal().Connect(_applicationBatteryLowEventCallbackDelegate);\r
834                     }\r
835                 }\r
836             }\r
837 \r
838             remove\r
839             {\r
840                 lock (this)\r
841                 {\r
842                     if (_applicationBatteryLowEventHandler != null)\r
843                     {\r
844                         this.BatteryLowSignal().Disconnect(_applicationBatteryLowEventCallbackDelegate);\r
845                     }\r
846 \r
847                     _applicationBatteryLowEventHandler -= value;\r
848                 }\r
849             }\r
850         }\r
851 \r
852         // Callback for Application BatteryLowSignal\r
853         private void OnNUIApplicationBatteryLow(IntPtr data)\r
854         {\r
855             NUIApplicationBatteryLowEventArgs e = new NUIApplicationBatteryLowEventArgs();\r
856 \r
857             // Populate all members of "e" (NUIApplicationBatteryLowEventArgs) with real data\r
858             e.Application = Application.GetApplicationFromPtr(data);\r
859 \r
860             if (_applicationBatteryLowEventHandler != null)\r
861             {\r
862                 //here we send all data to user event handlers\r
863                 _applicationBatteryLowEventHandler(this, e);\r
864             }\r
865         }\r
866 \r
867         /**\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
871           */\r
872         public event DaliEventHandler<object, NUIApplicationMemoryLowEventArgs> MemoryLow\r
873         {\r
874             add\r
875             {\r
876                 lock (this)\r
877                 {\r
878                     // Restricted to only one listener\r
879                     if (_applicationMemoryLowEventHandler == null)\r
880                     {\r
881                         _applicationMemoryLowEventHandler += value;\r
882 \r
883                         _applicationMemoryLowEventCallbackDelegate = new NUIApplicationMemoryLowEventCallbackDelegate(OnNUIApplicationMemoryLow);\r
884                         this.MemoryLowSignal().Connect(_applicationMemoryLowEventCallbackDelegate);\r
885                     }\r
886                 }\r
887             }\r
888 \r
889             remove\r
890             {\r
891                 lock (this)\r
892                 {\r
893                     if (_applicationMemoryLowEventHandler != null)\r
894                     {\r
895                         this.MemoryLowSignal().Disconnect(_applicationMemoryLowEventCallbackDelegate);\r
896                     }\r
897 \r
898                     _applicationMemoryLowEventHandler -= value;\r
899                 }\r
900             }\r
901         }\r
902 \r
903         // Callback for Application MemoryLowSignal\r
904         private void OnNUIApplicationMemoryLow(IntPtr data)\r
905         {\r
906             NUIApplicationMemoryLowEventArgs e = new NUIApplicationMemoryLowEventArgs();\r
907 \r
908             // Populate all members of "e" (NUIApplicationMemoryLowEventArgs) with real data\r
909             e.Application = Application.GetApplicationFromPtr(data);\r
910 \r
911             if (_applicationMemoryLowEventHandler != null)\r
912             {\r
913                 //here we send all data to user event handlers\r
914                 _applicationMemoryLowEventHandler(this, e);\r
915             }\r
916         }\r
917 \r
918         /**\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
922           */\r
923         public event DaliEventHandler<object, NUIApplicationAppControlEventArgs> AppControl\r
924         {\r
925             add\r
926             {\r
927                 lock (this)\r
928                 {\r
929                     // Restricted to only one listener\r
930                     if (_applicationAppControlEventHandler == null)\r
931                     {\r
932                         _applicationAppControlEventHandler += value;\r
933 \r
934                         _applicationAppControlEventCallbackDelegate = new NUIApplicationAppControlEventCallbackDelegate(OnNUIApplicationAppControl);\r
935                         this.AppControlSignal().Connect(_applicationAppControlEventCallbackDelegate);\r
936                     }\r
937                 }\r
938             }\r
939 \r
940             remove\r
941             {\r
942                 lock (this)\r
943                 {\r
944                     if (_applicationAppControlEventHandler != null)\r
945                     {\r
946                         this.AppControlSignal().Disconnect(_applicationAppControlEventCallbackDelegate);\r
947                     }\r
948 \r
949                     _applicationAppControlEventHandler -= value;\r
950                 }\r
951             }\r
952         }\r
953 \r
954         // Callback for Application AppControlSignal\r
955         private void OnNUIApplicationAppControl(IntPtr application, IntPtr voidp)\r
956         {\r
957             NUIApplicationAppControlEventArgs e = new NUIApplicationAppControlEventArgs();\r
958 \r
959             // Populate all members of "e" (NUIApplicationAppControlEventArgs) with real data\r
960             e.Application = Application.GetApplicationFromPtr(application);\r
961             e.VoidP = voidp;\r
962 \r
963             if (_applicationAppControlEventHandler != null)\r
964             {\r
965                 //here we send all data to user event handlers\r
966                 _applicationAppControlEventHandler(this, e);\r
967             }\r
968         }\r
969 \r
970         private static Application _instance; // singleton\r
971 \r
972         public delegate void InitDelegate();\r
973 \r
974         public delegate void TerminateDelegate();\r
975 \r
976         public delegate void PauseDelegate();\r
977 \r
978         public delegate void ResumeDelegate();\r
979 \r
980         public delegate void ResizeDelegate();\r
981 \r
982         public delegate void AppControlDelegate();\r
983 \r
984         public delegate void LanguageChangedDelegate();\r
985 \r
986         public delegate void RegionChangedDelegate();\r
987 \r
988         public delegate void BatteryLowDelegate();\r
989 \r
990         public delegate void MemoryLowDelegate();\r
991 \r
992         [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]\r
993         internal delegate void InitDelegateInternal();\r
994 \r
995         [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]\r
996         internal delegate void TerminateDelegateInternal();\r
997 \r
998         [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]\r
999         internal delegate void PauseDelegateInternal();\r
1000 \r
1001         [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]\r
1002         internal delegate void ResumeDelegateInternal();\r
1003 \r
1004         [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]\r
1005         internal delegate void ResizeDelegateInternal();\r
1006 \r
1007         [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]\r
1008         internal delegate void AppControlDelegateInternal();\r
1009 \r
1010         [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]\r
1011         internal delegate void LanguageChangedDelegateInternal();\r
1012 \r
1013         [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]\r
1014         internal delegate void RegionChangedDelegateInternal();\r
1015 \r
1016         [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]\r
1017         internal delegate void BatteryLowDelegateInternal();\r
1018 \r
1019         [System.Runtime.InteropServices.UnmanagedFunctionPointer(System.Runtime.InteropServices.CallingConvention.StdCall)]\r
1020         internal delegate void MemoryLowDelegateInternal();\r
1021 \r
1022         static void Initialize()\r
1023         {\r
1024             //  instance.InitDelegate();\r
1025         }\r
1026 \r
1027         public static Application Instance\r
1028         {\r
1029             get\r
1030             {\r
1031                 return _instance;\r
1032             }\r
1033         }\r
1034 \r
1035         public static Application GetApplicationFromPtr(global::System.IntPtr cPtr)\r
1036         {\r
1037             Application ret = new Application(cPtr, false);\r
1038             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1039             return ret;\r
1040         }\r
1041 \r
1042         internal void SetupDelegates()\r
1043         {\r
1044             InitDelegateInternal initializeCallback = new InitDelegateInternal(Initialize);\r
1045             System.Console.WriteLine("InitSignal connection count");\r
1046 \r
1047             this.InitSignal().Connect(initializeCallback);\r
1048             //Console.WriteLine( "InitSignal connection count = " + app.InitSignal().GetConnectionCount() );\r
1049         }\r
1050 \r
1051         public static Application NewApplication()\r
1052         {\r
1053             _instance = NewApplication("", Application.WindowMode.Opaque);\r
1054             return _instance;\r
1055         }\r
1056 \r
1057         public static Application NewApplication(string stylesheet)\r
1058         {\r
1059             _instance = NewApplication(stylesheet, Application.WindowMode.Opaque);\r
1060             return _instance;\r
1061         }\r
1062 \r
1063         public static Application NewApplication(string stylesheet, Application.WindowMode windowMode)\r
1064         {\r
1065             new LOG(" NewApplication(string stylesheet, Application.WindowMode windowMode) is called! ");\r
1066 \r
1067             // register all Views with the type registry, so that can be created / styled via JSON\r
1068             ViewRegistryHelper.Initialize();\r
1069 \r
1070             Application ret = New(1, stylesheet, windowMode);\r
1071             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1072 \r
1073             // we've got an application now connect the signals\r
1074             ret.SetupDelegates();\r
1075             // set the singleton\r
1076             _instance = ret;\r
1077             return ret;\r
1078         }\r
1079 \r
1080         public bool AddIdle(System.Delegate func)\r
1081         {\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
1084 \r
1085             bool ret = NDalicPINVOKE.Application_AddIdle(swigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip2));\r
1086 \r
1087             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1088             return ret;\r
1089         }\r
1090 \r
1091 \r
1092 \r
1093         /**\r
1094         * Outer::outer_method(int)\r
1095         */\r
1096         public static Application New()\r
1097         {\r
1098             new LOG("New() is called!");\r
1099 \r
1100             Application ret = new Application(NDalicPINVOKE.Application_New__SWIG_0(), true);\r
1101             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1102             return ret;\r
1103         }\r
1104 \r
1105         public static Application New(int argc)\r
1106         {\r
1107             new LOG("New(int argc) is called!");\r
1108 \r
1109             Application ret = new Application(NDalicPINVOKE.Application_New__SWIG_1(argc), true);\r
1110             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1111             return ret;\r
1112         }\r
1113 \r
1114         public static Application New(int argc, string stylesheet)\r
1115         {\r
1116             new LOG("New(int argc, string stylesheet) is called!");\r
1117 \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
1120             return ret;\r
1121         }\r
1122 \r
1123         public static Application New(int argc, string stylesheet, Application.WindowMode windowMode)\r
1124         {\r
1125             new LOG("New(int argc, string stylesheet, Application.WindowMode windowMode) is called!");\r
1126 \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
1129             return ret;\r
1130         }\r
1131 \r
1132         public Application() : this(NDalicPINVOKE.new_Application__SWIG_0(), true)\r
1133         {\r
1134             new LOG("Application() is called!");\r
1135 \r
1136             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1137         }\r
1138 \r
1139         public Application(Application application) : this(NDalicPINVOKE.new_Application__SWIG_1(Application.getCPtr(application)), true)\r
1140         {\r
1141             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1142         }\r
1143 \r
1144         public Application Assign(Application application)\r
1145         {\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
1148             return ret;\r
1149         }\r
1150 \r
1151         public void MainLoop()\r
1152         {\r
1153             NDalicPINVOKE.Application_MainLoop__SWIG_0(swigCPtr);\r
1154             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1155         }\r
1156 \r
1157         internal void MainLoop(SWIGTYPE_p_Configuration__ContextLoss configuration)\r
1158         {\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
1161         }\r
1162 \r
1163         public void Lower()\r
1164         {\r
1165             NDalicPINVOKE.Application_Lower(swigCPtr);\r
1166             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1167         }\r
1168 \r
1169         public void Quit()\r
1170         {\r
1171             NDalicPINVOKE.Application_Quit(swigCPtr);\r
1172             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1173         }\r
1174 \r
1175         internal bool AddIdle(SWIGTYPE_p_Dali__CallbackBase callback)\r
1176         {\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
1179             return ret;\r
1180         }\r
1181 \r
1182         public Window GetWindow()\r
1183         {\r
1184             Window ret = new Window(NDalicPINVOKE.Application_GetWindow(swigCPtr), true);\r
1185             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1186             return ret;\r
1187         }\r
1188 \r
1189         public void ReplaceWindow(Rectangle windowPosition, string name)\r
1190         {\r
1191             NDalicPINVOKE.Application_ReplaceWindow(swigCPtr, Rectangle.getCPtr(windowPosition), name);\r
1192             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1193         }\r
1194 \r
1195         public static string GetResourcePath()\r
1196         {\r
1197             string ret = NDalicPINVOKE.Application_GetResourcePath();\r
1198             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1199             return ret;\r
1200         }\r
1201 \r
1202         internal void SetViewMode(ViewMode viewMode)\r
1203         {\r
1204             NDalicPINVOKE.Application_SetViewMode(swigCPtr, (int)viewMode);\r
1205             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1206         }\r
1207 \r
1208         internal ViewMode GetViewMode()\r
1209         {\r
1210             ViewMode ret = (ViewMode)NDalicPINVOKE.Application_GetViewMode(swigCPtr);\r
1211             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1212             return ret;\r
1213         }\r
1214 \r
1215         public void SetStereoBase(float stereoBase)\r
1216         {\r
1217             NDalicPINVOKE.Application_SetStereoBase(swigCPtr, stereoBase);\r
1218             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1219         }\r
1220 \r
1221         public float GetStereoBase()\r
1222         {\r
1223             float ret = NDalicPINVOKE.Application_GetStereoBase(swigCPtr);\r
1224             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1225             return ret;\r
1226         }\r
1227 \r
1228         internal ApplicationSignal InitSignal()\r
1229         {\r
1230             ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_InitSignal(swigCPtr), false);\r
1231             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1232             return ret;\r
1233         }\r
1234 \r
1235         internal ApplicationSignal TerminateSignal()\r
1236         {\r
1237             ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_TerminateSignal(swigCPtr), false);\r
1238             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1239             return ret;\r
1240         }\r
1241 \r
1242         internal ApplicationSignal PauseSignal()\r
1243         {\r
1244             ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_PauseSignal(swigCPtr), false);\r
1245             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1246             return ret;\r
1247         }\r
1248 \r
1249         internal ApplicationSignal ResumeSignal()\r
1250         {\r
1251             ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_ResumeSignal(swigCPtr), false);\r
1252             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1253             return ret;\r
1254         }\r
1255 \r
1256         internal ApplicationSignal ResetSignal()\r
1257         {\r
1258             ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_ResetSignal(swigCPtr), false);\r
1259             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1260             return ret;\r
1261         }\r
1262 \r
1263         internal ApplicationSignal ResizeSignal()\r
1264         {\r
1265             ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_ResizeSignal(swigCPtr), false);\r
1266             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1267             return ret;\r
1268         }\r
1269 \r
1270         internal ApplicationControlSignal AppControlSignal()\r
1271         {\r
1272             ApplicationControlSignal ret = new ApplicationControlSignal(NDalicPINVOKE.Application_AppControlSignal(swigCPtr), false);\r
1273             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1274             return ret;\r
1275         }\r
1276 \r
1277         internal ApplicationSignal LanguageChangedSignal()\r
1278         {\r
1279             ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_LanguageChangedSignal(swigCPtr), false);\r
1280             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1281             return ret;\r
1282         }\r
1283 \r
1284         internal ApplicationSignal RegionChangedSignal()\r
1285         {\r
1286             ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_RegionChangedSignal(swigCPtr), false);\r
1287             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1288             return ret;\r
1289         }\r
1290 \r
1291         internal ApplicationSignal BatteryLowSignal()\r
1292         {\r
1293             ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_BatteryLowSignal(swigCPtr), false);\r
1294             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1295             return ret;\r
1296         }\r
1297 \r
1298         internal ApplicationSignal MemoryLowSignal()\r
1299         {\r
1300             ApplicationSignal ret = new ApplicationSignal(NDalicPINVOKE.Application_MemoryLowSignal(swigCPtr), false);\r
1301             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();\r
1302             return ret;\r
1303         }\r
1304 \r
1305         public enum WindowMode\r
1306         {\r
1307             Opaque = 0,\r
1308             Transparent = 1\r
1309         }\r
1310 \r
1311     }\r
1312 \r
1313 }\r