* limitations under the License.
*
*/
-// This File has been auto-generated by SWIG and then modified using DALi Ruby Scripts
-//------------------------------------------------------------------------------
-// <auto-generated />
-//
-// This file was automatically generated by SWIG (http://www.swig.org).
-// Version 3.0.9
-//
-// Do not make changes to this file unless you know what you are doing--modify
-// the SWIG interface file instead.
-//------------------------------------------------------------------------------
namespace Tizen.NUI.UIComponents
{
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
- public override void Dispose()
+
+ protected override void Dispose(DisposeTypes type)
{
- if (!Stage.IsInstalled())
+ if (disposed)
{
- DisposeQueue.Instance.Add(this);
return;
}
- lock (this)
+ if (type == DisposeTypes.Explicit)
+ {
+ //Called by User
+ //Release your own managed resources here.
+ //You should release all of your own disposable objects here.
+
+ }
+
+ //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 (swigCPtr.Handle != global::System.IntPtr.Zero)
{
- if (swigCPtr.Handle != global::System.IntPtr.Zero)
+ if (swigCMemOwn)
{
- if (swigCMemOwn)
- {
- swigCMemOwn = false;
- NDalicPINVOKE.delete_Popup(swigCPtr);
- }
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ swigCMemOwn = false;
+ NDalicPINVOKE.delete_Popup(swigCPtr);
}
- global::System.GC.SuppressFinalize(this);
- base.Dispose();
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
+
+ base.Dispose(type);
}
+
/// <summary>
/// Event arguments that passed via OutsideTouchedEvent
/// </summary>
- public class OutsideTouchedEventArgs : EventArgs
+ public class TouchedOutsideEventArgs : EventArgs
{
}
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
private delegate void OutsideTouchedEventCallbackDelegate();
- private EventHandler<OutsideTouchedEventArgs> _popUpOutsideTouchedEventHandler;
+ private EventHandler<TouchedOutsideEventArgs> _popUpOutsideTouchedEventHandler;
private OutsideTouchedEventCallbackDelegate _popUpOutsideTouchedEventCallbackDelegate;
[UnmanagedFunctionPointer(CallingConvention.StdCall)]
/// <summary>
/// Event is sent when user has touched outside of the Dialog.
/// </summary>
- public event EventHandler<OutsideTouchedEventArgs> OutsideTouched
+ public event EventHandler<TouchedOutsideEventArgs> TouchedOutside
{
add
{
// Callback for Popup OutsideTouchedSignal
private void OnOutsideTouched()
{
- OutsideTouchedEventArgs e = new OutsideTouchedEventArgs();
+ TouchedOutsideEventArgs e = new TouchedOutsideEventArgs();
if (_popUpOutsideTouchedEventHandler != null)
{
}
}
- internal class Property : global::System.IDisposable
+ internal new class Property
{
- private global::System.Runtime.InteropServices.HandleRef swigCPtr;
- protected bool swigCMemOwn;
-
- internal Property(global::System.IntPtr cPtr, bool cMemoryOwn)
- {
- swigCMemOwn = cMemoryOwn;
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
- }
-
- internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Property obj)
- {
- return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
- }
-
- ~Property()
- {
- Dispose();
- }
-
- public virtual void Dispose()
- {
- lock (this)
- {
- if (swigCPtr.Handle != global::System.IntPtr.Zero)
- {
- if (swigCMemOwn)
- {
- swigCMemOwn = false;
- NDalicPINVOKE.delete_Popup_Property(swigCPtr);
- }
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
- }
- global::System.GC.SuppressFinalize(this);
- }
- }
-
- internal Property() : this(NDalicPINVOKE.new_Popup_Property(), true)
- {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
-
internal static readonly int TITLE = NDalicPINVOKE.Popup_Property_TITLE_get();
internal static readonly int CONTENT = NDalicPINVOKE.Popup_Property_CONTENT_get();
internal static readonly int FOOTER = NDalicPINVOKE.Popup_Property_FOOTER_get();
internal static readonly int TAIL_DOWN_IMAGE = NDalicPINVOKE.Popup_Property_TAIL_DOWN_IMAGE_get();
internal static readonly int TAIL_LEFT_IMAGE = NDalicPINVOKE.Popup_Property_TAIL_LEFT_IMAGE_get();
internal static readonly int TAIL_RIGHT_IMAGE = NDalicPINVOKE.Popup_Property_TAIL_RIGHT_IMAGE_get();
-
}
/// <summary>
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- internal Popup(Popup handle) : this(NDalicPINVOKE.new_Popup__SWIG_1(Popup.getCPtr(handle)), true)
- {
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- internal Popup Assign(Popup handle)
- {
- Popup ret = new Popup(NDalicPINVOKE.Popup_Assign(swigCPtr, Popup.getCPtr(handle)), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
-
- /// <summary>
- /// Downcasts a handle to Popup handle.<br>
- /// If handle points to a Popup, the downcast produces valid handle.<br>
- /// If not the returned handle is left uninitialized.<br>
- /// </summary>
- /// <param name="handle">Handle to an object</param>
- /// <returns>handle to a Popup or an uninitialized handle</returns>
+ [Obsolete("Please do not use! this will be deprecated")]
public new static Popup DownCast(BaseHandle handle)
{
- Popup ret = new Popup(NDalicPINVOKE.Popup_DownCast(BaseHandle.getCPtr(handle)), true);
+ Popup ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as Popup;
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
/// <summary>
/// Sets a title for this Popup.
/// </summary>
- /// <param name="titleActor">The actor to set a title</param>
- public void SetTitle(Actor titleActor)
+ /// <param name="titleView">The actor to set a title</param>
+ public void SetTitle(View titleView)
{
- NDalicPINVOKE.Popup_SetTitle(swigCPtr, Actor.getCPtr(titleActor));
+ NDalicPINVOKE.Popup_SetTitle(swigCPtr, View.getCPtr(titleView));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- internal Actor GetTitle()
+ internal View GetTitle()
{
- Actor ret = new Actor(NDalicPINVOKE.Popup_GetTitle(swigCPtr), true);
+ IntPtr cPtr = NDalicPINVOKE.Popup_GetTitle(swigCPtr);
+ View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
+
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
/// Sets the content actor.
/// </summary>
/// <param name="content">The actor to use</param>
- public void SetContent(Actor content)
+ public void SetContent(View content)
{
- NDalicPINVOKE.Popup_SetContent(swigCPtr, Actor.getCPtr(content));
+ NDalicPINVOKE.Popup_SetContent(swigCPtr, View.getCPtr(content));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- internal Actor GetContent()
+ internal View GetContent()
{
- Actor ret = new Actor(NDalicPINVOKE.Popup_GetContent(swigCPtr), true);
+ IntPtr cPtr = NDalicPINVOKE.Popup_GetContent(swigCPtr);
+ View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
+
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
/// Sets the actor to use for a footer in this Popup.
/// </summary>
/// <param name="footer">The footer actor to be added to this Popup</param>
- public void SetFooter(Actor footer)
+ public void SetFooter(View footer)
{
- NDalicPINVOKE.Popup_SetFooter(swigCPtr, Actor.getCPtr(footer));
+ NDalicPINVOKE.Popup_SetFooter(swigCPtr, View.getCPtr(footer));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- internal Actor GetFooter()
+ internal View GetFooter()
{
- Actor ret = new Actor(NDalicPINVOKE.Popup_GetFooter(swigCPtr), true);
+ IntPtr cPtr = NDalicPINVOKE.Popup_GetFooter(swigCPtr);
+ View ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as View;
+
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
return ret;
}
- internal enum PropertyRange
- {
- PROPERTY_START_INDEX = PropertyRanges.PROPERTY_REGISTRATION_START_INDEX,
- PROPERTY_END_INDEX = View.PropertyRange.PROPERTY_START_INDEX + 1000
- }
-
/// <summary>
/// The display states of the Popup.
/// </summary>
string temp;
if (GetProperty(Popup.Property.DISPLAY_STATE).Get(out temp) == false)
{
-#if DEBUG_ON
- Tizen.Log.Error("NUI", "DisplayState get error!");
-#endif
+ NUILog.Error("DisplayState get error!");
}
switch (temp)
{
switch (value)
{
case DisplayStateType.Showing:
- {
- valueToString = "SHOWING";
- break;
- }
+ {
+ valueToString = "SHOWING";
+ break;
+ }
case DisplayStateType.Shown:
- {
- valueToString = "SHOWN";
- break;
- }
+ {
+ valueToString = "SHOWN";
+ break;
+ }
case DisplayStateType.Hiding:
- {
- valueToString = "HIDING";
- break;
- }
+ {
+ valueToString = "HIDING";
+ break;
+ }
case DisplayStateType.Hidden:
- {
- valueToString = "HIDDEN";
- break;
- }
+ {
+ valueToString = "HIDDEN";
+ break;
+ }
default:
- {
- valueToString = "HIDDEN";
- break;
- }
+ {
+ valueToString = "HIDDEN";
+ break;
+ }
}
SetProperty(Popup.Property.DISPLAY_STATE, new Tizen.NUI.PropertyValue(valueToString));
}
get
{
bool temp = false;
- GetProperty(Popup.Property.TOUCH_TRANSPARENT).Get(ref temp);
+ GetProperty(Popup.Property.TOUCH_TRANSPARENT).Get(out temp);
return temp;
}
set
get
{
bool temp = false;
- GetProperty(Popup.Property.TAIL_VISIBILITY).Get(ref temp);
+ GetProperty(Popup.Property.TAIL_VISIBILITY).Get(out temp);
return temp;
}
set
string temp;
if (GetProperty(Popup.Property.CONTEXTUAL_MODE).Get(out temp) == false)
{
-#if DEBUG_ON
- Tizen.Log.Error("NUI", "ContextualMode get error!");
-#endif
+ NUILog.Error("ContextualMode get error!");
}
switch (temp)
{
switch (value)
{
case ContextualModeType.NonContextual:
- {
- valueToString = "NON_CONTEXTUAL";
- break;
- }
+ {
+ valueToString = "NON_CONTEXTUAL";
+ break;
+ }
case ContextualModeType.Above:
- {
- valueToString = "ABOVE";
- break;
- }
+ {
+ valueToString = "ABOVE";
+ break;
+ }
case ContextualModeType.Rright:
- {
- valueToString = "RIGHT";
- break;
- }
+ {
+ valueToString = "RIGHT";
+ break;
+ }
case ContextualModeType.Below:
- {
- valueToString = "BELOW";
- break;
- }
+ {
+ valueToString = "BELOW";
+ break;
+ }
case ContextualModeType.Left:
- {
- valueToString = "LEFT";
- break;
- }
+ {
+ valueToString = "LEFT";
+ break;
+ }
default:
- {
- valueToString = "BELOW";
- break;
- }
+ {
+ valueToString = "BELOW";
+ break;
+ }
}
SetProperty(Popup.Property.CONTEXTUAL_MODE, new Tizen.NUI.PropertyValue(valueToString));
}
get
{
float temp = 0.0f;
- GetProperty(Popup.Property.ANIMATION_DURATION).Get(ref temp);
+ GetProperty(Popup.Property.ANIMATION_DURATION).Get(out temp);
return temp;
}
set
string temp;
if (GetProperty(Popup.Property.ANIMATION_MODE).Get(out temp) == false)
{
-#if DEBUG_ON
- Tizen.Log.Error("NUI", "AnimationMode get error!");
-#endif
+ NUILog.Error("AnimationMode get error!");
}
switch (temp)
{
switch (value)
{
case AnimationModeType.None:
- {
- valueToString = "NONE";
- break;
- }
+ {
+ valueToString = "NONE";
+ break;
+ }
case AnimationModeType.Zoom:
- {
- valueToString = "ZOOM";
- break;
- }
+ {
+ valueToString = "ZOOM";
+ break;
+ }
case AnimationModeType.Fade:
- {
- valueToString = "FADE";
- break;
- }
+ {
+ valueToString = "FADE";
+ break;
+ }
case AnimationModeType.Custom:
- {
- valueToString = "CUSTOM";
- break;
- }
+ {
+ valueToString = "CUSTOM";
+ break;
+ }
default:
- {
- valueToString = "FADE";
- break;
- }
+ {
+ valueToString = "FADE";
+ break;
+ }
}
SetProperty(Popup.Property.ANIMATION_MODE, new Tizen.NUI.PropertyValue(valueToString));
}
get
{
int temp = 0;
- GetProperty(Popup.Property.AUTO_HIDE_DELAY).Get(ref temp);
+ GetProperty(Popup.Property.AUTO_HIDE_DELAY).Get(out temp);
return temp;
}
set
get
{
bool temp = false;
- GetProperty(Popup.Property.BACKING_ENABLED).Get(ref temp);
+ GetProperty(Popup.Property.BACKING_ENABLED).Get(out temp);
return temp;
}
set