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.
17 namespace Tizen.NUI.UIComponents
21 using System.Runtime.InteropServices;
22 using Tizen.NUI.BaseComponents;
25 /// The Popup widget provides a configurable popup dialog with a built-in layout of three main fields.
27 public class Popup : View
29 private global::System.Runtime.InteropServices.HandleRef swigCPtr;
31 internal Popup(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.Popup_SWIGUpcast(cPtr), cMemoryOwn)
33 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
36 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Popup obj)
38 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
42 protected override void Dispose(DisposeTypes type)
49 if (type == DisposeTypes.Explicit)
52 //Release your own managed resources here.
53 //You should release all of your own disposable objects here.
57 //Release your own unmanaged resources here.
58 //You should not access any managed member here except static instance.
59 //because the execution order of Finalizes is non-deterministic.
61 if (_popUpHiddenEventCallbackDelegate != null)
63 HiddenSignal().Disconnect(_popUpHiddenEventCallbackDelegate);
66 if (_popUpHidingEventCallbackDelegate != null)
68 HidingSignal().Disconnect(_popUpHidingEventCallbackDelegate);
71 if (_popUpShownEventCallbackDelegate != null)
73 ShownSignal().Disconnect(_popUpShownEventCallbackDelegate);
76 if (_popUpShowingEventCallbackDelegate != null)
78 ShowingSignal().Disconnect(_popUpShowingEventCallbackDelegate);
81 if (_popUpOutsideTouchedEventCallbackDelegate != null)
83 this.OutsideTouchedSignal().Disconnect(_popUpOutsideTouchedEventCallbackDelegate);
86 if (swigCPtr.Handle != global::System.IntPtr.Zero)
91 NDalicPINVOKE.delete_Popup(swigCPtr);
93 swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
103 /// Event arguments that passed via the OutsideTouchedEvent.
105 public class TouchedOutsideEventArgs : EventArgs
110 /// Event arguments that passed via the ShowingEventArgs.
112 public class ShowingEventArgs : EventArgs
117 /// Event arguments that passed via the ShownEventArgs.
119 public class ShownEventArgs : EventArgs
124 /// Event arguments that passed via the HidingEventArgs.
126 public class HidingEventArgs : EventArgs
131 /// Event arguments that passed via the HiddenEventArgs.
133 public class HiddenEventArgs : EventArgs
137 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
138 private delegate void OutsideTouchedEventCallbackDelegate();
139 private EventHandler<TouchedOutsideEventArgs> _popUpOutsideTouchedEventHandler;
140 private OutsideTouchedEventCallbackDelegate _popUpOutsideTouchedEventCallbackDelegate;
142 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
143 private delegate void ShowingEventCallbackDelegate();
144 private EventHandler<ShowingEventArgs> _popUpShowingEventHandler;
145 private ShowingEventCallbackDelegate _popUpShowingEventCallbackDelegate;
147 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
148 private delegate void ShownEventCallbackDelegate();
149 private EventHandler<ShownEventArgs> _popUpShownEventHandler;
150 private ShownEventCallbackDelegate _popUpShownEventCallbackDelegate;
152 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
153 private delegate void HidingEventCallbackDelegate();
154 private EventHandler<HidingEventArgs> _popUpHidingEventHandler;
155 private HidingEventCallbackDelegate _popUpHidingEventCallbackDelegate;
157 [UnmanagedFunctionPointer(CallingConvention.StdCall)]
158 private delegate void HiddenEventCallbackDelegate();
159 private EventHandler<HiddenEventArgs> _popUpHiddenEventHandler;
160 private HiddenEventCallbackDelegate _popUpHiddenEventCallbackDelegate;
163 /// An event is sent when the user has touched outside the dialog.
165 /// <since_tizen> 4 </since_tizen>
166 public event EventHandler<TouchedOutsideEventArgs> TouchedOutside
170 if (_popUpOutsideTouchedEventHandler == null)
172 _popUpOutsideTouchedEventCallbackDelegate = (OnOutsideTouched);
173 OutsideTouchedSignal().Connect(_popUpOutsideTouchedEventCallbackDelegate);
175 _popUpOutsideTouchedEventHandler += value;
179 _popUpOutsideTouchedEventHandler -= value;
180 if (_popUpOutsideTouchedEventHandler == null && OutsideTouchedSignal().Empty() == false)
182 this.OutsideTouchedSignal().Disconnect(_popUpOutsideTouchedEventCallbackDelegate);
187 // Callback for Popup OutsideTouchedSignal
188 private void OnOutsideTouched()
190 TouchedOutsideEventArgs e = new TouchedOutsideEventArgs();
192 if (_popUpOutsideTouchedEventHandler != null)
194 //here we send all data to user event handlers
195 _popUpOutsideTouchedEventHandler(this, e);
200 /// An event is sent when the popup starts showing.
202 /// <since_tizen> 3 </since_tizen>
203 public event EventHandler<ShowingEventArgs> Showing
207 if (_popUpShowingEventHandler == null)
209 _popUpShowingEventCallbackDelegate = (OnShowing);
210 ShowingSignal().Connect(_popUpShowingEventCallbackDelegate);
212 _popUpShowingEventHandler += value;
216 _popUpShowingEventHandler -= value;
217 if (_popUpShowingEventHandler == null && ShowingSignal().Empty() == false)
219 ShowingSignal().Disconnect(_popUpShowingEventCallbackDelegate);
224 // Callback for ShowingSignal
225 private void OnShowing()
227 ShowingEventArgs e = new ShowingEventArgs();
229 if (_popUpShowingEventHandler != null)
231 //here we send all data to user event handlers
232 _popUpShowingEventHandler(this, e);
238 /// An event is sent when the popup has been fully displayed.
240 /// <since_tizen> 3 </since_tizen>
241 public event EventHandler<ShownEventArgs> Shown
245 if (_popUpShownEventHandler == null)
247 _popUpShownEventCallbackDelegate = (OnShown);
248 ShownSignal().Connect(_popUpShownEventCallbackDelegate);
250 _popUpShownEventHandler += value;
254 _popUpShownEventHandler -= value;
255 if (_popUpShownEventHandler == null && ShownSignal().Empty() == false)
257 ShownSignal().Disconnect(_popUpShownEventCallbackDelegate);
262 // Callback for ShownSignal
263 private void OnShown()
265 ShownEventArgs e = new ShownEventArgs();
267 if (_popUpShownEventHandler != null)
269 //here we send all data to user event handlers
270 _popUpShownEventHandler(this, e);
275 /// An event is sent when the popup starts to hide.
277 /// <since_tizen> 3 </since_tizen>
278 public event EventHandler<HidingEventArgs> Hiding
282 if (_popUpHidingEventHandler == null)
284 _popUpHidingEventCallbackDelegate = (OnHiding);
285 HidingSignal().Connect(_popUpHidingEventCallbackDelegate);
287 _popUpHidingEventHandler += value;
291 _popUpHidingEventHandler -= value;
292 if (_popUpHidingEventHandler == null && HidingSignal().Empty() == false)
294 HidingSignal().Disconnect(_popUpHidingEventCallbackDelegate);
299 // Callback for HidingSignal
300 private void OnHiding()
302 HidingEventArgs e = new HidingEventArgs();
304 if (_popUpHidingEventHandler != null)
306 //here we send all data to user event handlers
307 _popUpHidingEventHandler(this, e);
312 /// An event is sent when the popup has been completely hidden.
314 /// <since_tizen> 3 </since_tizen>
315 public event EventHandler<HiddenEventArgs> Hidden
319 if (_popUpHiddenEventHandler == null)
321 _popUpHiddenEventCallbackDelegate = (OnHidden);
322 HiddenSignal().Connect(_popUpHiddenEventCallbackDelegate);
324 _popUpHiddenEventHandler += value;
328 _popUpHiddenEventHandler -= value;
329 if (_popUpHiddenEventHandler == null && HiddenSignal().Empty() == false)
331 HiddenSignal().Disconnect(_popUpHiddenEventCallbackDelegate);
336 // Callback for HiddenSignal
337 private void OnHidden()
339 HiddenEventArgs e = new HiddenEventArgs();
341 if (_popUpHiddenEventHandler != null)
343 //here we send all data to user event handlers
344 _popUpHiddenEventHandler(this, e);
348 internal new class Property
350 internal static readonly int TITLE = NDalicPINVOKE.Popup_Property_TITLE_get();
351 internal static readonly int CONTENT = NDalicPINVOKE.Popup_Property_CONTENT_get();
352 internal static readonly int FOOTER = NDalicPINVOKE.Popup_Property_FOOTER_get();
353 internal static readonly int DISPLAY_STATE = NDalicPINVOKE.Popup_Property_DISPLAY_STATE_get();
354 internal static readonly int TOUCH_TRANSPARENT = NDalicPINVOKE.Popup_Property_TOUCH_TRANSPARENT_get();
355 internal static readonly int TAIL_VISIBILITY = NDalicPINVOKE.Popup_Property_TAIL_VISIBILITY_get();
356 internal static readonly int TAIL_POSITION = NDalicPINVOKE.Popup_Property_TAIL_POSITION_get();
357 internal static readonly int CONTEXTUAL_MODE = NDalicPINVOKE.Popup_Property_CONTEXTUAL_MODE_get();
358 internal static readonly int ANIMATION_DURATION = NDalicPINVOKE.Popup_Property_ANIMATION_DURATION_get();
359 internal static readonly int ANIMATION_MODE = NDalicPINVOKE.Popup_Property_ANIMATION_MODE_get();
360 internal static readonly int ENTRY_ANIMATION = NDalicPINVOKE.Popup_Property_ENTRY_ANIMATION_get();
361 internal static readonly int EXIT_ANIMATION = NDalicPINVOKE.Popup_Property_EXIT_ANIMATION_get();
362 internal static readonly int AUTO_HIDE_DELAY = NDalicPINVOKE.Popup_Property_AUTO_HIDE_DELAY_get();
363 internal static readonly int BACKING_ENABLED = NDalicPINVOKE.Popup_Property_BACKING_ENABLED_get();
364 internal static readonly int BACKING_COLOR = NDalicPINVOKE.Popup_Property_BACKING_COLOR_get();
365 internal static readonly int POPUP_BACKGROUND_IMAGE = NDalicPINVOKE.Popup_Property_POPUP_BACKGROUND_IMAGE_get();
366 internal static readonly int POPUP_BACKGROUND_BORDER = NDalicPINVOKE.Popup_Property_POPUP_BACKGROUND_BORDER_get();
367 internal static readonly int TAIL_UP_IMAGE = NDalicPINVOKE.Popup_Property_TAIL_UP_IMAGE_get();
368 internal static readonly int TAIL_DOWN_IMAGE = NDalicPINVOKE.Popup_Property_TAIL_DOWN_IMAGE_get();
369 internal static readonly int TAIL_LEFT_IMAGE = NDalicPINVOKE.Popup_Property_TAIL_LEFT_IMAGE_get();
370 internal static readonly int TAIL_RIGHT_IMAGE = NDalicPINVOKE.Popup_Property_TAIL_RIGHT_IMAGE_get();
374 /// Creates the popup.
376 /// <since_tizen> 3 </since_tizen>
377 public Popup() : this(NDalicPINVOKE.Popup_New(), true)
379 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
383 [Obsolete("Please do not use! this will be deprecated")]
384 public new static Popup DownCast(BaseHandle handle)
386 Popup ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as Popup;
387 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
392 /// Sets the title for this popup.
394 /// <param name="titleView">The actor to set the title.</param>
395 /// <since_tizen> 3 </since_tizen>
396 public void SetTitle(View titleView)
398 NDalicPINVOKE.Popup_SetTitle(swigCPtr, View.getCPtr(titleView));
399 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
402 internal View GetTitle()
404 IntPtr cPtr = NDalicPINVOKE.Popup_GetTitle(swigCPtr);
405 View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
407 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
412 /// Sets the content actor.
414 /// <param name="content">The actor to use.</param>
415 /// <since_tizen> 3 </since_tizen>
416 public void SetContent(View content)
418 NDalicPINVOKE.Popup_SetContent(swigCPtr, View.getCPtr(content));
419 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
422 internal View GetContent()
424 IntPtr cPtr = NDalicPINVOKE.Popup_GetContent(swigCPtr);
425 View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
427 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
432 /// Sets the actor to use for the footer in this popup.
434 /// <param name="footer">The footer actor to be added to this popup.</param>
435 /// <since_tizen> 3 </since_tizen>
436 public void SetFooter(View footer)
438 NDalicPINVOKE.Popup_SetFooter(swigCPtr, View.getCPtr(footer));
439 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
442 internal View GetFooter()
444 IntPtr cPtr = NDalicPINVOKE.Popup_GetFooter(swigCPtr);
445 View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
447 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
452 /// Sets the display state of popup.<br>
453 /// There are 4 total display states.<br>
454 /// Only 2 can be set, but all four can be read for better inspection of the current popup state.<br>
456 /// The other two states are getable, but not setable, and are there for consistency.<br>
458 /// | Value | Setting the state | Getting the state |<br>
459 /// |----------|--------------------------------|--------------------------------|<br>
460 /// | SHOWN | Show the popup | The popup is fully shown |<br>
461 /// | HIDDEN | Hide the popup | The popup is fully hidden |<br>
462 /// | SHOWING | | The popup is transitioning in |<br>
463 /// | HIDING | | The popup is transitioning out |<br>
465 /// All 4 states changes cause notifications via 4 respective signals that can be connected to.<br>
467 /// <param name="displayState">The desired display state to change to.</param>
468 /// <since_tizen> 3 </since_tizen>
469 public void SetDisplayState(Popup.DisplayStateType displayState)
471 NDalicPINVOKE.Popup_SetDisplayState(swigCPtr, (int)displayState);
472 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
475 internal Popup.DisplayStateType GetDisplayState()
477 Popup.DisplayStateType ret = (Popup.DisplayStateType)NDalicPINVOKE.Popup_GetDisplayState(swigCPtr);
478 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
482 internal VoidSignal OutsideTouchedSignal()
484 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_OutsideTouchedSignal(swigCPtr), false);
485 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
489 internal VoidSignal ShowingSignal()
491 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_ShowingSignal(swigCPtr), false);
492 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
496 internal VoidSignal ShownSignal()
498 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_ShownSignal(swigCPtr), false);
499 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
503 internal VoidSignal HidingSignal()
505 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_HidingSignal(swigCPtr), false);
506 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
510 internal VoidSignal HiddenSignal()
512 VoidSignal ret = new VoidSignal(NDalicPINVOKE.Popup_HiddenSignal(swigCPtr), false);
513 if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
518 /// The display states of the popup.
520 /// <since_tizen> 3 </since_tizen>
521 public enum DisplayStateType
530 /// The animation modes within the popup.<br>
531 /// Choose from a predefined mode or "CUSTOM" to use the ANIMATION_IN and ANIMATION_OUT properties.<br>
533 /// <since_tizen> 3 </since_tizen>
534 public enum AnimationModeType
543 /// The types of the contextual layout.<br>
544 /// The popup is positioned adjacent to it's parent in the direction specified by this mode.<br>
545 /// NON_CONTEXTUAL disables any contextual positioning.<br>
547 /// <since_tizen> 3 </since_tizen>
548 public enum ContextualModeType
560 /// <since_tizen> 3 </since_tizen>
561 public PropertyMap Title
565 PropertyMap temp = new PropertyMap();
566 GetProperty(Popup.Property.TITLE).Get(temp);
571 SetProperty(Popup.Property.TITLE, new Tizen.NUI.PropertyValue(value));
575 /// The popup content.
577 /// <since_tizen> 3 </since_tizen>
578 public PropertyMap Content
582 PropertyMap temp = new PropertyMap();
583 GetProperty(Popup.Property.CONTENT).Get(temp);
588 SetProperty(Popup.Property.CONTENT, new Tizen.NUI.PropertyValue(value));
592 /// The popup footer.
594 /// <since_tizen> 3 </since_tizen>
595 public PropertyMap Footer
599 PropertyMap temp = new PropertyMap();
600 GetProperty(Popup.Property.FOOTER).Get(temp);
605 SetProperty(Popup.Property.FOOTER, new Tizen.NUI.PropertyValue(value));
609 /// The popup display state.
611 /// <since_tizen> 3 </since_tizen>
612 public DisplayStateType DisplayState
617 if (GetProperty(Popup.Property.DISPLAY_STATE).Get(out temp) == false)
619 NUILog.Error("DisplayState get error!");
624 return DisplayStateType.Showing;
626 return DisplayStateType.Shown;
628 return DisplayStateType.Hiding;
630 return DisplayStateType.Hidden;
632 return DisplayStateType.Hidden;
637 string valueToString = "";
640 case DisplayStateType.Showing:
642 valueToString = "SHOWING";
645 case DisplayStateType.Shown:
647 valueToString = "SHOWN";
650 case DisplayStateType.Hiding:
652 valueToString = "HIDING";
655 case DisplayStateType.Hidden:
657 valueToString = "HIDDEN";
662 valueToString = "HIDDEN";
666 SetProperty(Popup.Property.DISPLAY_STATE, new Tizen.NUI.PropertyValue(valueToString));
670 /// The touch transparent.
672 /// <since_tizen> 3 </since_tizen>
673 public bool TouchTransparent
678 GetProperty(Popup.Property.TOUCH_TRANSPARENT).Get(out temp);
683 SetProperty(Popup.Property.TOUCH_TRANSPARENT, new Tizen.NUI.PropertyValue(value));
687 /// The popup tail visibility.
689 /// <since_tizen> 3 </since_tizen>
690 public bool TailVisibility
695 GetProperty(Popup.Property.TAIL_VISIBILITY).Get(out temp);
700 SetProperty(Popup.Property.TAIL_VISIBILITY, new Tizen.NUI.PropertyValue(value));
704 /// The popup tail position.
706 /// <since_tizen> 3 </since_tizen>
707 public Vector3 TailPosition
711 Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
712 GetProperty(Popup.Property.TAIL_POSITION).Get(temp);
717 SetProperty(Popup.Property.TAIL_POSITION, new Tizen.NUI.PropertyValue(value));
721 /// The contextual mode.
723 /// <since_tizen> 3 </since_tizen>
724 public ContextualModeType ContextualMode
729 if (GetProperty(Popup.Property.CONTEXTUAL_MODE).Get(out temp) == false)
731 NUILog.Error("ContextualMode get error!");
735 case "NON_CONTEXTUAL":
736 return ContextualModeType.NonContextual;
738 return ContextualModeType.Above;
740 return ContextualModeType.Rright;
742 return ContextualModeType.Below;
744 return ContextualModeType.Left;
746 return ContextualModeType.Below;
751 string valueToString = "";
754 case ContextualModeType.NonContextual:
756 valueToString = "NON_CONTEXTUAL";
759 case ContextualModeType.Above:
761 valueToString = "ABOVE";
764 case ContextualModeType.Rright:
766 valueToString = "RIGHT";
769 case ContextualModeType.Below:
771 valueToString = "BELOW";
774 case ContextualModeType.Left:
776 valueToString = "LEFT";
781 valueToString = "BELOW";
785 SetProperty(Popup.Property.CONTEXTUAL_MODE, new Tizen.NUI.PropertyValue(valueToString));
789 /// The animation duration.
791 /// <since_tizen> 3 </since_tizen>
792 public float AnimationDuration
797 GetProperty(Popup.Property.ANIMATION_DURATION).Get(out temp);
802 SetProperty(Popup.Property.ANIMATION_DURATION, new Tizen.NUI.PropertyValue(value));
806 /// The animation mode.
808 /// <since_tizen> 3 </since_tizen>
809 public AnimationModeType AnimationMode
814 if (GetProperty(Popup.Property.ANIMATION_MODE).Get(out temp) == false)
816 NUILog.Error("AnimationMode get error!");
821 return AnimationModeType.None;
823 return AnimationModeType.Zoom;
825 return AnimationModeType.Fade;
827 return AnimationModeType.Custom;
829 return AnimationModeType.Fade;
834 string valueToString = "";
837 case AnimationModeType.None:
839 valueToString = "NONE";
842 case AnimationModeType.Zoom:
844 valueToString = "ZOOM";
847 case AnimationModeType.Fade:
849 valueToString = "FADE";
852 case AnimationModeType.Custom:
854 valueToString = "CUSTOM";
859 valueToString = "FADE";
863 SetProperty(Popup.Property.ANIMATION_MODE, new Tizen.NUI.PropertyValue(valueToString));
867 /// The entry animation.
869 /// <since_tizen> 3 </since_tizen>
870 public PropertyMap EntryAnimation
874 PropertyMap temp = new PropertyMap();
875 GetProperty(Popup.Property.ENTRY_ANIMATION).Get(temp);
880 SetProperty(Popup.Property.ENTRY_ANIMATION, new Tizen.NUI.PropertyValue(value));
884 /// The exit animation.
886 /// <since_tizen> 3 </since_tizen>
887 public PropertyMap ExitAnimation
891 PropertyMap temp = new PropertyMap();
892 GetProperty(Popup.Property.EXIT_ANIMATION).Get(temp);
897 SetProperty(Popup.Property.EXIT_ANIMATION, new Tizen.NUI.PropertyValue(value));
901 /// The auto hide delay.
903 /// <since_tizen> 3 </since_tizen>
904 public int AutoHideDelay
909 GetProperty(Popup.Property.AUTO_HIDE_DELAY).Get(out temp);
914 SetProperty(Popup.Property.AUTO_HIDE_DELAY, new Tizen.NUI.PropertyValue(value));
918 /// The backing enabled.
920 /// <since_tizen> 3 </since_tizen>
921 public bool BackingEnabled
926 GetProperty(Popup.Property.BACKING_ENABLED).Get(out temp);
931 SetProperty(Popup.Property.BACKING_ENABLED, new Tizen.NUI.PropertyValue(value));
935 /// The backing color.
937 /// <since_tizen> 3 </since_tizen>
938 public Vector4 BackingColor
942 Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
943 GetProperty(Popup.Property.BACKING_COLOR).Get(temp);
948 SetProperty(Popup.Property.BACKING_COLOR, new Tizen.NUI.PropertyValue(value));
952 /// The background image.
954 /// <since_tizen> 3 </since_tizen>
955 public string PopupBackgroundImage
960 GetProperty(Popup.Property.POPUP_BACKGROUND_IMAGE).Get(out temp);
965 SetProperty(Popup.Property.POPUP_BACKGROUND_IMAGE, new Tizen.NUI.PropertyValue(value));
969 /// The background border.
971 /// <since_tizen> 3 </since_tizen>
972 public Rectangle PopupBackgroundBorder
976 Rectangle temp = new Rectangle(0, 0, 0, 0);
977 GetProperty(Popup.Property.POPUP_BACKGROUND_BORDER).Get(temp);
982 SetProperty(Popup.Property.POPUP_BACKGROUND_BORDER, new Tizen.NUI.PropertyValue(value));
986 /// The tail up image.
988 /// <since_tizen> 3 </since_tizen>
989 public string TailUpImage
994 GetProperty(Popup.Property.TAIL_UP_IMAGE).Get(out temp);
999 SetProperty(Popup.Property.TAIL_UP_IMAGE, new Tizen.NUI.PropertyValue(value));
1003 /// The tail down image.
1005 /// <since_tizen> 3 </since_tizen>
1006 public string TailDownImage
1011 GetProperty(Popup.Property.TAIL_DOWN_IMAGE).Get(out temp);
1016 SetProperty(Popup.Property.TAIL_DOWN_IMAGE, new Tizen.NUI.PropertyValue(value));
1020 /// The tail left image.
1022 /// <since_tizen> 3 </since_tizen>
1023 public string TailLeftImage
1028 GetProperty(Popup.Property.TAIL_LEFT_IMAGE).Get(out temp);
1033 SetProperty(Popup.Property.TAIL_LEFT_IMAGE, new Tizen.NUI.PropertyValue(value));
1037 /// The tail right image.
1039 /// <since_tizen> 3 </since_tizen>
1040 public string TailRightImage
1045 GetProperty(Popup.Property.TAIL_RIGHT_IMAGE).Get(out temp);
1050 SetProperty(Popup.Property.TAIL_RIGHT_IMAGE, new Tizen.NUI.PropertyValue(value));