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