[NUI]Fix build warnings (#254)
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / WidgetView.cs
1 /*
2  * Copyright(c) 2017 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *
16  */
17 // This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts
18 //------------------------------------------------------------------------------
19 // <auto-generated />
20 //
21 // This file was automatically generated by SWIG (http://www.swig.org).
22 // Version 3.0.12
23 //
24 // Do not make changes to this file unless you know what you are doing--modify
25 // the SWIG interface file instead.
26 //------------------------------------------------------------------------------
27
28 namespace Tizen.NUI
29 {
30     using System;
31     using System.Runtime.InteropServices;
32     using Tizen.NUI.BaseComponents;
33
34     /// <summary>
35     /// The WidgetView is a class for displaying the widget image and controlling the widget.<br />
36     /// Input events that the WidgetView gets are delivered to the widget.
37     /// </summary>
38     /// <since_tizen> 3 </since_tizen>
39     public class WidgetView : View
40     {
41         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
42
43         internal WidgetView(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicManualPINVOKE.WidgetView_SWIGUpcast(cPtr), cMemoryOwn)
44         {
45             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
46         }
47
48         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(WidgetView obj)
49         {
50             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
51         }
52
53         /// <summary>
54         /// To make the Button instance be disposed.
55         /// </summary>
56         /// <since_tizen> 3 </since_tizen>
57         protected override void Dispose(DisposeTypes type)
58         {
59             if (disposed)
60             {
61                 return;
62             }
63
64             if (type == DisposeTypes.Explicit)
65             {
66                 //Called by User
67                 //Release your own managed resources here.
68                 //You should release all of your own disposable objects here.
69
70             }
71
72             //Release your own unmanaged resources here.
73             //You should not access any managed member here except static instance.
74             //because the execution order of Finalizes is non-deterministic.
75
76             if (_widgetAddedEventCallback != null)
77             {
78                 this.WidgetAddedSignal().Disconnect(_widgetAddedEventCallback);
79             }
80
81             if (_widgetContentUpdatedEventCallback != null)
82             {
83                 this.WidgetContentUpdatedSignal().Disconnect(_widgetContentUpdatedEventCallback);
84             }
85
86             if (_widgetCreationAbortedEventCallback != null)
87             {
88                 this.WidgetCreationAbortedSignal().Disconnect(_widgetCreationAbortedEventCallback);
89             }
90
91             if (_widgetDeletedEventCallback != null)
92             {
93                 this.WidgetDeletedSignal().Disconnect(_widgetDeletedEventCallback);
94             }
95
96             if (_widgetFaultedEventCallback != null)
97             {
98                 this.WidgetFaultedSignal().Disconnect(_widgetFaultedEventCallback);
99             }
100
101             if (_widgetUpdatePeriodChangedEventCallback != null)
102             {
103                 this.WidgetUpdatePeriodChangedSignal().Disconnect(_widgetUpdatePeriodChangedEventCallback);
104             }
105
106             if (swigCPtr.Handle != global::System.IntPtr.Zero)
107             {
108                 if (swigCMemOwn)
109                 {
110                     swigCMemOwn = false;
111                     NDalicManualPINVOKE.delete_WidgetView(swigCPtr);
112                 }
113                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
114             }
115             base.Dispose(type);
116         }
117
118         internal new class Property
119         {
120             internal static readonly int WIDGET_ID = NDalicManualPINVOKE.WidgetView_Property_WIDGET_ID_get();
121             internal static readonly int INSTANCE_ID = NDalicManualPINVOKE.WidgetView_Property_INSTANCE_ID_get();
122             internal static readonly int CONTENT_INFO = NDalicManualPINVOKE.WidgetView_Property_CONTENT_INFO_get();
123             internal static readonly int TITLE = NDalicManualPINVOKE.WidgetView_Property_TITLE_get();
124             internal static readonly int UPDATE_PERIOD = NDalicManualPINVOKE.WidgetView_Property_UPDATE_PERIOD_get();
125             internal static readonly int PREVIEW = NDalicManualPINVOKE.WidgetView_Property_PREVIEW_get();
126             internal static readonly int LOADING_TEXT = NDalicManualPINVOKE.WidgetView_Property_LOADING_TEXT_get();
127             internal static readonly int WIDGET_STATE_FAULTED = NDalicManualPINVOKE.WidgetView_Property_WIDGET_STATE_FAULTED_get();
128             internal static readonly int PERMANENT_DELETE = NDalicManualPINVOKE.WidgetView_Property_PERMANENT_DELETE_get();
129             internal static readonly int RETRY_TEXT = NDalicManualPINVOKE.WidgetView_Property_RETRY_TEXT_get();
130             internal static readonly int EFFECT = NDalicManualPINVOKE.WidgetView_Property_EFFECT_get();
131         }
132
133         /// <summary>
134         /// Creates a new WidgetView.
135         /// </summary>
136         /// <since_tizen> 3 </since_tizen>
137         public WidgetView(string widgetId, string contentInfo, int width, int height, float updatePeriod) : this(NDalicManualPINVOKE.WidgetView_New(widgetId, contentInfo, width, height, updatePeriod), true)
138         {
139             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
140
141         }
142
143         internal static WidgetView DownCast(BaseHandle handle)
144         {
145             WidgetView ret = new WidgetView(NDalicManualPINVOKE.WidgetView_DownCast(BaseHandle.getCPtr(handle)), true);
146             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
147             return ret;
148         }
149
150         internal WidgetView(WidgetView handle) : this(NDalicManualPINVOKE.new_WidgetView__SWIG_1(WidgetView.getCPtr(handle)), true)
151         {
152             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
153         }
154
155         internal WidgetView Assign(WidgetView handle)
156         {
157             WidgetView ret = new WidgetView(NDalicManualPINVOKE.WidgetView_Assign(swigCPtr, WidgetView.getCPtr(handle)), false);
158             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
159             return ret;
160         }
161
162         internal static WidgetView GetWidgetViewFromPtr(global::System.IntPtr cPtr)
163         {
164             WidgetView ret = new WidgetView(cPtr, false);
165             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
166             return ret;
167         }
168
169         /// <summary>
170         /// Event arguments of the widget view.
171         /// </summary>
172         /// <since_tizen> 3 </since_tizen>
173         public class WidgetViewEventArgs : EventArgs
174         {
175             private WidgetView _widgetView;
176
177             /// <summary>
178             /// The widet view.
179             /// </summary>
180             /// <since_tizen> 3 </since_tizen>
181             public WidgetView WidgetView
182             {
183                 get
184                 {
185                     return _widgetView;
186                 }
187                 set
188                 {
189                     _widgetView = value;
190                 }
191             }
192         }
193
194         private EventHandler<WidgetViewEventArgs> _widgetAddedEventHandler;
195         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
196         private delegate void WidgetAddedEventCallbackType(IntPtr data);
197         private WidgetAddedEventCallbackType _widgetAddedEventCallback;
198
199         /// <summary>
200         /// An event for the ResourceReady signal which can be used to subscribe or unsubscribe the event handler.<br />
201         /// This signal is emitted after all resources required by a control are loaded and ready.<br />
202         /// Most resources are only loaded when the control is placed on the stage.<br />
203         /// </summary>
204         /// <since_tizen> 3 </since_tizen>
205         public event EventHandler<WidgetViewEventArgs> WidgetAdded
206         {
207             add
208             {
209                 if (_widgetAddedEventHandler == null)
210                 {
211                     _widgetAddedEventCallback = OnWidgetAdded;
212                     WidgetAddedSignal().Connect(_widgetAddedEventCallback);
213                 }
214
215                 _widgetAddedEventHandler += value;
216             }
217
218             remove
219             {
220                 _widgetAddedEventHandler -= value;
221
222                 if (_widgetAddedEventHandler == null && WidgetAddedSignal().Empty() == false)
223                 {
224                     WidgetAddedSignal().Disconnect(_widgetAddedEventCallback);
225                 }
226             }
227         }
228
229         // Callback for WidgetView WidgetAdded signal
230         private void OnWidgetAdded(IntPtr data)
231         {
232             WidgetViewEventArgs e = new WidgetViewEventArgs();
233             if(data != null)
234             {
235                 e.WidgetView = WidgetView.GetWidgetViewFromPtr(data);
236             }
237
238             if (_widgetAddedEventHandler != null)
239             {
240                 _widgetAddedEventHandler(this, e);
241             }
242         }
243
244         private EventHandler<WidgetViewEventArgs> _widgetDeletedEventHandler;
245         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
246         private delegate void WidgetDeletedEventCallbackType(IntPtr data);
247         private WidgetDeletedEventCallbackType _widgetDeletedEventCallback;
248
249         /// <summary>
250         /// An event for the ResourceReady signal which can be used to subscribe or unsubscribe the event handler.<br />
251         /// This signal is emitted after all resources required by a control are loaded and ready.<br />
252         /// Most resources are only loaded when the control is placed on the stage.<br />
253         /// </summary>
254         /// <since_tizen> 3 </since_tizen>
255         public event EventHandler<WidgetViewEventArgs> WidgetDeleted
256         {
257             add
258             {
259                 if (_widgetDeletedEventHandler == null)
260                 {
261                     _widgetDeletedEventCallback = OnWidgetDeleted;
262                     WidgetDeletedSignal().Connect(_widgetDeletedEventCallback);
263                 }
264
265                 _widgetDeletedEventHandler += value;
266             }
267
268             remove
269             {
270                 _widgetDeletedEventHandler -= value;
271
272                 if (_widgetDeletedEventHandler == null && WidgetDeletedSignal().Empty() == false)
273                 {
274                     WidgetDeletedSignal().Disconnect(_widgetDeletedEventCallback);
275                 }
276             }
277         }
278
279         // Callback for WidgetView WidgetDeleted signal
280         private void OnWidgetDeleted(IntPtr data)
281         {
282             WidgetViewEventArgs e = new WidgetViewEventArgs();
283             if(data != null)
284             {
285                 e.WidgetView = WidgetView.GetWidgetViewFromPtr(data);
286             }
287
288             if (_widgetDeletedEventHandler != null)
289             {
290                 _widgetDeletedEventHandler(this, e);
291             }
292         }
293
294         private EventHandler<WidgetViewEventArgs> _widgetCreationAbortedEventHandler;
295         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
296         private delegate void WidgetCreationAbortedEventCallbackType(IntPtr data);
297         private WidgetCreationAbortedEventCallbackType _widgetCreationAbortedEventCallback;
298
299         /// <summary>
300         /// An event for the ResourceReady signal which can be used to subscribe or unsubscribe the event handler.<br />
301         /// This signal is emitted after all resources required by a control are loaded and ready.<br />
302         /// Most resources are only loaded when the control is placed on the stage.<br />
303         /// </summary>
304         /// <since_tizen> 3 </since_tizen>
305         public event EventHandler<WidgetViewEventArgs> WidgetCreationAborted
306         {
307             add
308             {
309                 if (_widgetCreationAbortedEventHandler == null)
310                 {
311                     _widgetCreationAbortedEventCallback = OnWidgetCreationAborted;
312                     WidgetCreationAbortedSignal().Connect(_widgetCreationAbortedEventCallback);
313                 }
314
315                 _widgetCreationAbortedEventHandler += value;
316             }
317
318             remove
319             {
320                 _widgetCreationAbortedEventHandler -= value;
321
322                 if (_widgetCreationAbortedEventHandler == null && WidgetCreationAbortedSignal().Empty() == false)
323                 {
324                     WidgetCreationAbortedSignal().Disconnect(_widgetCreationAbortedEventCallback);
325                 }
326             }
327         }
328
329         // Callback for WidgetView WidgetCreationAborted signal
330         private void OnWidgetCreationAborted(IntPtr data)
331         {
332             WidgetViewEventArgs e = new WidgetViewEventArgs();
333             if(data != null)
334             {
335                 e.WidgetView = WidgetView.GetWidgetViewFromPtr(data);
336             }
337
338             if (_widgetCreationAbortedEventHandler != null)
339             {
340                 _widgetCreationAbortedEventHandler(this, e);
341             }
342         }
343
344         private EventHandler<WidgetViewEventArgs> _widgetContentUpdatedEventHandler;
345         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
346         private delegate void WidgetContentUpdatedEventCallbackType(IntPtr data);
347         private WidgetContentUpdatedEventCallbackType _widgetContentUpdatedEventCallback;
348
349         /// <summary>
350         /// An event for the ResourceReady signal which can be used to subscribe or unsubscribe the event handler.<br />
351         /// This signal is emitted after all resources required by a control are loaded and ready.<br />
352         /// Most resources are only loaded when the control is placed on the stage.<br />
353         /// </summary>
354         /// <since_tizen> 3 </since_tizen>
355         public event EventHandler<WidgetViewEventArgs> WidgetContentUpdated
356         {
357             add
358             {
359                 if (_widgetContentUpdatedEventHandler == null)
360                 {
361                     _widgetContentUpdatedEventCallback = OnWidgetContentUpdated;
362                     WidgetContentUpdatedSignal().Connect(_widgetContentUpdatedEventCallback);
363                 }
364
365                 _widgetContentUpdatedEventHandler += value;
366             }
367
368             remove
369             {
370                 _widgetContentUpdatedEventHandler -= value;
371
372                 if (_widgetContentUpdatedEventHandler == null && WidgetContentUpdatedSignal().Empty() == false)
373                 {
374                     WidgetContentUpdatedSignal().Disconnect(_widgetContentUpdatedEventCallback);
375                 }
376             }
377         }
378
379         // Callback for WidgetView WidgetContentUpdated signal
380         private void OnWidgetContentUpdated(IntPtr data)
381         {
382             WidgetViewEventArgs e = new WidgetViewEventArgs();
383             if(data != null)
384             {
385                 e.WidgetView = WidgetView.GetWidgetViewFromPtr(data);
386             }
387
388             if (_widgetContentUpdatedEventHandler != null)
389             {
390                 _widgetContentUpdatedEventHandler(this, e);
391             }
392         }
393
394         private EventHandler<WidgetViewEventArgs> _widgetUpdatePeriodChangedEventHandler;
395         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
396         private delegate void WidgetUpdatePeriodChangedEventCallbackType(IntPtr data);
397         private WidgetUpdatePeriodChangedEventCallbackType _widgetUpdatePeriodChangedEventCallback;
398
399         /// <summary>
400         /// An event for the ResourceReady signal which can be used to subscribe or unsubscribe the event handler.<br />
401         /// This signal is emitted after all resources required by a control are loaded and ready.<br />
402         /// Most resources are only loaded when the control is placed on the stage.<br />
403         /// </summary>
404         /// <since_tizen> 3 </since_tizen>
405         public event EventHandler<WidgetViewEventArgs> WidgetUpdatePeriodChanged
406         {
407             add
408             {
409                 if (_widgetUpdatePeriodChangedEventHandler == null)
410                 {
411                     _widgetUpdatePeriodChangedEventCallback = OnWidgetUpdatePeriodChanged;
412                     WidgetUpdatePeriodChangedSignal().Connect(_widgetUpdatePeriodChangedEventCallback);
413                 }
414
415                 _widgetUpdatePeriodChangedEventHandler += value;
416             }
417
418             remove
419             {
420                 _widgetUpdatePeriodChangedEventHandler -= value;
421
422                 if (_widgetUpdatePeriodChangedEventHandler == null && WidgetUpdatePeriodChangedSignal().Empty() == false)
423                 {
424                     WidgetUpdatePeriodChangedSignal().Disconnect(_widgetUpdatePeriodChangedEventCallback);
425                 }
426             }
427         }
428
429         // Callback for WidgetView WidgetUpdatePeriodChanged signal
430         private void OnWidgetUpdatePeriodChanged(IntPtr data)
431         {
432             WidgetViewEventArgs e = new WidgetViewEventArgs();
433             if(data != null)
434             {
435                 e.WidgetView = WidgetView.GetWidgetViewFromPtr(data);
436             }
437
438             if (_widgetUpdatePeriodChangedEventHandler != null)
439             {
440                 _widgetUpdatePeriodChangedEventHandler(this, e);
441             }
442         }
443
444         private EventHandler<WidgetViewEventArgs> _widgetFaultedEventHandler;
445         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
446         private delegate void WidgetFaultedEventCallbackType(IntPtr data);
447         private WidgetFaultedEventCallbackType _widgetFaultedEventCallback;
448
449         /// <summary>
450         /// An event for the ResourceReady signal which can be used to subscribe or unsubscribe the event handler.<br />
451         /// This signal is emitted after all resources required by a control are loaded and ready.<br />
452         /// Most resources are only loaded when the control is placed on the stage.<br />
453         /// </summary>
454         /// <since_tizen> 3 </since_tizen>
455         public event EventHandler<WidgetViewEventArgs> WidgetFaulted
456         {
457             add
458             {
459                 if (_widgetFaultedEventHandler == null)
460                 {
461                     _widgetFaultedEventCallback = OnWidgetFaulted;
462                     WidgetFaultedSignal().Connect(_widgetFaultedEventCallback);
463                 }
464
465                 _widgetFaultedEventHandler += value;
466             }
467
468             remove
469             {
470                 _widgetFaultedEventHandler -= value;
471
472                 if (_widgetFaultedEventHandler == null && WidgetFaultedSignal().Empty() == false)
473                 {
474                     WidgetFaultedSignal().Disconnect(_widgetFaultedEventCallback);
475                 }
476             }
477         }
478
479         // Callback for WidgetView WidgetFaulted signal
480         private void OnWidgetFaulted(IntPtr data)
481         {
482             WidgetViewEventArgs e = new WidgetViewEventArgs();
483             if(data != null)
484             {
485                 e.WidgetView = WidgetView.GetWidgetViewFromPtr(data);
486             }
487
488             if (_widgetFaultedEventHandler != null)
489             {
490                 _widgetFaultedEventHandler(this, e);
491             }
492         }
493
494         /// <summary>
495         /// Pauses a given widget.
496         /// </summary>
497         /// <returns>True on success, false otherwise.</returns>
498         /// <since_tizen> 3 </since_tizen>
499         public bool PauseWidget()
500         {
501             bool ret = NDalicManualPINVOKE.WidgetView_PauseWidget(swigCPtr);
502             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
503             return ret;
504         }
505
506         /// <summary>
507         /// Resumes a given widget.
508         /// </summary>
509         /// <returns>True on success, false otherwise.</returns>
510         /// <since_tizen> 3 </since_tizen>
511         public bool ResumeWidget()
512         {
513             bool ret = NDalicManualPINVOKE.WidgetView_ResumeWidget(swigCPtr);
514             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
515             return ret;
516         }
517
518         /// <summary>
519         /// Cancels the touch event procedure.
520         /// If you call this function after feed the touch down event, the widget will get ON_HOLD events.
521        ///  If a widget gets ON_HOLD event, it will not do anything even if you feed touch up event.
522         /// </summary>
523         /// <returns>True on success, false otherwise.</returns>
524         /// <since_tizen> 3 </since_tizen>
525         public bool CancelTouchEvent()
526         {
527             bool ret = NDalicManualPINVOKE.WidgetView_CancelTouchEvent(swigCPtr);
528             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
529             return ret;
530         }
531
532         /// <summary>
533         /// Activates a widget in the faulted state.
534         /// A widget in faulted state must be activated before adding the widget.
535         /// </summary>
536         /// <since_tizen> 3 </since_tizen>
537         public void ActivateFaultedWidget()
538         {
539             NDalicManualPINVOKE.WidgetView_ActivateFaultedWidget(swigCPtr);
540             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
541         }
542
543         /// <summary>
544         /// Terminate a widget instance.
545         /// </summary>
546         /// <returns>True on success, false otherwise</returns>
547         /// <since_tizen> 4 </since_tizen>
548         public bool TerminateWidget()
549         {
550             bool ret = NDalicManualPINVOKE.WidgetView_TerminateWidget(swigCPtr);
551             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
552             return ret;
553         }
554
555         internal WidgetViewSignal WidgetAddedSignal()
556         {
557             WidgetViewSignal ret = new WidgetViewSignal(NDalicManualPINVOKE.WidgetView_WidgetAddedSignal(swigCPtr), false);
558             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
559             return ret;
560         }
561
562         internal WidgetViewSignal WidgetDeletedSignal()
563         {
564             WidgetViewSignal ret = new WidgetViewSignal(NDalicManualPINVOKE.WidgetView_WidgetDeletedSignal(swigCPtr), false);
565             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
566             return ret;
567         }
568
569         internal WidgetViewSignal WidgetCreationAbortedSignal()
570         {
571             WidgetViewSignal ret = new WidgetViewSignal(NDalicManualPINVOKE.WidgetView_WidgetCreationAbortedSignal(swigCPtr), false);
572             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
573             return ret;
574         }
575
576         internal WidgetViewSignal WidgetContentUpdatedSignal()
577         {
578             WidgetViewSignal ret = new WidgetViewSignal(NDalicManualPINVOKE.WidgetView_WidgetContentUpdatedSignal(swigCPtr), false);
579             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
580             return ret;
581         }
582
583         internal WidgetViewSignal WidgetUpdatePeriodChangedSignal()
584         {
585             WidgetViewSignal ret = new WidgetViewSignal(NDalicManualPINVOKE.WidgetView_WidgetUpdatePeriodChangedSignal(swigCPtr), false);
586             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
587             return ret;
588         }
589
590         internal WidgetViewSignal WidgetFaultedSignal()
591         {
592             WidgetViewSignal ret = new WidgetViewSignal(NDalicManualPINVOKE.WidgetView_WidgetFaultedSignal(swigCPtr), false);
593             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
594             return ret;
595         }
596
597         /// <summary>
598         /// Gets the ID of the widget.
599         /// </summary>
600         /// <since_tizen> 3 </since_tizen>
601         public string WidgetID
602         {
603             get
604             {
605                 string temp;
606                 GetProperty(WidgetView.Property.WIDGET_ID).Get(out temp);
607                 return temp;
608             }
609         }
610
611         /// <summary>
612         /// Gets the ID of the instance.
613         /// </summary>
614         /// <since_tizen> 3 </since_tizen>
615         public string InstanceID
616         {
617             get
618             {
619                 string temp;
620                 GetProperty(WidgetView.Property.INSTANCE_ID).Get(out temp);
621                 return temp;
622             }
623         }
624
625         /// <summary>
626         /// Gets the content info.
627         /// </summary>
628         /// <since_tizen> 3 </since_tizen>
629         public string ContentInfo
630         {
631             get
632             {
633                 string temp;
634                 GetProperty(WidgetView.Property.CONTENT_INFO).Get(out temp);
635                 return temp;
636             }
637         }
638
639         /// <summary>
640         /// Gets the title.
641         /// </summary>
642         /// <since_tizen> 3 </since_tizen>
643         public string Title
644         {
645             get
646             {
647                 string temp;
648                 GetProperty(WidgetView.Property.TITLE).Get(out temp);
649                 return temp;
650             }
651         }
652
653         /// <summary>
654         /// Gets the update peroid.
655         /// </summary>
656         /// <since_tizen> 3 </since_tizen>
657         public float UpdatePeriod
658         {
659             get
660             {
661                 float temp;
662                 GetProperty(WidgetView.Property.UPDATE_PERIOD).Get(out temp);
663                 return temp;
664             }
665         }
666
667         /// <summary>
668         /// Gets or sets the preview.
669         /// </summary>
670         /// <since_tizen> 3 </since_tizen>
671         public bool Preview
672         {
673             get
674             {
675                 bool temp;
676                 GetProperty(WidgetView.Property.PREVIEW).Get(out temp);
677                 return temp;
678             }
679             set
680             {
681                 SetProperty(WidgetView.Property.PREVIEW, new Tizen.NUI.PropertyValue(value));
682             }
683         }
684
685         /// <summary>
686         /// Gets or sets the loading text.
687         /// </summary>
688         /// <since_tizen> 3 </since_tizen>
689         public bool LoadingText
690         {
691             get
692             {
693                 bool temp;
694                 GetProperty(WidgetView.Property.LOADING_TEXT).Get(out temp);
695                 return temp;
696             }
697             set
698             {
699                 SetProperty(WidgetView.Property.LOADING_TEXT, new Tizen.NUI.PropertyValue(value));
700             }
701         }
702
703         /// <summary>
704         /// Gets or sets whether the widget state is faulted or not.
705         /// </summary>
706         /// <since_tizen> 3 </since_tizen>
707         public bool WidgetStateFaulted
708         {
709             get
710             {
711                 bool temp;
712                 GetProperty(WidgetView.Property.WIDGET_STATE_FAULTED).Get(out temp);
713                 return temp;
714             }
715             set
716             {
717                 SetProperty(WidgetView.Property.WIDGET_STATE_FAULTED, new Tizen.NUI.PropertyValue(value));
718             }
719         }
720
721         /// <summary>
722         /// Gets or sets whether the widget is to delete permanently or not.
723         /// </summary>
724         /// <since_tizen> 3 </since_tizen>
725         public bool PermanentDelete
726         {
727             get
728             {
729                 bool temp;
730                 GetProperty(WidgetView.Property.PERMANENT_DELETE).Get(out temp);
731                 return temp;
732             }
733             set
734             {
735                 SetProperty(WidgetView.Property.PERMANENT_DELETE, new Tizen.NUI.PropertyValue(value));
736             }
737         }
738
739         /// <summary>
740         /// Gets or sets retry text.
741         /// </summary>
742         /// <since_tizen> 4 </since_tizen>
743         public PropertyMap RetryText
744         {
745             get
746             {
747                 PropertyMap temp = new PropertyMap();
748                 GetProperty(WidgetView.Property.RETRY_TEXT).Get(temp);
749                 return temp;
750             }
751             set
752             {
753                 SetProperty(WidgetView.Property.RETRY_TEXT, new Tizen.NUI.PropertyValue(value));
754             }
755         }
756
757         /// <summary>
758         /// Gets or sets effect.
759         /// </summary>
760         /// <since_tizen> 4 </since_tizen>
761         public PropertyMap Effect
762         {
763             get
764             {
765                 PropertyMap temp = new PropertyMap();
766                 GetProperty(WidgetView.Property.EFFECT).Get(temp);
767                 return temp;
768             }
769             set
770             {
771                 SetProperty(WidgetView.Property.EFFECT, new Tizen.NUI.PropertyValue(value));
772             }
773         }
774
775     }
776
777 }