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