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