/* * Copyright(c) 2019 Samsung Electronics Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * */ using System; using System.ComponentModel; using System.Runtime.InteropServices; using Tizen.NUI.BaseComponents; using Tizen.NUI.Binding; namespace Tizen.NUI.UIComponents { /// /// The Popup widget provides a configurable popup dialog with a built-in layout of three main fields. /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public class Popup : View { /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty TitleProperty = BindableProperty.Create("Title", typeof(PropertyMap), typeof(Popup), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; if (newValue != null) { Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.TITLE, new Tizen.NUI.PropertyValue((PropertyMap)newValue)); } }, defaultValueCreator:(bindable) => { var popup = (Popup)bindable; PropertyMap temp = new PropertyMap(); Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.TITLE).Get(temp); return temp; }); /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty ContentProperty = BindableProperty.Create("Content", typeof(PropertyMap), typeof(Popup), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; if (newValue != null) { Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.CONTENT, new Tizen.NUI.PropertyValue((PropertyMap)newValue)); } }, defaultValueCreator:(bindable) => { var popup = (Popup)bindable; PropertyMap temp = new PropertyMap(); Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.CONTENT).Get(temp); return temp; }); /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty FooterProperty = BindableProperty.Create("Footer", typeof(PropertyMap), typeof(Popup), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; if (newValue != null) { Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.FOOTER, new Tizen.NUI.PropertyValue((PropertyMap)newValue)); } }, defaultValueCreator:(bindable) => { var popup = (Popup)bindable; PropertyMap temp = new PropertyMap(); Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.FOOTER).Get(temp); return temp; }); /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty DisplayStateProperty = BindableProperty.Create("DisplayState", typeof(DisplayStateType), typeof(Popup), DisplayStateType.Hidden, propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; string valueToString = ""; if (newValue != null) { switch ((DisplayStateType)newValue) { case DisplayStateType.Showing: { valueToString = "SHOWING"; break; } case DisplayStateType.Shown: { valueToString = "SHOWN"; break; } case DisplayStateType.Hiding: { valueToString = "HIDING"; break; } case DisplayStateType.Hidden: { valueToString = "HIDDEN"; break; } default: { valueToString = "HIDDEN"; break; } } Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.DISPLAY_STATE, new Tizen.NUI.PropertyValue(valueToString)); } }, defaultValueCreator:(bindable) => { var popup = (Popup)bindable; string temp; if (Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.DISPLAY_STATE).Get(out temp) == false) { NUILog.Error("DisplayState get error!"); } switch (temp) { case "SHOWING": return DisplayStateType.Showing; case "SHOWN": return DisplayStateType.Shown; case "HIDING": return DisplayStateType.Hiding; case "HIDDEN": return DisplayStateType.Hidden; default: return DisplayStateType.Hidden; } }); /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty TouchTransparentProperty = BindableProperty.Create("TouchTransparent", typeof(bool), typeof(Popup), false, propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; if (newValue != null) { Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.TOUCH_TRANSPARENT, new Tizen.NUI.PropertyValue((bool)newValue)); } }, defaultValueCreator:(bindable) => { var popup = (Popup)bindable; bool temp = false; Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.TOUCH_TRANSPARENT).Get(out temp); return temp; }); /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty TailVisibilityProperty = BindableProperty.Create("TailVisibility", typeof(bool), typeof(Popup), false, propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; if (newValue != null) { Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.TAIL_VISIBILITY, new Tizen.NUI.PropertyValue((bool)newValue)); } }, defaultValueCreator:(bindable) => { var popup = (Popup)bindable; bool temp = false; Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.TAIL_VISIBILITY).Get(out temp); return temp; }); /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty TailPositionProperty = BindableProperty.Create("TailPosition", typeof(Vector3), typeof(Popup), Vector3.Zero, propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; if (newValue != null) { Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.TAIL_POSITION, new Tizen.NUI.PropertyValue((Vector3)newValue)); } }, defaultValueCreator:(bindable) => { var popup = (Popup)bindable; Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f); Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.TAIL_POSITION).Get(temp); return temp; }); /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty ContextualModeProperty = BindableProperty.Create("ContextualMode", typeof(ContextualModeType), typeof(Popup), ContextualModeType.Below, propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; string valueToString = ""; if (newValue != null) { switch ((ContextualModeType)newValue) { case ContextualModeType.NonContextual: { valueToString = "NON_CONTEXTUAL"; break; } case ContextualModeType.Above: { valueToString = "ABOVE"; break; } case ContextualModeType.Rright: { valueToString = "RIGHT"; break; } case ContextualModeType.Below: { valueToString = "BELOW"; break; } case ContextualModeType.Left: { valueToString = "LEFT"; break; } default: { valueToString = "BELOW"; break; } } Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.CONTEXTUAL_MODE, new Tizen.NUI.PropertyValue(valueToString)); } }, defaultValueCreator:(bindable) => { var popup = (Popup)bindable; string temp; if (Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.CONTEXTUAL_MODE).Get(out temp) == false) { NUILog.Error("ContextualMode get error!"); } switch (temp) { case "NON_CONTEXTUAL": return ContextualModeType.NonContextual; case "ABOVE": return ContextualModeType.Above; case "RIGHT": return ContextualModeType.Rright; case "BELOW": return ContextualModeType.Below; case "LEFT": return ContextualModeType.Left; default: return ContextualModeType.Below; } }); /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty AnimationDurationProperty = BindableProperty.Create("AnimationDuration", typeof(float), typeof(Popup), default(float), propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; if (newValue != null) { Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.ANIMATION_DURATION, new Tizen.NUI.PropertyValue((float)newValue)); } }, defaultValueCreator:(bindable) => { var popup = (Popup)bindable; float temp = 0.0f; Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.ANIMATION_DURATION).Get(out temp); return temp; }); /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty AnimationModeProperty = BindableProperty.Create("AnimationMode", typeof(AnimationModeType), typeof(Popup), AnimationModeType.Fade, propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; string valueToString = ""; if (newValue != null) { switch ((AnimationModeType)newValue) { case AnimationModeType.None: { valueToString = "NONE"; break; } case AnimationModeType.Zoom: { valueToString = "ZOOM"; break; } case AnimationModeType.Fade: { valueToString = "FADE"; break; } case AnimationModeType.Custom: { valueToString = "CUSTOM"; break; } default: { valueToString = "FADE"; break; } } Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.ANIMATION_MODE, new Tizen.NUI.PropertyValue(valueToString)); } }, defaultValueCreator:(bindable) => { var popup = (Popup)bindable; string temp; if (Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.ANIMATION_MODE).Get(out temp) == false) { NUILog.Error("AnimationMode get error!"); } switch (temp) { case "NONE": return AnimationModeType.None; case "ZOOM": return AnimationModeType.Zoom; case "FADE": return AnimationModeType.Fade; case "CUSTOM": return AnimationModeType.Custom; default: return AnimationModeType.Fade; } }); /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty EntryAnimationProperty = BindableProperty.Create("EntryAnimation", typeof(PropertyMap), typeof(Popup), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; if (newValue != null) { Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.ENTRY_ANIMATION, new Tizen.NUI.PropertyValue((PropertyMap)newValue)); } }, defaultValueCreator:(bindable) => { var popup = (Popup)bindable; PropertyMap temp = new PropertyMap(); Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.ENTRY_ANIMATION).Get(temp); return temp; }); /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty ExitAnimationProperty = BindableProperty.Create("ExitAnimation", typeof(PropertyMap), typeof(Popup), new PropertyMap(), propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; if (newValue != null) { Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.EXIT_ANIMATION, new Tizen.NUI.PropertyValue((PropertyMap)newValue)); } }, defaultValueCreator:(bindable) => { var popup = (Popup)bindable; PropertyMap temp = new PropertyMap(); Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.EXIT_ANIMATION).Get(temp); return temp; }); /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty AutoHideDelayProperty = BindableProperty.Create("AutoHideDelay", typeof(int), typeof(Popup), default(int), propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; if (newValue != null) { Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.AUTO_HIDE_DELAY, new Tizen.NUI.PropertyValue((int)newValue)); } }, defaultValueCreator:(bindable) => { var popup = (Popup)bindable; int temp = 0; Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.AUTO_HIDE_DELAY).Get(out temp); return temp; }); /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty BackingEnabledProperty = BindableProperty.Create("BackingEnabled", typeof(bool), typeof(Popup), false, propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; if (newValue != null) { Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.BACKING_ENABLED, new Tizen.NUI.PropertyValue((bool)newValue)); } }, defaultValueCreator:(bindable) => { var popup = (Popup)bindable; bool temp = false; Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.BACKING_ENABLED).Get(out temp); return temp; }); /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty BackingColorProperty = BindableProperty.Create("BackingColor", typeof(Vector4), typeof(Popup), Vector4.Zero, propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; if (newValue != null) { Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.BACKING_COLOR, new Tizen.NUI.PropertyValue((Vector4)newValue)); } }, defaultValueCreator:(bindable) => { var popup = (Popup)bindable; Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f); Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.BACKING_COLOR).Get(temp); return temp; }); /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty PopupBackgroundImageProperty = BindableProperty.Create("PopupBackgroundImage", typeof(string), typeof(Popup), string.Empty, propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; if (newValue != null) { Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.POPUP_BACKGROUND_IMAGE, new Tizen.NUI.PropertyValue((string)newValue)); } }, defaultValueCreator:(bindable) => { var popup = (Popup)bindable; string temp; Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.POPUP_BACKGROUND_IMAGE).Get(out temp); return temp; }); /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty PopupBackgroundBorderProperty = BindableProperty.Create("PopupBackgroundBorder", typeof(Rectangle), typeof(Popup), new Rectangle(0,0,0,0), propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; if (newValue != null) { Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.POPUP_BACKGROUND_BORDER, new Tizen.NUI.PropertyValue((Rectangle)newValue)); } }, defaultValueCreator:(bindable) => { var popup = (Popup)bindable; Rectangle temp = new Rectangle(0, 0, 0, 0); Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.POPUP_BACKGROUND_BORDER).Get(temp); return temp; }); /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty TailUpImageProperty = BindableProperty.Create("TailUpImage", typeof(string), typeof(Popup), string.Empty, propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; if (newValue != null) { Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.TAIL_UP_IMAGE, new Tizen.NUI.PropertyValue((string)newValue)); } }, defaultValueCreator:(bindable) => { var popup = (Popup)bindable; string temp; Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.TAIL_UP_IMAGE).Get(out temp); return temp; }); /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty TailDownImageProperty = BindableProperty.Create("TailDownImage", typeof(string), typeof(Popup), string.Empty, propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; if (newValue != null) { Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.TAIL_DOWN_IMAGE, new Tizen.NUI.PropertyValue((string)newValue)); } }, defaultValueCreator:(bindable) => { var popup = (Popup)bindable; string temp; Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.TAIL_DOWN_IMAGE).Get(out temp); return temp; }); /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty TailLeftImageProperty = BindableProperty.Create("TailLeftImage", typeof(string), typeof(Popup), string.Empty, propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; if (newValue != null) { Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.TAIL_LEFT_IMAGE, new Tizen.NUI.PropertyValue((string)newValue)); } }, defaultValueCreator:(bindable) => { var popup = (Popup)bindable; string temp; Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.TAIL_LEFT_IMAGE).Get(out temp); return temp; }); /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public static readonly BindableProperty TailRightImageProperty = BindableProperty.Create("TailRightImage", typeof(string), typeof(Popup), string.Empty, propertyChanged: (bindable, oldValue, newValue) => { var popup = (Popup)bindable; if (newValue != null) { Tizen.NUI.Object.SetProperty(popup.swigCPtr, Popup.Property.TAIL_RIGHT_IMAGE, new Tizen.NUI.PropertyValue((string)newValue)); } }, defaultValueCreator:(bindable) => { var popup = (Popup)bindable; string temp; Tizen.NUI.Object.GetProperty(popup.swigCPtr, Popup.Property.TAIL_RIGHT_IMAGE).Get(out temp); return temp; }); private global::System.Runtime.InteropServices.HandleRef swigCPtr; private EventHandler _popUpOutsideTouchedEventHandler; private OutsideTouchedEventCallbackDelegate _popUpOutsideTouchedEventCallbackDelegate; private EventHandler _popUpShowingEventHandler; private ShowingEventCallbackDelegate _popUpShowingEventCallbackDelegate; private EventHandler _popUpShownEventHandler; private ShownEventCallbackDelegate _popUpShownEventCallbackDelegate; private EventHandler _popUpHidingEventHandler; private HidingEventCallbackDelegate _popUpHidingEventCallbackDelegate; private EventHandler _popUpHiddenEventHandler; private HiddenEventCallbackDelegate _popUpHiddenEventCallbackDelegate; /// /// Creates the popup. /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public Popup() : this(Interop.Popup.Popup_New(), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } internal Popup(global::System.IntPtr cPtr, bool cMemoryOwn) : base(Interop.Popup.Popup_SWIGUpcast(cPtr), cMemoryOwn) { swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); } [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate void OutsideTouchedEventCallbackDelegate(); [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate void ShowingEventCallbackDelegate(); [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate void ShownEventCallbackDelegate(); [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate void HidingEventCallbackDelegate(); [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate void HiddenEventCallbackDelegate(); /// /// An event is sent when the user has touched outside the dialog. /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public event EventHandler TouchedOutside { add { if (_popUpOutsideTouchedEventHandler == null) { _popUpOutsideTouchedEventCallbackDelegate = (OnOutsideTouched); OutsideTouchedSignal().Connect(_popUpOutsideTouchedEventCallbackDelegate); } _popUpOutsideTouchedEventHandler += value; } remove { _popUpOutsideTouchedEventHandler -= value; if (_popUpOutsideTouchedEventHandler == null && OutsideTouchedSignal().Empty() == false) { this.OutsideTouchedSignal().Disconnect(_popUpOutsideTouchedEventCallbackDelegate); } } } /// /// An event is sent when the popup starts showing. /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public event EventHandler Showing { add { if (_popUpShowingEventHandler == null) { _popUpShowingEventCallbackDelegate = (OnShowing); ShowingSignal().Connect(_popUpShowingEventCallbackDelegate); } _popUpShowingEventHandler += value; } remove { _popUpShowingEventHandler -= value; if (_popUpShowingEventHandler == null && ShowingSignal().Empty() == false) { ShowingSignal().Disconnect(_popUpShowingEventCallbackDelegate); } } } /// /// An event is sent when the popup has been fully displayed. /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public event EventHandler Shown { add { if (_popUpShownEventHandler == null) { _popUpShownEventCallbackDelegate = (OnShown); ShownSignal().Connect(_popUpShownEventCallbackDelegate); } _popUpShownEventHandler += value; } remove { _popUpShownEventHandler -= value; if (_popUpShownEventHandler == null && ShownSignal().Empty() == false) { ShownSignal().Disconnect(_popUpShownEventCallbackDelegate); } } } /// /// An event is sent when the popup starts to hide. /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public event EventHandler Hiding { add { if (_popUpHidingEventHandler == null) { _popUpHidingEventCallbackDelegate = (OnHiding); HidingSignal().Connect(_popUpHidingEventCallbackDelegate); } _popUpHidingEventHandler += value; } remove { _popUpHidingEventHandler -= value; if (_popUpHidingEventHandler == null && HidingSignal().Empty() == false) { HidingSignal().Disconnect(_popUpHidingEventCallbackDelegate); } } } /// /// An event is sent when the popup has been completely hidden. /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public event EventHandler Hidden { add { if (_popUpHiddenEventHandler == null) { _popUpHiddenEventCallbackDelegate = (OnHidden); HiddenSignal().Connect(_popUpHiddenEventCallbackDelegate); } _popUpHiddenEventHandler += value; } remove { _popUpHiddenEventHandler -= value; if (_popUpHiddenEventHandler == null && HiddenSignal().Empty() == false) { HiddenSignal().Disconnect(_popUpHiddenEventCallbackDelegate); } } } /// /// The display states of the popup. /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public enum DisplayStateType { /// /// The popup is transitioning in /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] Showing, /// /// The popup is fully shown /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] Shown, /// /// The popup is transitioning out /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] Hiding, /// /// The popup is fully hidden /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] Hidden } /// /// The animation modes within the popup.
/// Choose from a predefined mode or "CUSTOM" to use the ANIMATION_IN and ANIMATION_OUT properties.
///
/// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public enum AnimationModeType { /// /// No animation. /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] None, /// /// Popup zooms in and out animating the scale property. /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] Zoom, /// /// Popup fades in and out /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] Fade, /// /// Use the EntryAnimation and ExitAnimation animation properties. /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] Custom } /// /// The types of the contextual layout.
/// The popup is positioned adjacent to it's parent in the direction specified by this mode.
/// NON_CONTEXTUAL disables any contextual positioning.
///
/// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public enum ContextualModeType { /// /// any contextual positioning /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] NonContextual, /// /// Above /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] Above, /// /// Rright /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] Rright, /// /// Below /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] Below, /// /// Left /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] Left } /// /// The popup title. /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public PropertyMap Title { get { return (PropertyMap)GetValue(TitleProperty); } set { SetValue(TitleProperty, value); } } /// /// The popup content. /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public PropertyMap Content { get { return (PropertyMap)GetValue(ContentProperty); } set { SetValue(ContentProperty, value); } } /// /// The popup footer. /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public PropertyMap Footer { get { return (PropertyMap)GetValue(FooterProperty); } set { SetValue(FooterProperty, value); } } /// /// The popup display state. /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public DisplayStateType DisplayState { get { return (DisplayStateType)GetValue(DisplayStateProperty); } set { SetValue(DisplayStateProperty, value); } } /// /// The touch transparent. /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public bool TouchTransparent { get { return (bool)GetValue(TouchTransparentProperty); } set { SetValue(TouchTransparentProperty, value); } } /// /// The popup tail visibility. /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public bool TailVisibility { get { return (bool)GetValue(TailVisibilityProperty); } set { SetValue(TailVisibilityProperty, value); } } /// /// The popup tail position. /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public Vector3 TailPosition { get { return (Vector3)GetValue(TailPositionProperty); } set { SetValue(TailPositionProperty, value); } } /// /// The contextual mode. /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public ContextualModeType ContextualMode { get { return (ContextualModeType)GetValue(ContextualModeProperty); } set { SetValue(ContextualModeProperty, value); } } /// /// The animation duration. /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public float AnimationDuration { get { return (float)GetValue(AnimationDurationProperty); } set { SetValue(AnimationDurationProperty, value); } } /// /// The animation mode. /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public AnimationModeType AnimationMode { get { return (AnimationModeType)GetValue(AnimationModeProperty); } set { SetValue(AnimationModeProperty, value); } } /// /// The entry animation. /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public PropertyMap EntryAnimation { get { return (PropertyMap)GetValue(EntryAnimationProperty); } set { SetValue(EntryAnimationProperty, value); } } /// /// The exit animation. /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public PropertyMap ExitAnimation { get { return (PropertyMap)GetValue(ExitAnimationProperty); } set { SetValue(ExitAnimationProperty, value); } } /// /// The auto hide delay. /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public int AutoHideDelay { get { return (int)GetValue(AutoHideDelayProperty); } set { SetValue(AutoHideDelayProperty, value); } } /// /// The backing enabled. /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public bool BackingEnabled { get { return (bool)GetValue(BackingEnabledProperty); } set { SetValue(BackingEnabledProperty, value); } } /// /// The backing color. /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public Vector4 BackingColor { get { return (Vector4)GetValue(BackingColorProperty); } set { SetValue(BackingColorProperty, value); } } /// /// The background image. /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public string PopupBackgroundImage { get { return (string)GetValue(PopupBackgroundImageProperty); } set { SetValue(PopupBackgroundImageProperty, value); } } /// /// The background border. /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public Rectangle PopupBackgroundBorder { get { return (Rectangle)GetValue(PopupBackgroundBorderProperty); } set { SetValue(PopupBackgroundBorderProperty, value); } } /// /// The tail up image. /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public string TailUpImage { get { return (string)GetValue(TailUpImageProperty); } set { SetValue(TailUpImageProperty, value); } } /// /// The tail down image. /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public string TailDownImage { get { return (string)GetValue(TailDownImageProperty); } set { SetValue(TailDownImageProperty, value); } } /// /// The tail left image. /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public string TailLeftImage { get { return (string)GetValue(TailLeftImageProperty); } set { SetValue(TailLeftImageProperty, value); } } /// /// The tail right image. /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public string TailRightImage { get { return (string)GetValue(TailRightImageProperty); } set { SetValue(TailRightImageProperty, value); } } /// /// Sets the title for this popup. /// /// The actor to set the title. /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public void SetTitle(View titleView) { Interop.Popup.Popup_SetTitle(swigCPtr, View.getCPtr(titleView)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } /// /// Sets the content actor. /// /// The actor to use. /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public void SetContent(View content) { Interop.Popup.Popup_SetContent(swigCPtr, View.getCPtr(content)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } /// /// Sets the actor to use for the footer in this popup. /// /// The footer actor to be added to this popup. /// 3 /// This will be deprecated [EditorBrowsable(EditorBrowsableState.Never)] [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] public void SetFooter(View footer) { Interop.Popup.Popup_SetFooter(swigCPtr, View.getCPtr(footer)); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } /// /// Sets the display state of popup.
/// There are 4 total display states.
/// Only 2 can be set, but all four can be read for better inspection of the current popup state.
///
/// The other two states are getable, but not setable, and are there for consistency.
///
/// | Value | Setting the state | Getting the state |
/// |----------|--------------------------------|--------------------------------|
/// | SHOWN | Show the popup | The popup is fully shown |
/// | HIDDEN | Hide the popup | The popup is fully hidden |
/// | SHOWING | | The popup is transitioning in |
/// | HIDING | | The popup is transitioning out |
///
/// All 4 states changes cause notifications via 4 respective signals that can be connected to.
///
/// The desired display state to change to. /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public void SetDisplayState(Popup.DisplayStateType displayState) { Interop.Popup.Popup_SetDisplayState(swigCPtr, (int)displayState); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Popup obj) { return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr; } internal View GetTitle() { //to fix memory leak issue, match the handle count with native side. IntPtr cPtr = Interop.Popup.Popup_GetTitle(swigCPtr); View ret = this.GetInstanceSafely(cPtr); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } internal View GetContent() { //to fix memory leak issue, match the handle count with native side. IntPtr cPtr = Interop.Popup.Popup_GetContent(swigCPtr); View ret = this.GetInstanceSafely(cPtr); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } internal View GetFooter() { //to fix memory leak issue, match the handle count with native side. IntPtr cPtr = Interop.Popup.Popup_GetFooter(swigCPtr); View ret = this.GetInstanceSafely(cPtr); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } internal Popup.DisplayStateType GetDisplayState() { Popup.DisplayStateType ret = (Popup.DisplayStateType)Interop.Popup.Popup_GetDisplayState(swigCPtr); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } internal VoidSignal OutsideTouchedSignal() { VoidSignal ret = new VoidSignal(Interop.Popup.Popup_OutsideTouchedSignal(swigCPtr), false); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } internal VoidSignal ShowingSignal() { VoidSignal ret = new VoidSignal(Interop.Popup.Popup_ShowingSignal(swigCPtr), false); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } internal VoidSignal ShownSignal() { VoidSignal ret = new VoidSignal(Interop.Popup.Popup_ShownSignal(swigCPtr), false); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } internal VoidSignal HidingSignal() { VoidSignal ret = new VoidSignal(Interop.Popup.Popup_HidingSignal(swigCPtr), false); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } internal VoidSignal HiddenSignal() { VoidSignal ret = new VoidSignal(Interop.Popup.Popup_HiddenSignal(swigCPtr), false); if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); return ret; } /// /// Dispose. /// /// The dispose type /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] protected override void Dispose(DisposeTypes type) { if (disposed) { return; } //Release your own unmanaged resources here. //You should not access any managed member here except static instance. //because the execution order of Finalizes is non-deterministic. if (this != null) { if (_popUpHiddenEventCallbackDelegate != null) { HiddenSignal().Disconnect(_popUpHiddenEventCallbackDelegate); } if (_popUpHidingEventCallbackDelegate != null) { HidingSignal().Disconnect(_popUpHidingEventCallbackDelegate); } } if (_popUpShownEventCallbackDelegate != null) { ShownSignal().Disconnect(_popUpShownEventCallbackDelegate); } if (_popUpShowingEventCallbackDelegate != null) { ShowingSignal().Disconnect(_popUpShowingEventCallbackDelegate); } if (_popUpOutsideTouchedEventCallbackDelegate != null) { this.OutsideTouchedSignal().Disconnect(_popUpOutsideTouchedEventCallbackDelegate); } if (swigCPtr.Handle != global::System.IntPtr.Zero) { if (swigCMemOwn) { swigCMemOwn = false; Interop.Popup.delete_Popup(swigCPtr); } swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); } base.Dispose(type); } // Callback for Popup OutsideTouchedSignal private void OnOutsideTouched() { TouchedOutsideEventArgs e = new TouchedOutsideEventArgs(); if (_popUpOutsideTouchedEventHandler != null) { //here we send all data to user event handlers _popUpOutsideTouchedEventHandler(this, e); } } // Callback for ShowingSignal private void OnShowing() { ShowingEventArgs e = new ShowingEventArgs(); if (_popUpShowingEventHandler != null) { //here we send all data to user event handlers _popUpShowingEventHandler(this, e); } } // Callback for ShownSignal private void OnShown() { ShownEventArgs e = new ShownEventArgs(); if (_popUpShownEventHandler != null) { //here we send all data to user event handlers _popUpShownEventHandler(this, e); } } // Callback for HidingSignal private void OnHiding() { HidingEventArgs e = new HidingEventArgs(); if (_popUpHidingEventHandler != null) { //here we send all data to user event handlers _popUpHidingEventHandler(this, e); } } // Callback for HiddenSignal private void OnHidden() { HiddenEventArgs e = new HiddenEventArgs(); if (_popUpHiddenEventHandler != null) { //here we send all data to user event handlers _popUpHiddenEventHandler(this, e); } } /// /// Event arguments that passed via the OutsideTouchedEvent. /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public class TouchedOutsideEventArgs : EventArgs { } /// /// Event arguments that passed via the ShowingEventArgs. /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public class ShowingEventArgs : EventArgs { } /// /// Event arguments that passed via the ShownEventArgs. /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public class ShownEventArgs : EventArgs { } /// /// Event arguments that passed via the HidingEventArgs. /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public class HidingEventArgs : EventArgs { } /// /// Event arguments that passed via the HiddenEventArgs. /// /// 3 /// This will be deprecated [Obsolete("Deprecated in API6; Will be removed in API9. Please use Tizen.NUI.Components")] [EditorBrowsable(EditorBrowsableState.Never)] public class HiddenEventArgs : EventArgs { } internal new class Property { internal static readonly int TITLE = Interop.Popup.Popup_Property_TITLE_get(); internal static readonly int CONTENT = Interop.Popup.Popup_Property_CONTENT_get(); internal static readonly int FOOTER = Interop.Popup.Popup_Property_FOOTER_get(); internal static readonly int DISPLAY_STATE = Interop.Popup.Popup_Property_DISPLAY_STATE_get(); internal static readonly int TOUCH_TRANSPARENT = Interop.Popup.Popup_Property_TOUCH_TRANSPARENT_get(); internal static readonly int TAIL_VISIBILITY = Interop.Popup.Popup_Property_TAIL_VISIBILITY_get(); internal static readonly int TAIL_POSITION = Interop.Popup.Popup_Property_TAIL_POSITION_get(); internal static readonly int CONTEXTUAL_MODE = Interop.Popup.Popup_Property_CONTEXTUAL_MODE_get(); internal static readonly int ANIMATION_DURATION = Interop.Popup.Popup_Property_ANIMATION_DURATION_get(); internal static readonly int ANIMATION_MODE = Interop.Popup.Popup_Property_ANIMATION_MODE_get(); internal static readonly int ENTRY_ANIMATION = Interop.Popup.Popup_Property_ENTRY_ANIMATION_get(); internal static readonly int EXIT_ANIMATION = Interop.Popup.Popup_Property_EXIT_ANIMATION_get(); internal static readonly int AUTO_HIDE_DELAY = Interop.Popup.Popup_Property_AUTO_HIDE_DELAY_get(); internal static readonly int BACKING_ENABLED = Interop.Popup.Popup_Property_BACKING_ENABLED_get(); internal static readonly int BACKING_COLOR = Interop.Popup.Popup_Property_BACKING_COLOR_get(); internal static readonly int POPUP_BACKGROUND_IMAGE = Interop.Popup.Popup_Property_POPUP_BACKGROUND_IMAGE_get(); internal static readonly int POPUP_BACKGROUND_BORDER = Interop.Popup.Popup_Property_POPUP_BACKGROUND_BORDER_get(); internal static readonly int TAIL_UP_IMAGE = Interop.Popup.Popup_Property_TAIL_UP_IMAGE_get(); internal static readonly int TAIL_DOWN_IMAGE = Interop.Popup.Popup_Property_TAIL_DOWN_IMAGE_get(); internal static readonly int TAIL_LEFT_IMAGE = Interop.Popup.Popup_Property_TAIL_LEFT_IMAGE_get(); internal static readonly int TAIL_RIGHT_IMAGE = Interop.Popup.Popup_Property_TAIL_RIGHT_IMAGE_get(); } } }