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