2 * Copyright(c) 2017 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 namespace Tizen.NUI.UIComponents
22 using System.Runtime.InteropServices;
23 using Tizen.NUI.BaseComponents;
26 /// The Popup widget provides a configurable popup dialog with a built-in layout of three main fields.
28 public class Popup : View
30 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
32 internal Popup(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Popup_SWIGUpcast(cPtr), cMemoryOwn)
34 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
37 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Popup obj)
39 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
45 /// <param name="type">The dispose type</param>
46 /// <since_tizen> 3 </since_tizen>
47 protected override void Dispose(DisposeTypes type)
54 if (type == DisposeTypes.Explicit)
57 //Release your own managed resources here.
58 //You should release all of your own disposable objects here.
62 //Release your own unmanaged resources here.
63 //You should not access any managed member here except static instance.
64 //because the execution order of Finalizes is non-deterministic.
66 if (_popUpHiddenEventCallbackDelegate != null)
68 HiddenSignal().Disconnect(_popUpHiddenEventCallbackDelegate);
71 if (_popUpHidingEventCallbackDelegate != null)
73 HidingSignal().Disconnect(_popUpHidingEventCallbackDelegate);
76 if (_popUpShownEventCallbackDelegate != null)
78 ShownSignal().Disconnect(_popUpShownEventCallbackDelegate);
81 if (_popUpShowingEventCallbackDelegate != null)
83 ShowingSignal().Disconnect(_popUpShowingEventCallbackDelegate);
86 if (_popUpOutsideTouchedEventCallbackDelegate != null)
88 this.OutsideTouchedSignal().Disconnect(_popUpOutsideTouchedEventCallbackDelegate);
91 if (swigCPtr.Handle != global::System.IntPtr.Zero)
96 NDalicPINVOKE.delete_Popup(swigCPtr);
98 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
108 /// Event arguments that passed via the OutsideTouchedEvent.
110 public class TouchedOutsideEventArgs : EventArgs
115 /// Event arguments that passed via the ShowingEventArgs.
117 public class ShowingEventArgs : EventArgs
122 /// Event arguments that passed via the ShownEventArgs.
124 public class ShownEventArgs : EventArgs
129 /// Event arguments that passed via the HidingEventArgs.
131 public class HidingEventArgs : EventArgs
136 /// Event arguments that passed via the HiddenEventArgs.
138 public class HiddenEventArgs : EventArgs
142 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
143 private delegate void OutsideTouchedEventCallbackDelegate();
144 private EventHandler<TouchedOutsideEventArgs> _popUpOutsideTouchedEventHandler;
145 private OutsideTouchedEventCallbackDelegate _popUpOutsideTouchedEventCallbackDelegate;
147 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
148 private delegate void ShowingEventCallbackDelegate();
149 private EventHandler<ShowingEventArgs> _popUpShowingEventHandler;
150 private ShowingEventCallbackDelegate _popUpShowingEventCallbackDelegate;
152 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
153 private delegate void ShownEventCallbackDelegate();
154 private EventHandler<ShownEventArgs> _popUpShownEventHandler;
155 private ShownEventCallbackDelegate _popUpShownEventCallbackDelegate;
157 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
158 private delegate void HidingEventCallbackDelegate();
159 private EventHandler<HidingEventArgs> _popUpHidingEventHandler;
160 private HidingEventCallbackDelegate _popUpHidingEventCallbackDelegate;
162 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
163 private delegate void HiddenEventCallbackDelegate();
164 private EventHandler<HiddenEventArgs> _popUpHiddenEventHandler;
165 private HiddenEventCallbackDelegate _popUpHiddenEventCallbackDelegate;
168 /// An event is sent when the user has touched outside the dialog.
170 /// <since_tizen> 4 </since_tizen>
171 public event EventHandler<TouchedOutsideEventArgs> TouchedOutside
175 if (_popUpOutsideTouchedEventHandler == null)
177 _popUpOutsideTouchedEventCallbackDelegate = (OnOutsideTouched);
178 OutsideTouchedSignal().Connect(_popUpOutsideTouchedEventCallbackDelegate);
180 _popUpOutsideTouchedEventHandler += value;
184 _popUpOutsideTouchedEventHandler -= value;
185 if (_popUpOutsideTouchedEventHandler == null && OutsideTouchedSignal().Empty() == false)
187 this.OutsideTouchedSignal().Disconnect(_popUpOutsideTouchedEventCallbackDelegate);
192 // Callback for Popup OutsideTouchedSignal
193 private void OnOutsideTouched()
195 TouchedOutsideEventArgs e = new TouchedOutsideEventArgs();
197 if (_popUpOutsideTouchedEventHandler != null)
199 //here we send all data to user event handlers
200 _popUpOutsideTouchedEventHandler(this, e);
205 /// An event is sent when the popup starts showing.
207 /// <since_tizen> 3 </since_tizen>
208 public event EventHandler<ShowingEventArgs> Showing
212 if (_popUpShowingEventHandler == null)
214 _popUpShowingEventCallbackDelegate = (OnShowing);
215 ShowingSignal().Connect(_popUpShowingEventCallbackDelegate);
217 _popUpShowingEventHandler += value;
221 _popUpShowingEventHandler -= value;
222 if (_popUpShowingEventHandler == null && ShowingSignal().Empty() == false)
224 ShowingSignal().Disconnect(_popUpShowingEventCallbackDelegate);
229 // Callback for ShowingSignal
230 private void OnShowing()
232 ShowingEventArgs e = new ShowingEventArgs();
234 if (_popUpShowingEventHandler != null)
236 //here we send all data to user event handlers
237 _popUpShowingEventHandler(this, e);
243 /// An event is sent when the popup has been fully displayed.
245 /// <since_tizen> 3 </since_tizen>
246 public event EventHandler<ShownEventArgs> Shown
250 if (_popUpShownEventHandler == null)
252 _popUpShownEventCallbackDelegate = (OnShown);
253 ShownSignal().Connect(_popUpShownEventCallbackDelegate);
255 _popUpShownEventHandler += value;
259 _popUpShownEventHandler -= value;
260 if (_popUpShownEventHandler == null && ShownSignal().Empty() == false)
262 ShownSignal().Disconnect(_popUpShownEventCallbackDelegate);
267 // Callback for ShownSignal
268 private void OnShown()
270 ShownEventArgs e = new ShownEventArgs();
272 if (_popUpShownEventHandler != null)
274 //here we send all data to user event handlers
275 _popUpShownEventHandler(this, e);
280 /// An event is sent when the popup starts to hide.
282 /// <since_tizen> 3 </since_tizen>
283 public event EventHandler<HidingEventArgs> Hiding
287 if (_popUpHidingEventHandler == null)
289 _popUpHidingEventCallbackDelegate = (OnHiding);
290 HidingSignal().Connect(_popUpHidingEventCallbackDelegate);
292 _popUpHidingEventHandler += value;
296 _popUpHidingEventHandler -= value;
297 if (_popUpHidingEventHandler == null && HidingSignal().Empty() == false)
299 HidingSignal().Disconnect(_popUpHidingEventCallbackDelegate);
304 // Callback for HidingSignal
305 private void OnHiding()
307 HidingEventArgs e = new HidingEventArgs();
309 if (_popUpHidingEventHandler != null)
311 //here we send all data to user event handlers
312 _popUpHidingEventHandler(this, e);
317 /// An event is sent when the popup has been completely hidden.
319 /// <since_tizen> 3 </since_tizen>
320 public event EventHandler<HiddenEventArgs> Hidden
324 if (_popUpHiddenEventHandler == null)
326 _popUpHiddenEventCallbackDelegate = (OnHidden);
327 HiddenSignal().Connect(_popUpHiddenEventCallbackDelegate);
329 _popUpHiddenEventHandler += value;
333 _popUpHiddenEventHandler -= value;
334 if (_popUpHiddenEventHandler == null && HiddenSignal().Empty() == false)
336 HiddenSignal().Disconnect(_popUpHiddenEventCallbackDelegate);
341 // Callback for HiddenSignal
342 private void OnHidden()
344 HiddenEventArgs e = new HiddenEventArgs();
346 if (_popUpHiddenEventHandler != null)
348 //here we send all data to user event handlers
349 _popUpHiddenEventHandler(this, e);
353 internal new class Property
355 internal static readonly int TITLE = NDalicPINVOKE.Popup_Property_TITLE_get();
356 internal static readonly int CONTENT = NDalicPINVOKE.Popup_Property_CONTENT_get();
357 internal static readonly int FOOTER = NDalicPINVOKE.Popup_Property_FOOTER_get();
358 internal static readonly int DISPLAY_STATE = NDalicPINVOKE.Popup_Property_DISPLAY_STATE_get();
359 internal static readonly int TOUCH_TRANSPARENT = NDalicPINVOKE.Popup_Property_TOUCH_TRANSPARENT_get();
360 internal static readonly int TAIL_VISIBILITY = NDalicPINVOKE.Popup_Property_TAIL_VISIBILITY_get();
361 internal static readonly int TAIL_POSITION = NDalicPINVOKE.Popup_Property_TAIL_POSITION_get();
362 internal static readonly int CONTEXTUAL_MODE = NDalicPINVOKE.Popup_Property_CONTEXTUAL_MODE_get();
363 internal static readonly int ANIMATION_DURATION = NDalicPINVOKE.Popup_Property_ANIMATION_DURATION_get();
364 internal static readonly int ANIMATION_MODE = NDalicPINVOKE.Popup_Property_ANIMATION_MODE_get();
365 internal static readonly int ENTRY_ANIMATION = NDalicPINVOKE.Popup_Property_ENTRY_ANIMATION_get();
366 internal static readonly int EXIT_ANIMATION = NDalicPINVOKE.Popup_Property_EXIT_ANIMATION_get();
367 internal static readonly int AUTO_HIDE_DELAY = NDalicPINVOKE.Popup_Property_AUTO_HIDE_DELAY_get();
368 internal static readonly int BACKING_ENABLED = NDalicPINVOKE.Popup_Property_BACKING_ENABLED_get();
369 internal static readonly int BACKING_COLOR = NDalicPINVOKE.Popup_Property_BACKING_COLOR_get();
370 internal static readonly int POPUP_BACKGROUND_IMAGE = NDalicPINVOKE.Popup_Property_POPUP_BACKGROUND_IMAGE_get();
371 internal static readonly int POPUP_BACKGROUND_BORDER = NDalicPINVOKE.Popup_Property_POPUP_BACKGROUND_BORDER_get();
372 internal static readonly int TAIL_UP_IMAGE = NDalicPINVOKE.Popup_Property_TAIL_UP_IMAGE_get();
373 internal static readonly int TAIL_DOWN_IMAGE = NDalicPINVOKE.Popup_Property_TAIL_DOWN_IMAGE_get();
374 internal static readonly int TAIL_LEFT_IMAGE = NDalicPINVOKE.Popup_Property_TAIL_LEFT_IMAGE_get();
375 internal static readonly int TAIL_RIGHT_IMAGE = NDalicPINVOKE.Popup_Property_TAIL_RIGHT_IMAGE_get();
379 /// Creates the popup.
381 /// <since_tizen> 3 </since_tizen>
382 public Popup() : this(NDalicPINVOKE.Popup_New(), true)
384 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
389 /// Please do not use! this will be deprecated
391 /// <since_tizen> 3 </since_tizen>
392 [Obsolete("Please do not use! this will be deprecated")]
393 public new static Popup DownCast(BaseHandle handle)
395 Popup ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as Popup;
396 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
401 /// Sets the title for this popup.
403 /// <param name="titleView">The actor to set the title.</param>
404 /// <since_tizen> 3 </since_tizen>
405 public void SetTitle(View titleView)
407 NDalicPINVOKE.Popup_SetTitle(swigCPtr, View.getCPtr(titleView));
408 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
411 internal View GetTitle()
413 IntPtr cPtr = NDalicPINVOKE.Popup_GetTitle(swigCPtr);
414 View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
416 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
421 /// Sets the content actor.
423 /// <param name="content">The actor to use.</param>
424 /// <since_tizen> 3 </since_tizen>
425 public void SetContent(View content)
427 NDalicPINVOKE.Popup_SetContent(swigCPtr, View.getCPtr(content));
428 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
431 internal View GetContent()
433 IntPtr cPtr = NDalicPINVOKE.Popup_GetContent(swigCPtr);
434 View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
436 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
441 /// Sets the actor to use for the footer in this popup.
443 /// <param name="footer">The footer actor to be added to this popup.</param>
444 /// <since_tizen> 3 </since_tizen>
445 public void SetFooter(View footer)
447 NDalicPINVOKE.Popup_SetFooter(swigCPtr, View.getCPtr(footer));
448 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
451 internal View GetFooter()
453 IntPtr cPtr = NDalicPINVOKE.Popup_GetFooter(swigCPtr);
454 View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
456 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
461 /// Sets the display state of popup.<br />
462 /// There are 4 total display states.<br />
463 /// Only 2 can be set, but all four can be read for better inspection of the current popup state.<br />
465 /// The other two states are getable, but not setable, and are there for consistency.<br />
467 /// | Value | Setting the state | Getting the state |<br />
468 /// |----------|--------------------------------|--------------------------------|<br />
469 /// | SHOWN | Show the popup | The popup is fully shown |<br />
470 /// | HIDDEN | Hide the popup | The popup is fully hidden |<br />
471 /// | SHOWING | | The popup is transitioning in |<br />
472 /// | HIDING | | The popup is transitioning out |<br />
474 /// All 4 states changes cause notifications via 4 respective signals that can be connected to.<br />
476 /// <param name="displayState">The desired display state to change to.</param>
477 /// <since_tizen> 3 </since_tizen>
478 public void SetDisplayState(Popup.DisplayStateType displayState)
480 NDalicPINVOKE.Popup_SetDisplayState(swigCPtr, (int)displayState);
481 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
484 internal Popup.DisplayStateType GetDisplayState()
486 Popup.DisplayStateType ret = (Popup.DisplayStateType)NDalicPINVOKE.Popup_GetDisplayState(swigCPtr);
487 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
491 internal VoidSignal OutsideTouchedSignal()
493 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_OutsideTouchedSignal(swigCPtr), false);
494 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
498 internal VoidSignal ShowingSignal()
500 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_ShowingSignal(swigCPtr), false);
501 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
505 internal VoidSignal ShownSignal()
507 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_ShownSignal(swigCPtr), false);
508 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
512 internal VoidSignal HidingSignal()
514 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_HidingSignal(swigCPtr), false);
515 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
519 internal VoidSignal HiddenSignal()
521 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_HiddenSignal(swigCPtr), false);
522 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
527 /// The display states of the popup.
529 /// <since_tizen> 3 </since_tizen>
530 public enum DisplayStateType
533 /// The popup is transitioning in
535 /// <since_tizen> 3 </since_tizen>
538 /// The popup is fully shown
540 /// <since_tizen> 3 </since_tizen>
543 /// The popup is transitioning out
545 /// <since_tizen> 3 </since_tizen>
548 /// The popup is fully hidden
550 /// <since_tizen> 3 </since_tizen>
555 /// The animation modes within the popup.<br />
556 /// Choose from a predefined mode or "CUSTOM" to use the ANIMATION_IN and ANIMATION_OUT properties.<br />
558 /// <since_tizen> 3 </since_tizen>
559 public enum AnimationModeType
564 /// <since_tizen> 3 </since_tizen>
567 /// Popup zooms in and out animating the scale property.
569 /// <since_tizen> 3 </since_tizen>
572 /// Popup fades in and out
574 /// <since_tizen> 3 </since_tizen>
577 /// Use the EntryAnimation and ExitAnimation animation properties.
579 /// <since_tizen> 3 </since_tizen>
584 /// The types of the contextual layout.<br />
585 /// The popup is positioned adjacent to it's parent in the direction specified by this mode.<br />
586 /// NON_CONTEXTUAL disables any contextual positioning.<br />
588 /// <since_tizen> 3 </since_tizen>
589 public enum ContextualModeType
592 /// any contextual positioning
594 /// <since_tizen> 3 </since_tizen>
599 /// <since_tizen> 3 </since_tizen>
604 /// <since_tizen> 3 </since_tizen>
609 /// <since_tizen> 3 </since_tizen>
614 /// <since_tizen> 3 </since_tizen>
621 /// <since_tizen> 3 </since_tizen>
622 public PropertyMap Title
626 PropertyMap temp = new PropertyMap();
627 GetProperty(Popup.Property.TITLE).Get(temp);
632 SetProperty(Popup.Property.TITLE, new Tizen.NUI.PropertyValue(value));
636 /// The popup content.
638 /// <since_tizen> 3 </since_tizen>
639 public PropertyMap Content
643 PropertyMap temp = new PropertyMap();
644 GetProperty(Popup.Property.CONTENT).Get(temp);
649 SetProperty(Popup.Property.CONTENT, new Tizen.NUI.PropertyValue(value));
653 /// The popup footer.
655 /// <since_tizen> 3 </since_tizen>
656 public PropertyMap Footer
660 PropertyMap temp = new PropertyMap();
661 GetProperty(Popup.Property.FOOTER).Get(temp);
666 SetProperty(Popup.Property.FOOTER, new Tizen.NUI.PropertyValue(value));
670 /// The popup display state.
672 /// <since_tizen> 3 </since_tizen>
673 public DisplayStateType DisplayState
678 if (GetProperty(Popup.Property.DISPLAY_STATE).Get(out temp) == false)
680 NUILog.Error("DisplayState get error!");
685 return DisplayStateType.Showing;
687 return DisplayStateType.Shown;
689 return DisplayStateType.Hiding;
691 return DisplayStateType.Hidden;
693 return DisplayStateType.Hidden;
698 string valueToString = "";
701 case DisplayStateType.Showing:
703 valueToString = "SHOWING";
706 case DisplayStateType.Shown:
708 valueToString = "SHOWN";
711 case DisplayStateType.Hiding:
713 valueToString = "HIDING";
716 case DisplayStateType.Hidden:
718 valueToString = "HIDDEN";
723 valueToString = "HIDDEN";
727 SetProperty(Popup.Property.DISPLAY_STATE, new Tizen.NUI.PropertyValue(valueToString));
731 /// The touch transparent.
733 /// <since_tizen> 3 </since_tizen>
734 public bool TouchTransparent
739 GetProperty(Popup.Property.TOUCH_TRANSPARENT).Get(out temp);
744 SetProperty(Popup.Property.TOUCH_TRANSPARENT, new Tizen.NUI.PropertyValue(value));
748 /// The popup tail visibility.
750 /// <since_tizen> 3 </since_tizen>
751 public bool TailVisibility
756 GetProperty(Popup.Property.TAIL_VISIBILITY).Get(out temp);
761 SetProperty(Popup.Property.TAIL_VISIBILITY, new Tizen.NUI.PropertyValue(value));
765 /// The popup tail position.
767 /// <since_tizen> 3 </since_tizen>
768 public Vector3 TailPosition
772 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
773 GetProperty(Popup.Property.TAIL_POSITION).Get(temp);
778 SetProperty(Popup.Property.TAIL_POSITION, new Tizen.NUI.PropertyValue(value));
782 /// The contextual mode.
784 /// <since_tizen> 3 </since_tizen>
785 public ContextualModeType ContextualMode
790 if (GetProperty(Popup.Property.CONTEXTUAL_MODE).Get(out temp) == false)
792 NUILog.Error("ContextualMode get error!");
796 case "NON_CONTEXTUAL":
797 return ContextualModeType.NonContextual;
799 return ContextualModeType.Above;
801 return ContextualModeType.Rright;
803 return ContextualModeType.Below;
805 return ContextualModeType.Left;
807 return ContextualModeType.Below;
812 string valueToString = "";
815 case ContextualModeType.NonContextual:
817 valueToString = "NON_CONTEXTUAL";
820 case ContextualModeType.Above:
822 valueToString = "ABOVE";
825 case ContextualModeType.Rright:
827 valueToString = "RIGHT";
830 case ContextualModeType.Below:
832 valueToString = "BELOW";
835 case ContextualModeType.Left:
837 valueToString = "LEFT";
842 valueToString = "BELOW";
846 SetProperty(Popup.Property.CONTEXTUAL_MODE, new Tizen.NUI.PropertyValue(valueToString));
850 /// The animation duration.
852 /// <since_tizen> 3 </since_tizen>
853 public float AnimationDuration
858 GetProperty(Popup.Property.ANIMATION_DURATION).Get(out temp);
863 SetProperty(Popup.Property.ANIMATION_DURATION, new Tizen.NUI.PropertyValue(value));
867 /// The animation mode.
869 /// <since_tizen> 3 </since_tizen>
870 public AnimationModeType AnimationMode
875 if (GetProperty(Popup.Property.ANIMATION_MODE).Get(out temp) == false)
877 NUILog.Error("AnimationMode get error!");
882 return AnimationModeType.None;
884 return AnimationModeType.Zoom;
886 return AnimationModeType.Fade;
888 return AnimationModeType.Custom;
890 return AnimationModeType.Fade;
895 string valueToString = "";
898 case AnimationModeType.None:
900 valueToString = "NONE";
903 case AnimationModeType.Zoom:
905 valueToString = "ZOOM";
908 case AnimationModeType.Fade:
910 valueToString = "FADE";
913 case AnimationModeType.Custom:
915 valueToString = "CUSTOM";
920 valueToString = "FADE";
924 SetProperty(Popup.Property.ANIMATION_MODE, new Tizen.NUI.PropertyValue(valueToString));
928 /// The entry animation.
930 /// <since_tizen> 3 </since_tizen>
931 public PropertyMap EntryAnimation
935 PropertyMap temp = new PropertyMap();
936 GetProperty(Popup.Property.ENTRY_ANIMATION).Get(temp);
941 SetProperty(Popup.Property.ENTRY_ANIMATION, new Tizen.NUI.PropertyValue(value));
945 /// The exit animation.
947 /// <since_tizen> 3 </since_tizen>
948 public PropertyMap ExitAnimation
952 PropertyMap temp = new PropertyMap();
953 GetProperty(Popup.Property.EXIT_ANIMATION).Get(temp);
958 SetProperty(Popup.Property.EXIT_ANIMATION, new Tizen.NUI.PropertyValue(value));
962 /// The auto hide delay.
964 /// <since_tizen> 3 </since_tizen>
965 public int AutoHideDelay
970 GetProperty(Popup.Property.AUTO_HIDE_DELAY).Get(out temp);
975 SetProperty(Popup.Property.AUTO_HIDE_DELAY, new Tizen.NUI.PropertyValue(value));
979 /// The backing enabled.
981 /// <since_tizen> 3 </since_tizen>
982 public bool BackingEnabled
987 GetProperty(Popup.Property.BACKING_ENABLED).Get(out temp);
992 SetProperty(Popup.Property.BACKING_ENABLED, new Tizen.NUI.PropertyValue(value));
996 /// The backing color.
998 /// <since_tizen> 3 </since_tizen>
999 public Vector4 BackingColor
1003 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
1004 GetProperty(Popup.Property.BACKING_COLOR).Get(temp);
1009 SetProperty(Popup.Property.BACKING_COLOR, new Tizen.NUI.PropertyValue(value));
1013 /// The background image.
1015 /// <since_tizen> 3 </since_tizen>
1016 public string PopupBackgroundImage
1021 GetProperty(Popup.Property.POPUP_BACKGROUND_IMAGE).Get(out temp);
1026 SetProperty(Popup.Property.POPUP_BACKGROUND_IMAGE, new Tizen.NUI.PropertyValue(value));
1030 /// The background border.
1032 /// <since_tizen> 3 </since_tizen>
1033 public Rectangle PopupBackgroundBorder
1037 Rectangle temp = new Rectangle(0, 0, 0, 0);
1038 GetProperty(Popup.Property.POPUP_BACKGROUND_BORDER).Get(temp);
1043 SetProperty(Popup.Property.POPUP_BACKGROUND_BORDER, new Tizen.NUI.PropertyValue(value));
1047 /// The tail up image.
1049 /// <since_tizen> 3 </since_tizen>
1050 public string TailUpImage
1055 GetProperty(Popup.Property.TAIL_UP_IMAGE).Get(out temp);
1060 SetProperty(Popup.Property.TAIL_UP_IMAGE, new Tizen.NUI.PropertyValue(value));
1064 /// The tail down image.
1066 /// <since_tizen> 3 </since_tizen>
1067 public string TailDownImage
1072 GetProperty(Popup.Property.TAIL_DOWN_IMAGE).Get(out temp);
1077 SetProperty(Popup.Property.TAIL_DOWN_IMAGE, new Tizen.NUI.PropertyValue(value));
1081 /// The tail left image.
1083 /// <since_tizen> 3 </since_tizen>
1084 public string TailLeftImage
1089 GetProperty(Popup.Property.TAIL_LEFT_IMAGE).Get(out temp);
1094 SetProperty(Popup.Property.TAIL_LEFT_IMAGE, new Tizen.NUI.PropertyValue(value));
1098 /// The tail right image.
1100 /// <since_tizen> 3 </since_tizen>
1101 public string TailRightImage
1106 GetProperty(Popup.Property.TAIL_RIGHT_IMAGE).Get(out temp);
1111 SetProperty(Popup.Property.TAIL_RIGHT_IMAGE, new Tizen.NUI.PropertyValue(value));