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