remove DOT_NET_CORE define, clean up debug log
[platform/core/csapi/tizenfx.git] / src / Tizen.NUI / src / public / UIComponents / Popup.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.9
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.UIComponents
28 {
29
30     using System;
31     using System.Runtime.InteropServices;
32     using Tizen.NUI.BaseComponents;
33
34     /// <summary>
35     /// The Popup widget provides a configurable pop-up dialog with built-in layout of three main fields.
36     /// </summary>
37     public class Popup : View
38     {
39         private global::System.Runtime.InteropServices.HandleRef swigCPtr;
40
41         internal Popup(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Popup_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(Popup obj)
47         {
48             return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
49         }
50
51
52         protected override void Dispose(DisposeTypes type)
53         {
54             if (disposed)
55             {
56                 return;
57             }
58
59             if (type == DisposeTypes.Explicit)
60             {
61                 //Called by User
62                 //Release your own managed resources here.
63                 //You should release all of your own disposable objects here.
64
65             }
66
67             //Release your own unmanaged resources here.
68             //You should not access any managed member here except static instance.
69             //because the execution order of Finalizes is non-deterministic.
70
71             if (swigCPtr.Handle != global::System.IntPtr.Zero)
72             {
73                 if (swigCMemOwn)
74                 {
75                     swigCMemOwn = false;
76                     NDalicPINVOKE.delete_Popup(swigCPtr);
77                 }
78                 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
79             }
80
81             base.Dispose(type);
82         }
83
84
85
86
87         /// <summary>
88         /// Event arguments that passed via OutsideTouchedEvent
89         /// </summary>
90         public class TouchedOutsideEventArgs : EventArgs
91         {
92         }
93
94         /// <summary>
95         /// Event arguments that passed via ShowingEventArgs
96         /// </summary>
97         public class ShowingEventArgs : EventArgs
98         {
99         }
100
101         /// <summary>
102         /// Event arguments that passed via ShownEventArgs
103         /// </summary>
104         public class ShownEventArgs : EventArgs
105         {
106         }
107
108         /// <summary>
109         /// Event arguments that passed via HidingEventArgs
110         /// </summary>
111         public class HidingEventArgs : EventArgs
112         {
113         }
114
115         /// <summary>
116         /// Event arguments that passed via HiddenEventArgs
117         /// </summary>
118         public class HiddenEventArgs : EventArgs
119         {
120         }
121
122         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
123         private delegate void OutsideTouchedEventCallbackDelegate();
124         private EventHandler<TouchedOutsideEventArgs> _popUpOutsideTouchedEventHandler;
125         private OutsideTouchedEventCallbackDelegate _popUpOutsideTouchedEventCallbackDelegate;
126
127         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
128         private delegate void ShowingEventCallbackDelegate();
129         private EventHandler<ShowingEventArgs> _popUpShowingEventHandler;
130         private ShowingEventCallbackDelegate _popUpShowingEventCallbackDelegate;
131
132         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
133         private delegate void ShownEventCallbackDelegate();
134         private EventHandler<ShownEventArgs> _popUpShownEventHandler;
135         private ShownEventCallbackDelegate _popUpShownEventCallbackDelegate;
136
137         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
138         private delegate void HidingEventCallbackDelegate();
139         private EventHandler<HidingEventArgs> _popUpHidingEventHandler;
140         private HidingEventCallbackDelegate _popUpHidingEventCallbackDelegate;
141
142         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
143         private delegate void HiddenEventCallbackDelegate();
144         private EventHandler<HiddenEventArgs> _popUpHiddenEventHandler;
145         private HiddenEventCallbackDelegate _popUpHiddenEventCallbackDelegate;
146
147         /// <summary>
148         /// Event is sent when user has touched outside of the Dialog.
149         /// </summary>
150         public event EventHandler<TouchedOutsideEventArgs> TouchedOutside
151         {
152             add
153             {
154                 if (_popUpOutsideTouchedEventHandler == null)
155                 {
156                     _popUpOutsideTouchedEventCallbackDelegate = (OnOutsideTouched);
157                     OutsideTouchedSignal().Connect(_popUpOutsideTouchedEventCallbackDelegate);
158                 }
159                 _popUpOutsideTouchedEventHandler += value;
160             }
161             remove
162             {
163                 _popUpOutsideTouchedEventHandler -= value;
164                 if (_popUpOutsideTouchedEventHandler == null && OutsideTouchedSignal().Empty() == false)
165                 {
166                     this.OutsideTouchedSignal().Disconnect(_popUpOutsideTouchedEventCallbackDelegate);
167                 }
168             }
169         }
170
171         // Callback for Popup OutsideTouchedSignal
172         private void OnOutsideTouched()
173         {
174             TouchedOutsideEventArgs e = new TouchedOutsideEventArgs();
175
176             if (_popUpOutsideTouchedEventHandler != null)
177             {
178                 //here we send all data to user event handlers
179                 _popUpOutsideTouchedEventHandler(this, e);
180             }
181         }
182
183         /// <summary>
184         /// Event is sent when the Popup is starting to be shown.
185         /// </summary>
186         public event EventHandler<ShowingEventArgs> Showing
187         {
188             add
189             {
190                 if (_popUpShowingEventHandler == null)
191                 {
192                     _popUpShowingEventCallbackDelegate = (OnShowing);
193                     ShowingSignal().Connect(_popUpShowingEventCallbackDelegate);
194                 }
195                 _popUpShowingEventHandler += value;
196             }
197             remove
198             {
199                 _popUpShowingEventHandler -= value;
200                 if (_popUpShowingEventHandler == null && ShowingSignal().Empty() == false)
201                 {
202                     ShowingSignal().Disconnect(_popUpShowingEventCallbackDelegate);
203                 }
204             }
205         }
206
207         // Callback for ShowingSignal
208         private void OnShowing()
209         {
210             ShowingEventArgs e = new ShowingEventArgs();
211
212             if (_popUpShowingEventHandler != null)
213             {
214                 //here we send all data to user event handlers
215                 _popUpShowingEventHandler(this, e);
216             }
217         }
218
219
220         /// <summary>
221         /// Event is sent when the Popup has been fully displayed.
222         /// </summary>
223         public event EventHandler<ShownEventArgs> Shown
224         {
225             add
226             {
227                 if (_popUpShownEventHandler == null)
228                 {
229                     _popUpShownEventCallbackDelegate = (OnShown);
230                     ShownSignal().Connect(_popUpShownEventCallbackDelegate);
231                 }
232                 _popUpShownEventHandler += value;
233             }
234             remove
235             {
236                 _popUpShownEventHandler -= value;
237                 if (_popUpShownEventHandler == null && ShownSignal().Empty() == false)
238                 {
239                     ShownSignal().Disconnect(_popUpShownEventCallbackDelegate);
240                 }
241             }
242         }
243
244         // Callback for ShownSignal
245         private void OnShown()
246         {
247             ShownEventArgs e = new ShownEventArgs();
248
249             if (_popUpShownEventHandler != null)
250             {
251                 //here we send all data to user event handlers
252                 _popUpShownEventHandler(this, e);
253             }
254         }
255
256         /// <summary>
257         /// Event is sent when the Popup is starting to be hidden.
258         /// </summary>
259         public event EventHandler<HidingEventArgs> Hiding
260         {
261             add
262             {
263                 if (_popUpHidingEventHandler == null)
264                 {
265                     _popUpHidingEventCallbackDelegate = (OnHiding);
266                     HidingSignal().Connect(_popUpHidingEventCallbackDelegate);
267                 }
268                 _popUpHidingEventHandler += value;
269             }
270             remove
271             {
272                 _popUpHidingEventHandler -= value;
273                 if (_popUpHidingEventHandler == null && HidingSignal().Empty() == false)
274                 {
275                     HidingSignal().Disconnect(_popUpHidingEventCallbackDelegate);
276                 }
277             }
278         }
279
280         // Callback for HidingSignal
281         private void OnHiding()
282         {
283             HidingEventArgs e = new HidingEventArgs();
284
285             if (_popUpHidingEventHandler != null)
286             {
287                 //here we send all data to user event handlers
288                 _popUpHidingEventHandler(this, e);
289             }
290         }
291
292         /// <summary>
293         /// Event is sent when the Popup has been completely hidden.
294         /// </summary>
295         public event EventHandler<HiddenEventArgs> Hidden
296         {
297             add
298             {
299                 if (_popUpHiddenEventHandler == null)
300                 {
301                     _popUpHiddenEventCallbackDelegate = (OnHidden);
302                     HiddenSignal().Connect(_popUpHiddenEventCallbackDelegate);
303                 }
304                 _popUpHiddenEventHandler += value;
305             }
306             remove
307             {
308                 _popUpHiddenEventHandler -= value;
309                 if (_popUpHiddenEventHandler == null && HiddenSignal().Empty() == false)
310                 {
311                     HiddenSignal().Disconnect(_popUpHiddenEventCallbackDelegate);
312                 }
313             }
314         }
315
316         // Callback for HiddenSignal
317         private void OnHidden()
318         {
319             HiddenEventArgs e = new HiddenEventArgs();
320
321             if (_popUpHiddenEventHandler != null)
322             {
323                 //here we send all data to user event handlers
324                 _popUpHiddenEventHandler(this, e);
325             }
326         }
327
328         internal class Property
329         {
330             internal static readonly int TITLE = NDalicPINVOKE.Popup_Property_TITLE_get();
331             internal static readonly int CONTENT = NDalicPINVOKE.Popup_Property_CONTENT_get();
332             internal static readonly int FOOTER = NDalicPINVOKE.Popup_Property_FOOTER_get();
333             internal static readonly int DISPLAY_STATE = NDalicPINVOKE.Popup_Property_DISPLAY_STATE_get();
334             internal static readonly int TOUCH_TRANSPARENT = NDalicPINVOKE.Popup_Property_TOUCH_TRANSPARENT_get();
335             internal static readonly int TAIL_VISIBILITY = NDalicPINVOKE.Popup_Property_TAIL_VISIBILITY_get();
336             internal static readonly int TAIL_POSITION = NDalicPINVOKE.Popup_Property_TAIL_POSITION_get();
337             internal static readonly int CONTEXTUAL_MODE = NDalicPINVOKE.Popup_Property_CONTEXTUAL_MODE_get();
338             internal static readonly int ANIMATION_DURATION = NDalicPINVOKE.Popup_Property_ANIMATION_DURATION_get();
339             internal static readonly int ANIMATION_MODE = NDalicPINVOKE.Popup_Property_ANIMATION_MODE_get();
340             internal static readonly int ENTRY_ANIMATION = NDalicPINVOKE.Popup_Property_ENTRY_ANIMATION_get();
341             internal static readonly int EXIT_ANIMATION = NDalicPINVOKE.Popup_Property_EXIT_ANIMATION_get();
342             internal static readonly int AUTO_HIDE_DELAY = NDalicPINVOKE.Popup_Property_AUTO_HIDE_DELAY_get();
343             internal static readonly int BACKING_ENABLED = NDalicPINVOKE.Popup_Property_BACKING_ENABLED_get();
344             internal static readonly int BACKING_COLOR = NDalicPINVOKE.Popup_Property_BACKING_COLOR_get();
345             internal static readonly int POPUP_BACKGROUND_IMAGE = NDalicPINVOKE.Popup_Property_POPUP_BACKGROUND_IMAGE_get();
346             internal static readonly int POPUP_BACKGROUND_BORDER = NDalicPINVOKE.Popup_Property_POPUP_BACKGROUND_BORDER_get();
347             internal static readonly int TAIL_UP_IMAGE = NDalicPINVOKE.Popup_Property_TAIL_UP_IMAGE_get();
348             internal static readonly int TAIL_DOWN_IMAGE = NDalicPINVOKE.Popup_Property_TAIL_DOWN_IMAGE_get();
349             internal static readonly int TAIL_LEFT_IMAGE = NDalicPINVOKE.Popup_Property_TAIL_LEFT_IMAGE_get();
350             internal static readonly int TAIL_RIGHT_IMAGE = NDalicPINVOKE.Popup_Property_TAIL_RIGHT_IMAGE_get();
351         }
352
353         /// <summary>
354         /// Create the Popup.
355         /// </summary>
356         public Popup() : this(NDalicPINVOKE.Popup_New(), true)
357         {
358             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
359
360         }
361
362         /// <summary>
363         /// Sets a title for this Popup.
364         /// </summary>
365         /// <param name="titleView">The actor to set a title</param>
366         public void SetTitle(View titleView)
367         {
368             NDalicPINVOKE.Popup_SetTitle(swigCPtr, View.getCPtr(titleView));
369             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
370         }
371
372         internal View GetTitle()
373         {
374             View ret = new View(NDalicPINVOKE.Popup_GetTitle(swigCPtr), true);
375             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
376             return ret;
377         }
378
379         /// <summary>
380         /// Sets the content actor.
381         /// </summary>
382         /// <param name="content">The actor to use</param>
383         public void SetContent(View content)
384         {
385             NDalicPINVOKE.Popup_SetContent(swigCPtr, View.getCPtr(content));
386             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
387         }
388
389         internal View GetContent()
390         {
391             View ret = new View(NDalicPINVOKE.Popup_GetContent(swigCPtr), true);
392             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
393             return ret;
394         }
395
396         /// <summary>
397         /// Sets the actor to use for a footer in this Popup.
398         /// </summary>
399         /// <param name="footer">The footer actor to be added to this Popup</param>
400         public void SetFooter(View footer)
401         {
402             NDalicPINVOKE.Popup_SetFooter(swigCPtr, View.getCPtr(footer));
403             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
404         }
405
406         internal View GetFooter()
407         {
408             View ret = new View(NDalicPINVOKE.Popup_GetFooter(swigCPtr), true);
409             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
410             return ret;
411         }
412
413         /// <summary>
414         /// Sets the display state of Popup.<br>
415         /// There are 4 total display states.<br>
416         /// Only 2 can be set, but all four can be read for better inspection of the current popup state.<br>
417         /// <br>
418         /// The other two states are getable, but not setable and are there for consistency.<br>
419         /// <br>
420         /// | Value    | Setting the state              | Getting the state              |<br>
421         /// |----------|--------------------------------|--------------------------------|<br>
422         /// | SHOWN    | Show the popup                 | The popup is fully shown       |<br>
423         /// | HIDDEN   | Hide the popup                 | The popup is fully hidden      |<br>
424         /// | SHOWING  |                                | The popup is transitioning in  |<br>
425         /// | HIDING   |                                | The popup is transitioning out |<br>
426         /// <br>
427         /// All 4 state changes cause notifications via 4 respective signals that can be connected to.<br>
428         /// </summary>
429         /// <param name="displayState">The desired display state to change to</param>
430         public void SetDisplayState(Popup.DisplayStateType displayState)
431         {
432             NDalicPINVOKE.Popup_SetDisplayState(swigCPtr, (int)displayState);
433             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
434         }
435
436         internal Popup.DisplayStateType GetDisplayState()
437         {
438             Popup.DisplayStateType ret = (Popup.DisplayStateType)NDalicPINVOKE.Popup_GetDisplayState(swigCPtr);
439             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
440             return ret;
441         }
442
443         internal VoidSignal OutsideTouchedSignal()
444         {
445             VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_OutsideTouchedSignal(swigCPtr), false);
446             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
447             return ret;
448         }
449
450         internal VoidSignal ShowingSignal()
451         {
452             VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_ShowingSignal(swigCPtr), false);
453             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
454             return ret;
455         }
456
457         internal VoidSignal ShownSignal()
458         {
459             VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_ShownSignal(swigCPtr), false);
460             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
461             return ret;
462         }
463
464         internal VoidSignal HidingSignal()
465         {
466             VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_HidingSignal(swigCPtr), false);
467             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
468             return ret;
469         }
470
471         internal VoidSignal HiddenSignal()
472         {
473             VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_HiddenSignal(swigCPtr), false);
474             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
475             return ret;
476         }
477
478         /// <summary>
479         /// The display states of the Popup.
480         /// </summary>
481         public enum DisplayStateType
482         {
483             Showing,
484             Shown,
485             Hiding,
486             Hidden
487         }
488
489         /// <summary>
490         /// The animation mode within popup.<br>
491         /// Choose from a predefined mode or "CUSTOM" to use the ANIMATION_IN and ANIMATION_OUT properties.<br>
492         /// </summary>
493         public enum AnimationModeType
494         {
495             None,
496             Zoom,
497             Fade,
498             Custom
499         }
500
501         /// <summary>
502         /// Types of contextual layout.<br>
503         /// The Popup is positioned adjacent to it's parent in the direction specified by this mode.<br>
504         /// NON_CONTEXTUAL disables any contextual positioning.<br>
505         /// </summary>
506         public enum ContextualModeType
507         {
508             NonContextual,
509             Above,
510             Rright,
511             Below,
512             Left
513         }
514
515         /// <summary>
516         /// Popup title.
517         /// </summary>
518         public PropertyMap Title
519         {
520             get
521             {
522                 PropertyMap temp = new PropertyMap();
523                 GetProperty(Popup.Property.TITLE).Get(temp);
524                 return temp;
525             }
526             set
527             {
528                 SetProperty(Popup.Property.TITLE, new Tizen.NUI.PropertyValue(value));
529             }
530         }
531         /// <summary>
532         /// Popup content.
533         /// </summary>
534         public PropertyMap Content
535         {
536             get
537             {
538                 PropertyMap temp = new PropertyMap();
539                 GetProperty(Popup.Property.CONTENT).Get(temp);
540                 return temp;
541             }
542             set
543             {
544                 SetProperty(Popup.Property.CONTENT, new Tizen.NUI.PropertyValue(value));
545             }
546         }
547         /// <summary>
548         /// Popup footer.
549         /// </summary>
550         public PropertyMap Footer
551         {
552             get
553             {
554                 PropertyMap temp = new PropertyMap();
555                 GetProperty(Popup.Property.FOOTER).Get(temp);
556                 return temp;
557             }
558             set
559             {
560                 SetProperty(Popup.Property.FOOTER, new Tizen.NUI.PropertyValue(value));
561             }
562         }
563         /// <summary>
564         /// Popup display state.
565         /// </summary>
566         public DisplayStateType DisplayState
567         {
568             get
569             {
570                 string temp;
571                 if (GetProperty(Popup.Property.DISPLAY_STATE).Get(out temp) == false)
572                 {
573                     NUILog.Error("DisplayState get error!");
574                 }
575                 switch (temp)
576                 {
577                     case "SHOWING":
578                         return DisplayStateType.Showing;
579                     case "SHOWN":
580                         return DisplayStateType.Shown;
581                     case "HIDING":
582                         return DisplayStateType.Hiding;
583                     case "HIDDEN":
584                         return DisplayStateType.Hidden;
585                     default:
586                         return DisplayStateType.Hidden;
587                 }
588             }
589             set
590             {
591                 string valueToString = "";
592                 switch (value)
593                 {
594                     case DisplayStateType.Showing:
595                         {
596                             valueToString = "SHOWING";
597                             break;
598                         }
599                     case DisplayStateType.Shown:
600                         {
601                             valueToString = "SHOWN";
602                             break;
603                         }
604                     case DisplayStateType.Hiding:
605                         {
606                             valueToString = "HIDING";
607                             break;
608                         }
609                     case DisplayStateType.Hidden:
610                         {
611                             valueToString = "HIDDEN";
612                             break;
613                         }
614                     default:
615                         {
616                             valueToString = "HIDDEN";
617                             break;
618                         }
619                 }
620                 SetProperty(Popup.Property.DISPLAY_STATE, new Tizen.NUI.PropertyValue(valueToString));
621             }
622         }
623         /// <summary>
624         /// Touch transparent.
625         /// </summary>
626         public bool TouchTransparent
627         {
628             get
629             {
630                 bool temp = false;
631                 GetProperty(Popup.Property.TOUCH_TRANSPARENT).Get(out temp);
632                 return temp;
633             }
634             set
635             {
636                 SetProperty(Popup.Property.TOUCH_TRANSPARENT, new Tizen.NUI.PropertyValue(value));
637             }
638         }
639         /// <summary>
640         /// Popup tail visibility.
641         /// </summary>
642         public bool TailVisibility
643         {
644             get
645             {
646                 bool temp = false;
647                 GetProperty(Popup.Property.TAIL_VISIBILITY).Get(out temp);
648                 return temp;
649             }
650             set
651             {
652                 SetProperty(Popup.Property.TAIL_VISIBILITY, new Tizen.NUI.PropertyValue(value));
653             }
654         }
655         /// <summary>
656         /// Popup tail position.
657         /// </summary>
658         public Vector3 TailPosition
659         {
660             get
661             {
662                 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
663                 GetProperty(Popup.Property.TAIL_POSITION).Get(temp);
664                 return temp;
665             }
666             set
667             {
668                 SetProperty(Popup.Property.TAIL_POSITION, new Tizen.NUI.PropertyValue(value));
669             }
670         }
671         /// <summary>
672         /// Contextual mode.
673         /// </summary>
674         public ContextualModeType ContextualMode
675         {
676             get
677             {
678                 string temp;
679                 if (GetProperty(Popup.Property.CONTEXTUAL_MODE).Get(out temp) == false)
680                 {
681                     NUILog.Error("ContextualMode get error!");
682                 }
683                 switch (temp)
684                 {
685                     case "NON_CONTEXTUAL":
686                         return ContextualModeType.NonContextual;
687                     case "ABOVE":
688                         return ContextualModeType.Above;
689                     case "RIGHT":
690                         return ContextualModeType.Rright;
691                     case "BELOW":
692                         return ContextualModeType.Below;
693                     case "LEFT":
694                         return ContextualModeType.Left;
695                     default:
696                         return ContextualModeType.Below;
697                 }
698             }
699             set
700             {
701                 string valueToString = "";
702                 switch (value)
703                 {
704                     case ContextualModeType.NonContextual:
705                         {
706                             valueToString = "NON_CONTEXTUAL";
707                             break;
708                         }
709                     case ContextualModeType.Above:
710                         {
711                             valueToString = "ABOVE";
712                             break;
713                         }
714                     case ContextualModeType.Rright:
715                         {
716                             valueToString = "RIGHT";
717                             break;
718                         }
719                     case ContextualModeType.Below:
720                         {
721                             valueToString = "BELOW";
722                             break;
723                         }
724                     case ContextualModeType.Left:
725                         {
726                             valueToString = "LEFT";
727                             break;
728                         }
729                     default:
730                         {
731                             valueToString = "BELOW";
732                             break;
733                         }
734                 }
735                 SetProperty(Popup.Property.CONTEXTUAL_MODE, new Tizen.NUI.PropertyValue(valueToString));
736             }
737         }
738         /// <summary>
739         /// Animation duration.
740         /// </summary>
741         public float AnimationDuration
742         {
743             get
744             {
745                 float temp = 0.0f;
746                 GetProperty(Popup.Property.ANIMATION_DURATION).Get(out temp);
747                 return temp;
748             }
749             set
750             {
751                 SetProperty(Popup.Property.ANIMATION_DURATION, new Tizen.NUI.PropertyValue(value));
752             }
753         }
754         /// <summary>
755         /// Animation mode.
756         /// </summary>
757         public AnimationModeType AnimationMode
758         {
759             get
760             {
761                 string temp;
762                 if (GetProperty(Popup.Property.ANIMATION_MODE).Get(out temp) == false)
763                 {
764                     NUILog.Error("AnimationMode get error!");
765                 }
766                 switch (temp)
767                 {
768                     case "NONE":
769                         return AnimationModeType.None;
770                     case "ZOOM":
771                         return AnimationModeType.Zoom;
772                     case "FADE":
773                         return AnimationModeType.Fade;
774                     case "CUSTOM":
775                         return AnimationModeType.Custom;
776                     default:
777                         return AnimationModeType.Fade;
778                 }
779             }
780             set
781             {
782                 string valueToString = "";
783                 switch (value)
784                 {
785                     case AnimationModeType.None:
786                         {
787                             valueToString = "NONE";
788                             break;
789                         }
790                     case AnimationModeType.Zoom:
791                         {
792                             valueToString = "ZOOM";
793                             break;
794                         }
795                     case AnimationModeType.Fade:
796                         {
797                             valueToString = "FADE";
798                             break;
799                         }
800                     case AnimationModeType.Custom:
801                         {
802                             valueToString = "CUSTOM";
803                             break;
804                         }
805                     default:
806                         {
807                             valueToString = "FADE";
808                             break;
809                         }
810                 }
811                 SetProperty(Popup.Property.ANIMATION_MODE, new Tizen.NUI.PropertyValue(valueToString));
812             }
813         }
814         /// <summary>
815         /// Entry animation.
816         /// </summary>
817         public PropertyMap EntryAnimation
818         {
819             get
820             {
821                 PropertyMap temp = new PropertyMap();
822                 GetProperty(Popup.Property.ENTRY_ANIMATION).Get(temp);
823                 return temp;
824             }
825             set
826             {
827                 SetProperty(Popup.Property.ENTRY_ANIMATION, new Tizen.NUI.PropertyValue(value));
828             }
829         }
830         /// <summary>
831         /// Exit animation.
832         /// </summary>
833         public PropertyMap ExitAnimation
834         {
835             get
836             {
837                 PropertyMap temp = new PropertyMap();
838                 GetProperty(Popup.Property.EXIT_ANIMATION).Get(temp);
839                 return temp;
840             }
841             set
842             {
843                 SetProperty(Popup.Property.EXIT_ANIMATION, new Tizen.NUI.PropertyValue(value));
844             }
845         }
846         /// <summary>
847         /// Auto hide delay.
848         /// </summary>
849         public int AutoHideDelay
850         {
851             get
852             {
853                 int temp = 0;
854                 GetProperty(Popup.Property.AUTO_HIDE_DELAY).Get(out temp);
855                 return temp;
856             }
857             set
858             {
859                 SetProperty(Popup.Property.AUTO_HIDE_DELAY, new Tizen.NUI.PropertyValue(value));
860             }
861         }
862         /// <summary>
863         /// Backing enabled.
864         /// </summary>
865         public bool BackingEnabled
866         {
867             get
868             {
869                 bool temp = false;
870                 GetProperty(Popup.Property.BACKING_ENABLED).Get(out temp);
871                 return temp;
872             }
873             set
874             {
875                 SetProperty(Popup.Property.BACKING_ENABLED, new Tizen.NUI.PropertyValue(value));
876             }
877         }
878         /// <summary>
879         /// Backing color.
880         /// </summary>
881         public Vector4 BackingColor
882         {
883             get
884             {
885                 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
886                 GetProperty(Popup.Property.BACKING_COLOR).Get(temp);
887                 return temp;
888             }
889             set
890             {
891                 SetProperty(Popup.Property.BACKING_COLOR, new Tizen.NUI.PropertyValue(value));
892             }
893         }
894         /// <summary>
895         /// Background image.
896         /// </summary>
897         public string PopupBackgroundImage
898         {
899             get
900             {
901                 string temp;
902                 GetProperty(Popup.Property.POPUP_BACKGROUND_IMAGE).Get(out temp);
903                 return temp;
904             }
905             set
906             {
907                 SetProperty(Popup.Property.POPUP_BACKGROUND_IMAGE, new Tizen.NUI.PropertyValue(value));
908             }
909         }
910         /// <summary>
911         /// Background border.
912         /// </summary>
913         public Rectangle PopupBackgroundBorder
914         {
915             get
916             {
917                 Rectangle temp = new Rectangle(0, 0, 0, 0);
918                 GetProperty(Popup.Property.POPUP_BACKGROUND_BORDER).Get(temp);
919                 return temp;
920             }
921             set
922             {
923                 SetProperty(Popup.Property.POPUP_BACKGROUND_BORDER, new Tizen.NUI.PropertyValue(value));
924             }
925         }
926         /// <summary>
927         /// Tail up image.
928         /// </summary>
929         public string TailUpImage
930         {
931             get
932             {
933                 string temp;
934                 GetProperty(Popup.Property.TAIL_UP_IMAGE).Get(out temp);
935                 return temp;
936             }
937             set
938             {
939                 SetProperty(Popup.Property.TAIL_UP_IMAGE, new Tizen.NUI.PropertyValue(value));
940             }
941         }
942         /// <summary>
943         /// Tail down image.
944         /// </summary>
945         public string TailDownImage
946         {
947             get
948             {
949                 string temp;
950                 GetProperty(Popup.Property.TAIL_DOWN_IMAGE).Get(out temp);
951                 return temp;
952             }
953             set
954             {
955                 SetProperty(Popup.Property.TAIL_DOWN_IMAGE, new Tizen.NUI.PropertyValue(value));
956             }
957         }
958         /// <summary>
959         /// Tail left image.
960         /// </summary>
961         public string TailLeftImage
962         {
963             get
964             {
965                 string temp;
966                 GetProperty(Popup.Property.TAIL_LEFT_IMAGE).Get(out temp);
967                 return temp;
968             }
969             set
970             {
971                 SetProperty(Popup.Property.TAIL_LEFT_IMAGE, new Tizen.NUI.PropertyValue(value));
972             }
973         }
974         /// <summary>
975         /// Tail right image.
976         /// </summary>
977         public string TailRightImage
978         {
979             get
980             {
981                 string temp;
982                 GetProperty(Popup.Property.TAIL_RIGHT_IMAGE).Get(out temp);
983                 return temp;
984             }
985             set
986             {
987                 SetProperty(Popup.Property.TAIL_RIGHT_IMAGE, new Tizen.NUI.PropertyValue(value));
988             }
989         }
990
991     }
992
993 }