1 /** Copyright (c) 2017 Samsung Electronics Co., Ltd.
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
7 * http://www.apache.org/licenses/LICENSE-2.0
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.
16 // This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts
17 //------------------------------------------------------------------------------
20 // This file was automatically generated by SWIG (http://www.swig.org).
23 // Do not make changes to this file unless you know what you are doing--modify
24 // the SWIG interface file instead.
25 //------------------------------------------------------------------------------
27 namespace Tizen.NUI.UIComponents
31 using System.Runtime.InteropServices;
32 using Tizen.NUI.BaseComponents;
35 /// The Popup widget provides a configurable pop-up dialog with built-in layout of three main fields.
37 public class Popup : View
39 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
41 internal Popup(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Popup_SWIGUpcast(cPtr), cMemoryOwn)
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;
48 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Popup obj)
50 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
54 protected override void Dispose(DisposeTypes type)
61 if (type == DisposeTypes.Explicit)
64 //Release your own managed resources here.
65 //You should release all of your own disposable objects here.
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.
73 //Unreference this from if a static instance refer to this.
74 ViewRegistry.UnregisterView(this);
76 if (swigCPtr.Handle != global::System.IntPtr.Zero)
81 NDalicPINVOKE.delete_Popup(swigCPtr);
83 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
93 /// Event arguments that passed via OutsideTouchedEvent
95 public class OutsideTouchedEventArgs : EventArgs
100 /// Event arguments that passed via ShowingEventArgs
102 public class ShowingEventArgs : EventArgs
107 /// Event arguments that passed via ShownEventArgs
109 public class ShownEventArgs : EventArgs
114 /// Event arguments that passed via HidingEventArgs
116 public class HidingEventArgs : EventArgs
121 /// Event arguments that passed via HiddenEventArgs
123 public class HiddenEventArgs : EventArgs
127 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
128 private delegate void OutsideTouchedEventCallbackDelegate();
129 private EventHandler<OutsideTouchedEventArgs> _popUpOutsideTouchedEventHandler;
130 private OutsideTouchedEventCallbackDelegate _popUpOutsideTouchedEventCallbackDelegate;
132 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
133 private delegate void ShowingEventCallbackDelegate();
134 private EventHandler<ShowingEventArgs> _popUpShowingEventHandler;
135 private ShowingEventCallbackDelegate _popUpShowingEventCallbackDelegate;
137 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
138 private delegate void ShownEventCallbackDelegate();
139 private EventHandler<ShownEventArgs> _popUpShownEventHandler;
140 private ShownEventCallbackDelegate _popUpShownEventCallbackDelegate;
142 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
143 private delegate void HidingEventCallbackDelegate();
144 private EventHandler<HidingEventArgs> _popUpHidingEventHandler;
145 private HidingEventCallbackDelegate _popUpHidingEventCallbackDelegate;
147 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
148 private delegate void HiddenEventCallbackDelegate();
149 private EventHandler<HiddenEventArgs> _popUpHiddenEventHandler;
150 private HiddenEventCallbackDelegate _popUpHiddenEventCallbackDelegate;
153 /// Event is sent when user has touched outside of the Dialog.
155 public event EventHandler<OutsideTouchedEventArgs> OutsideTouched
159 if (_popUpOutsideTouchedEventHandler == null)
161 _popUpOutsideTouchedEventCallbackDelegate = (OnOutsideTouched);
162 OutsideTouchedSignal().Connect(_popUpOutsideTouchedEventCallbackDelegate);
164 _popUpOutsideTouchedEventHandler += value;
168 _popUpOutsideTouchedEventHandler -= value;
169 if (_popUpOutsideTouchedEventHandler == null && OutsideTouchedSignal().Empty() == false)
171 this.OutsideTouchedSignal().Disconnect(_popUpOutsideTouchedEventCallbackDelegate);
176 // Callback for Popup OutsideTouchedSignal
177 private void OnOutsideTouched()
179 OutsideTouchedEventArgs e = new OutsideTouchedEventArgs();
181 if (_popUpOutsideTouchedEventHandler != null)
183 //here we send all data to user event handlers
184 _popUpOutsideTouchedEventHandler(this, e);
189 /// Event is sent when the Popup is starting to be shown.
191 public event EventHandler<ShowingEventArgs> Showing
195 if (_popUpShowingEventHandler == null)
197 _popUpShowingEventCallbackDelegate = (OnShowing);
198 ShowingSignal().Connect(_popUpShowingEventCallbackDelegate);
200 _popUpShowingEventHandler += value;
204 _popUpShowingEventHandler -= value;
205 if (_popUpShowingEventHandler == null && ShowingSignal().Empty() == false)
207 ShowingSignal().Disconnect(_popUpShowingEventCallbackDelegate);
212 // Callback for ShowingSignal
213 private void OnShowing()
215 ShowingEventArgs e = new ShowingEventArgs();
217 if (_popUpShowingEventHandler != null)
219 //here we send all data to user event handlers
220 _popUpShowingEventHandler(this, e);
226 /// Event is sent when the Popup has been fully displayed.
228 public event EventHandler<ShownEventArgs> Shown
232 if (_popUpShownEventHandler == null)
234 _popUpShownEventCallbackDelegate = (OnShown);
235 ShownSignal().Connect(_popUpShownEventCallbackDelegate);
237 _popUpShownEventHandler += value;
241 _popUpShownEventHandler -= value;
242 if (_popUpShownEventHandler == null && ShownSignal().Empty() == false)
244 ShownSignal().Disconnect(_popUpShownEventCallbackDelegate);
249 // Callback for ShownSignal
250 private void OnShown()
252 ShownEventArgs e = new ShownEventArgs();
254 if (_popUpShownEventHandler != null)
256 //here we send all data to user event handlers
257 _popUpShownEventHandler(this, e);
262 /// Event is sent when the Popup is starting to be hidden.
264 public event EventHandler<HidingEventArgs> Hiding
268 if (_popUpHidingEventHandler == null)
270 _popUpHidingEventCallbackDelegate = (OnHiding);
271 HidingSignal().Connect(_popUpHidingEventCallbackDelegate);
273 _popUpHidingEventHandler += value;
277 _popUpHidingEventHandler -= value;
278 if (_popUpHidingEventHandler == null && HidingSignal().Empty() == false)
280 HidingSignal().Disconnect(_popUpHidingEventCallbackDelegate);
285 // Callback for HidingSignal
286 private void OnHiding()
288 HidingEventArgs e = new HidingEventArgs();
290 if (_popUpHidingEventHandler != null)
292 //here we send all data to user event handlers
293 _popUpHidingEventHandler(this, e);
298 /// Event is sent when the Popup has been completely hidden.
300 public event EventHandler<HiddenEventArgs> Hidden
304 if (_popUpHiddenEventHandler == null)
306 _popUpHiddenEventCallbackDelegate = (OnHidden);
307 HiddenSignal().Connect(_popUpHiddenEventCallbackDelegate);
309 _popUpHiddenEventHandler += value;
313 _popUpHiddenEventHandler -= value;
314 if (_popUpHiddenEventHandler == null && HiddenSignal().Empty() == false)
316 HiddenSignal().Disconnect(_popUpHiddenEventCallbackDelegate);
321 // Callback for HiddenSignal
322 private void OnHidden()
324 HiddenEventArgs e = new HiddenEventArgs();
326 if (_popUpHiddenEventHandler != null)
328 //here we send all data to user event handlers
329 _popUpHiddenEventHandler(this, e);
333 internal class Property : global::System.IDisposable
335 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
336 protected bool swigCMemOwn;
338 internal Property(global::System.IntPtr cPtr, bool cMemoryOwn)
340 swigCMemOwn = cMemoryOwn;
341 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
344 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj)
346 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
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;
357 if (!isDisposeQueued)
359 isDisposeQueued = true;
360 DisposeQueue.Instance.Add(this);
364 public void Dispose()
366 //Throw excpetion if Dispose() is called in separate thread.
367 if (!Window.IsInstalled())
369 throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
374 Dispose(DisposeTypes.Implicit);
378 Dispose(DisposeTypes.Explicit);
379 System.GC.SuppressFinalize(this);
383 protected virtual void Dispose(DisposeTypes type)
390 if (type == DisposeTypes.Explicit)
393 //Release your own managed resources here.
394 //You should release all of your own disposable objects here.
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.
402 if (swigCPtr.Handle != global::System.IntPtr.Zero)
407 NDalicPINVOKE.delete_Popup_Property(swigCPtr);
409 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
415 internal Property() : this(NDalicPINVOKE.new_Popup_Property(), true)
417 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
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();
445 /// Create the Popup.
447 public Popup() : this(NDalicPINVOKE.Popup_New(), true)
449 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
452 internal Popup(Popup handle) : this(NDalicPINVOKE.new_Popup__SWIG_1(Popup.getCPtr(handle)), true)
454 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
457 internal Popup Assign(Popup handle)
459 Popup ret = new Popup(NDalicPINVOKE.Popup_Assign(swigCPtr, Popup.getCPtr(handle)), false);
460 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
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>
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)
473 Popup ret = new Popup(NDalicPINVOKE.Popup_DownCast(BaseHandle.getCPtr(handle)), true);
474 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
479 /// Sets a title for this Popup.
481 /// <param name="titleView">The actor to set a title</param>
482 public void SetTitle(View titleView)
484 NDalicPINVOKE.Popup_SetTitle(swigCPtr, View.getCPtr(titleView));
485 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
488 internal View GetTitle()
490 View ret = new View(NDalicPINVOKE.Popup_GetTitle(swigCPtr), true);
491 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
496 /// Sets the content actor.
498 /// <param name="content">The actor to use</param>
499 public void SetContent(View content)
501 NDalicPINVOKE.Popup_SetContent(swigCPtr, View.getCPtr(content));
502 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
505 internal View GetContent()
507 View ret = new View(NDalicPINVOKE.Popup_GetContent(swigCPtr), true);
508 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
513 /// Sets the actor to use for a footer in this Popup.
515 /// <param name="footer">The footer actor to be added to this Popup</param>
516 public void SetFooter(View footer)
518 NDalicPINVOKE.Popup_SetFooter(swigCPtr, View.getCPtr(footer));
519 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
522 internal View GetFooter()
524 View ret = new View(NDalicPINVOKE.Popup_GetFooter(swigCPtr), true);
525 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
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>
534 /// The other two states are getable, but not setable and are there for consistency.<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>
543 /// All 4 state changes cause notifications via 4 respective signals that can be connected to.<br>
545 /// <param name="displayState">The desired display state to change to</param>
546 public void SetDisplayState(Popup.DisplayStateType displayState)
548 NDalicPINVOKE.Popup_SetDisplayState(swigCPtr, (int)displayState);
549 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
552 internal Popup.DisplayStateType GetDisplayState()
554 Popup.DisplayStateType ret = (Popup.DisplayStateType)NDalicPINVOKE.Popup_GetDisplayState(swigCPtr);
555 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
559 internal VoidSignal OutsideTouchedSignal()
561 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_OutsideTouchedSignal(swigCPtr), false);
562 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
566 internal VoidSignal ShowingSignal()
568 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_ShowingSignal(swigCPtr), false);
569 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
573 internal VoidSignal ShownSignal()
575 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_ShownSignal(swigCPtr), false);
576 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
580 internal VoidSignal HidingSignal()
582 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_HidingSignal(swigCPtr), false);
583 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
587 internal VoidSignal HiddenSignal()
589 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_HiddenSignal(swigCPtr), false);
590 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
594 internal enum PropertyRange
596 PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
597 PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX + 1000
601 /// The display states of the Popup.
603 public enum DisplayStateType
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>
615 public enum AnimationModeType
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>
628 public enum ContextualModeType
640 public PropertyMap Title
644 PropertyMap temp = new PropertyMap();
645 GetProperty(Popup.Property.TITLE).Get(temp);
650 SetProperty(Popup.Property.TITLE, new Tizen.NUI.PropertyValue(value));
656 public PropertyMap Content
660 PropertyMap temp = new PropertyMap();
661 GetProperty(Popup.Property.CONTENT).Get(temp);
666 SetProperty(Popup.Property.CONTENT, new Tizen.NUI.PropertyValue(value));
672 public PropertyMap Footer
676 PropertyMap temp = new PropertyMap();
677 GetProperty(Popup.Property.FOOTER).Get(temp);
682 SetProperty(Popup.Property.FOOTER, new Tizen.NUI.PropertyValue(value));
686 /// Popup display state.
688 public DisplayStateType DisplayState
693 if (GetProperty(Popup.Property.DISPLAY_STATE).Get(out temp) == false)
696 Tizen.Log.Error("NUI", "DisplayState get error!");
702 return DisplayStateType.Showing;
704 return DisplayStateType.Shown;
706 return DisplayStateType.Hiding;
708 return DisplayStateType.Hidden;
710 return DisplayStateType.Hidden;
715 string valueToString = "";
718 case DisplayStateType.Showing:
720 valueToString = "SHOWING";
723 case DisplayStateType.Shown:
725 valueToString = "SHOWN";
728 case DisplayStateType.Hiding:
730 valueToString = "HIDING";
733 case DisplayStateType.Hidden:
735 valueToString = "HIDDEN";
740 valueToString = "HIDDEN";
744 SetProperty(Popup.Property.DISPLAY_STATE, new Tizen.NUI.PropertyValue(valueToString));
748 /// Touch transparent.
750 public bool TouchTransparent
755 GetProperty(Popup.Property.TOUCH_TRANSPARENT).Get(ref temp);
760 SetProperty(Popup.Property.TOUCH_TRANSPARENT, new Tizen.NUI.PropertyValue(value));
764 /// Popup tail visibility.
766 public bool TailVisibility
771 GetProperty(Popup.Property.TAIL_VISIBILITY).Get(ref temp);
776 SetProperty(Popup.Property.TAIL_VISIBILITY, new Tizen.NUI.PropertyValue(value));
780 /// Popup tail position.
782 public Vector3 TailPosition
786 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
787 GetProperty(Popup.Property.TAIL_POSITION).Get(temp);
792 SetProperty(Popup.Property.TAIL_POSITION, new Tizen.NUI.PropertyValue(value));
798 public ContextualModeType ContextualMode
803 if (GetProperty(Popup.Property.CONTEXTUAL_MODE).Get(out temp) == false)
806 Tizen.Log.Error("NUI", "ContextualMode get error!");
811 case "NON_CONTEXTUAL":
812 return ContextualModeType.NonContextual;
814 return ContextualModeType.Above;
816 return ContextualModeType.Rright;
818 return ContextualModeType.Below;
820 return ContextualModeType.Left;
822 return ContextualModeType.Below;
827 string valueToString = "";
830 case ContextualModeType.NonContextual:
832 valueToString = "NON_CONTEXTUAL";
835 case ContextualModeType.Above:
837 valueToString = "ABOVE";
840 case ContextualModeType.Rright:
842 valueToString = "RIGHT";
845 case ContextualModeType.Below:
847 valueToString = "BELOW";
850 case ContextualModeType.Left:
852 valueToString = "LEFT";
857 valueToString = "BELOW";
861 SetProperty(Popup.Property.CONTEXTUAL_MODE, new Tizen.NUI.PropertyValue(valueToString));
865 /// Animation duration.
867 public float AnimationDuration
872 GetProperty(Popup.Property.ANIMATION_DURATION).Get(ref temp);
877 SetProperty(Popup.Property.ANIMATION_DURATION, new Tizen.NUI.PropertyValue(value));
883 public AnimationModeType AnimationMode
888 if (GetProperty(Popup.Property.ANIMATION_MODE).Get(out temp) == false)
891 Tizen.Log.Error("NUI", "AnimationMode get error!");
897 return AnimationModeType.None;
899 return AnimationModeType.Zoom;
901 return AnimationModeType.Fade;
903 return AnimationModeType.Custom;
905 return AnimationModeType.Fade;
910 string valueToString = "";
913 case AnimationModeType.None:
915 valueToString = "NONE";
918 case AnimationModeType.Zoom:
920 valueToString = "ZOOM";
923 case AnimationModeType.Fade:
925 valueToString = "FADE";
928 case AnimationModeType.Custom:
930 valueToString = "CUSTOM";
935 valueToString = "FADE";
939 SetProperty(Popup.Property.ANIMATION_MODE, new Tizen.NUI.PropertyValue(valueToString));
945 public PropertyMap EntryAnimation
949 PropertyMap temp = new PropertyMap();
950 GetProperty(Popup.Property.ENTRY_ANIMATION).Get(temp);
955 SetProperty(Popup.Property.ENTRY_ANIMATION, new Tizen.NUI.PropertyValue(value));
961 public PropertyMap ExitAnimation
965 PropertyMap temp = new PropertyMap();
966 GetProperty(Popup.Property.EXIT_ANIMATION).Get(temp);
971 SetProperty(Popup.Property.EXIT_ANIMATION, new Tizen.NUI.PropertyValue(value));
977 public int AutoHideDelay
982 GetProperty(Popup.Property.AUTO_HIDE_DELAY).Get(ref temp);
987 SetProperty(Popup.Property.AUTO_HIDE_DELAY, new Tizen.NUI.PropertyValue(value));
993 public bool BackingEnabled
998 GetProperty(Popup.Property.BACKING_ENABLED).Get(ref temp);
1003 SetProperty(Popup.Property.BACKING_ENABLED, new Tizen.NUI.PropertyValue(value));
1009 public Vector4 BackingColor
1013 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
1014 GetProperty(Popup.Property.BACKING_COLOR).Get(temp);
1019 SetProperty(Popup.Property.BACKING_COLOR, new Tizen.NUI.PropertyValue(value));
1023 /// Background image.
1025 public string PopupBackgroundImage
1030 GetProperty(Popup.Property.POPUP_BACKGROUND_IMAGE).Get(out temp);
1035 SetProperty(Popup.Property.POPUP_BACKGROUND_IMAGE, new Tizen.NUI.PropertyValue(value));
1039 /// Background border.
1041 public Rectangle PopupBackgroundBorder
1045 Rectangle temp = new Rectangle(0, 0, 0, 0);
1046 GetProperty(Popup.Property.POPUP_BACKGROUND_BORDER).Get(temp);
1051 SetProperty(Popup.Property.POPUP_BACKGROUND_BORDER, new Tizen.NUI.PropertyValue(value));
1057 public string TailUpImage
1062 GetProperty(Popup.Property.TAIL_UP_IMAGE).Get(out temp);
1067 SetProperty(Popup.Property.TAIL_UP_IMAGE, new Tizen.NUI.PropertyValue(value));
1071 /// Tail down image.
1073 public string TailDownImage
1078 GetProperty(Popup.Property.TAIL_DOWN_IMAGE).Get(out temp);
1083 SetProperty(Popup.Property.TAIL_DOWN_IMAGE, new Tizen.NUI.PropertyValue(value));
1087 /// Tail left image.
1089 public string TailLeftImage
1094 GetProperty(Popup.Property.TAIL_LEFT_IMAGE).Get(out temp);
1099 SetProperty(Popup.Property.TAIL_LEFT_IMAGE, new Tizen.NUI.PropertyValue(value));
1103 /// Tail right image.
1105 public string TailRightImage
1110 GetProperty(Popup.Property.TAIL_RIGHT_IMAGE).Get(out temp);
1115 SetProperty(Popup.Property.TAIL_RIGHT_IMAGE, new Tizen.NUI.PropertyValue(value));