*
*/
+using System;
+
namespace Tizen.NUI
{
/// <summary>
- /// Position is a three dimensional vector.
+ /// Position is a three-dimensional vector.
/// </summary>
public class Position : global::System.IDisposable
{
return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr;
}
+ //A Flag to check who called Dispose(). (By User or DisposeQueue)
+ private bool isDisposeQueued = false;
+ //A Flat to check if it is already disposed.
+ protected bool disposed = false;
+
~Position()
{
- DisposeQueue.Instance.Add(this);
+ if(!isDisposeQueued)
+ {
+ isDisposeQueued = true;
+ DisposeQueue.Instance.Add(this);
+ }
}
- public virtual void Dispose()
+ public void Dispose()
{
- if (!Stage.IsInstalled())
+ //Throw excpetion if Dispose() is called in separate thread.
+ if (!Window.IsInstalled())
+ {
+ throw new System.InvalidOperationException("This API called from separate thread. This API must be called from MainThread.");
+ }
+
+ if (isDisposeQueued)
+ {
+ Dispose(DisposeTypes.Implicit);
+ }
+ else
+ {
+ Dispose(DisposeTypes.Explicit);
+ System.GC.SuppressFinalize(this);
+ }
+ }
+
+ protected virtual void Dispose(DisposeTypes type)
+ {
+ if (disposed)
{
- DisposeQueue.Instance.Add(this);
return;
}
- lock (this)
+ if(type == DisposeTypes.Explicit)
{
- if (swigCPtr.Handle != global::System.IntPtr.Zero)
+ //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 (swigCMemOwn)
{
- if (swigCMemOwn)
- {
- swigCMemOwn = false;
- NDalicPINVOKE.delete_Vector3(swigCPtr);
- }
- swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
+ swigCMemOwn = false;
+ NDalicPINVOKE.delete_Vector3(swigCPtr);
}
- global::System.GC.SuppressFinalize(this);
+ swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero);
}
+ disposed = true;
}
/// <summary>
- /// Addition operator.
+ /// An addition operator.
/// </summary>
- /// <param name="arg1">Vector to add</param>
- /// <param name="arg2">Vector to add</param>
- /// <returns>A vector containing the result of the addition</returns>
+ /// <param name="arg1">The vector to add.</param>
+ /// <param name="arg2">The vector to add.</param>
+ /// <returns>The vector containing the result of the addition.</returns>
+ /// <since_tizen> 3 </since_tizen>
public static Position operator +(Position arg1, Position arg2)
{
return arg1.Add(arg2);
}
/// <summary>
- /// Subtraction operator.
+ /// The subtraction operator.
/// </summary>
- /// <param name="arg1">Vector to subtract</param>
- /// <param name="arg2">Vector to subtract</param>
- /// <returns>A vector containing the result of the subtraction</returns>
+ /// <param name="arg1">The vector to subtract.</param>
+ /// <param name="arg2">The vector to subtract.</param>
+ /// <returns>The vector containing the result of the subtraction.</returns>
+ /// <since_tizen> 3 </since_tizen>
public static Position operator -(Position arg1, Position arg2)
{
return arg1.Subtract(arg2);
}
/// <summary>
- /// Unary negation operator.
+ /// The unary negation operator.
/// </summary>
- /// <param name="arg1">Vector to netate</param>
- /// <returns>A vector containg the negation</returns>
+ /// <param name="arg1">The vector to negate.</param>
+ /// <returns>The vector containg the negation.</returns>
+ /// <since_tizen> 3 </since_tizen>
public static Position operator -(Position arg1)
{
return arg1.Subtract();
}
/// <summary>
- /// Multiplication operator.
+ /// The multiplication operator.
/// </summary>
- /// <param name="arg1">The vector to multiply</param>
- /// <param name="arg2">The vector to multiply</param>
- /// <returns>A vector containing the result of the multiplication</returns>
+ /// <param name="arg1">The vector to multiply.</param>
+ /// <param name="arg2">The vector to multiply.</param>
+ /// <returns>The vector containing the result of the multiplication.</returns>
+ /// <since_tizen> 3 </since_tizen>
public static Position operator *(Position arg1, Position arg2)
{
return arg1.Multiply(arg2);
}
/// <summary>
- /// Multiplication operator.
+ /// The multiplication operator.
/// </summary>
/// <param name="arg1">The vector to multiply</param>
- /// <param name="arg2">The float value to scale the vector</param>
- /// <returns>A vector containing the result of the scaling</returns>
+ /// <param name="arg2">The float value to scale the vector.</param>
+ /// <returns>The vector containing the result of scaling.</returns>
+ /// <since_tizen> 3 </since_tizen>
public static Position operator *(Position arg1, float arg2)
{
return arg1.Multiply(arg2);
}
/// <summary>
- /// Division operator.
+ /// The division operator.
/// </summary>
- /// <param name="arg1">The vector to divide</param>
- /// <param name="arg2">The vector to divide</param>
- /// <returns>A vector containing the result of the division</returns>
+ /// <param name="arg1">The vector to divide.</param>
+ /// <param name="arg2">The vector to divide.</param>
+ /// <returns>The vector containing the result of the division.</returns>
+ /// <since_tizen> 3 </since_tizen>
public static Position operator /(Position arg1, Position arg2)
{
return arg1.Divide(arg2);
}
/// <summary>
- /// Division operator.
+ /// The division operator.
/// </summary>
- /// <param name="arg1">The vector to divide</param>
- /// <param name="arg2">The float value to scale the vector by</param>
- /// <returns>A vector containing the result of the scaling</returns>
+ /// <param name="arg1">The vector to divide.</param>
+ /// <param name="arg2">The float value to scale the vector by.</param>
+ /// <returns>The vector containing the result of scaling.</returns>
+ /// <since_tizen> 3 </since_tizen>
public static Position operator /(Position arg1, float arg2)
{
return arg1.Divide(arg2);
/// <summary>
- /// Const array subscript operator overload. Should be 0, 1 or 2.
+ /// The const array subscript operator overload. Should be 0, 1, or 2.
/// </summary>
- /// <param name="index">Subscript index</param>
- /// <returns>The float at the given index</returns>
+ /// <param name="index">The subscript index.</param>
+ /// <returns>The float at the given index.</returns>
+ /// <since_tizen> 3 </since_tizen>
public float this[uint index]
{
get
}
}
- /// <summary>
- /// </summary>
internal static Position GetPositionFromPtr(global::System.IntPtr cPtr)
{
Position ret = new Position(cPtr, false);
/// <summary>
- /// Constructor
+ /// The constructor.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public Position() : this(NDalicPINVOKE.new_Vector3__SWIG_0(), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
/// <summary>
- /// Constructor
+ /// The constructor.
/// </summary>
- /// <param name="x">x component</param>
- /// <param name="y">y component</param>
- /// <param name="z">z component</param>
+ /// <param name="x">The x component.</param>
+ /// <param name="y">The y component.</param>
+ /// <param name="z">The z component.</param>
+ /// <since_tizen> 3 </since_tizen>
public Position(float x, float y, float z) : this(NDalicPINVOKE.new_Vector3__SWIG_1(x, y, z), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
/// <summary>
- /// Constructor
+ /// The constructor.
/// </summary>
- /// <param name="position2d">Position2D to create this vector from</param>
+ /// <param name="position2d">Position2D to create this vector from.</param>
+ /// <since_tizen> 3 </since_tizen>
public Position(Position2D position2d) : this(NDalicPINVOKE.new_Vector3__SWIG_3(Position2D.getCPtr(position2d)), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
/// <summary>
- /// Compare if rhs is equal to
+ /// Compares if rhs is equal to.
/// </summary>
- /// <param name="rhs">The vector to compare</param>
- /// <returns>Returns true if the two vectors are equal, otherwise false</returns>
+ /// <param name="rhs">The vector to compare.</param>
+ /// <returns>Returns true if the two vectors are equal, otherwise false.</returns>
+ /// <since_tizen> 3 </since_tizen>
public bool EqualTo(Position rhs)
{
bool ret = NDalicPINVOKE.Vector3_EqualTo(swigCPtr, Position.getCPtr(rhs));
}
/// <summary>
- /// Compare if rhs is not equal to
+ /// Compares if rhs is not equal to.
/// </summary>
- /// <param name="rhs">The vector to compare</param>
- /// <returns>Returns true if the two vectors are not equal, otherwise false</returns>
+ /// <param name="rhs">The vector to compare.</param>
+ /// <returns>Returns true if the two vectors are not equal, otherwise false.</returns>
+ /// <since_tizen> 3 </since_tizen>
public bool NotEqualTo(Position rhs)
{
bool ret = NDalicPINVOKE.Vector3_NotEqualTo(swigCPtr, Position.getCPtr(rhs));
/// <summary>
- /// x component
+ /// The x component.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public float X
{
set
}
/// <summary>
- /// y component
+ /// The y component.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public float Y
{
set
}
/// <summary>
- /// z component
+ /// The z component.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public float Z
{
set
/// <summary>
/// ParentOrigin constants. It's 0.0.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public static float ParentOriginTop
{
get
/// <summary>
/// ParentOrigin constants. It's 1.0.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public static float ParentOriginBottom
{
get
/// <summary>
/// ParentOrigin constants. It's 0.0.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public static float ParentOriginLeft
{
get
/// <summary>
/// ParentOrigin constants. It's 1.0.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public static float ParentOriginRight
{
get
/// <summary>
/// ParentOrigin constants. It's 0.5.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public static float ParentOriginMiddle
{
get
}
/// <summary>
- /// ParentOrigin constants: 0.0, 0.0, 0.5
+ /// ParentOrigin constants: 0.0, 0.0, 0.5.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public static Position ParentOriginTopLeft
{
get
}
/// <summary>
- /// ParentOrigin constants: 0.5, 0.0, 0.5
+ /// ParentOrigin constants: 0.5, 0.0, 0.5.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public static Position ParentOriginTopCenter
{
get
}
/// <summary>
- /// ParentOrigin constants: 1.0, 0.0, 0.5
+ /// ParentOrigin constants: 1.0, 0.0, 0.5.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public static Position ParentOriginTopRight
{
get
}
/// <summary>
- /// ParentOrigin constants: 0.0, 0.5, 0.5
+ /// ParentOrigin constants: 0.0, 0.5, 0.5.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public static Position ParentOriginCenterLeft
{
get
/// <summary>
/// ParentOrigin constants: 0.0, 0.5, 0.5
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public static Position ParentOriginCenter
{
get
}
/// <summary>
- /// ParentOrigin constants: 1.0, 0.5, 0.5
+ /// ParentOrigin constants: 1.0, 0.5, 0.5.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public static Position ParentOriginCenterRight
{
get
}
/// <summary>
- /// ParentOrigin constants: 0.0f, 1.0f, 0.5f
+ /// ParentOrigin constants: 0.0f, 1.0f, 0.5f.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public static Position ParentOriginBottomLeft
{
get
}
/// <summary>
- /// ParentOrigin constants: 0.5, 1.0, 0.5
+ /// ParentOrigin constants: 0.5, 1.0, 0.5.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public static Position ParentOriginBottomCenter
{
get
}
/// <summary>
- /// ParentOrigin constants: 1.0, 1.0, 0.5
+ /// ParentOrigin constants: 1.0, 1.0, 0.5.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public static Position ParentOriginBottomRight
{
get
}
/// <summary>
- /// AnchorPoint constants: 0.0
+ /// PivotPoint constants: 0.0.
/// </summary>
- public static float AnchorPointTop
+ /// <since_tizen> 4 </since_tizen>
+ public static float PivotPointTop
{
get
{
}
/// <summary>
- /// AnchorPoint constants: 1.0
+ /// PivotPoint constants: 1.0.
/// </summary>
- public static float AnchorPointBottom
+ /// <since_tizen> 4 </since_tizen>
+ public static float PivotPointBottom
{
get
{
}
/// <summary>
- /// AnchorPoint constants: 0.0
+ /// PivotPoint constants: 0.0.
/// </summary>
- public static float AnchorPointLeft
+ /// <since_tizen> 4 </since_tizen>
+ public static float PivotPointLeft
{
get
{
}
/// <summary>
- /// AnchorPoint constants: 1.0
+ /// PivotPoint constants: 1.0.
/// </summary>
- public static float AnchorPointRight
+ /// <since_tizen> 4 </since_tizen>
+ public static float PivotPointRight
{
get
{
}
/// <summary>
- /// AnchorPoint constants: 0.0
+ /// PivotPoint constants: 0.0.
/// </summary>
- public static float AnchorPointMiddle
+ /// <since_tizen> 4 </since_tizen>
+ public static float PivotPointMiddle
{
get
{
}
/// <summary>
- /// AnchorPoint constants: 0.0, 0.0, 0.5
+ /// PivotPoint constants: 0.0, 0.0, 0.5.
/// </summary>
- public static Position AnchorPointTopLeft
+ /// <since_tizen> 4 </since_tizen>
+ public static Position PivotPointTopLeft
{
get
{
}
/// <summary>
- /// AnchorPoint constants: 0.5, 0.0, 0.5
+ /// PivotPoint constants: 0.5, 0.0, 0.5.
/// </summary>
- public static Position AnchorPointTopCenter
+ /// <since_tizen> 4 </since_tizen>
+ public static Position PivotPointTopCenter
{
get
{
}
/// <summary>
- /// AnchorPoint constants: 1.0, 0.0, 0.5
+ /// PivotPoint constants: 1.0, 0.0, 0.5.
/// </summary>
- public static Position AnchorPointTopRight
+ /// <since_tizen> 4 </since_tizen>
+ public static Position PivotPointTopRight
{
get
{
}
/// <summary>
- /// AnchorPoint constants: 0.0, 0.5, 0.5
+ /// PivotPoint constants: 0.0, 0.5, 0.5.
/// </summary>
- public static Position AnchorPointCenterLeft
+ /// <since_tizen> 4 </since_tizen>
+ public static Position PivotPointCenterLeft
{
get
{
}
/// <summary>
- /// AnchorPoint constants: 0.5, 0.5, 0.5
+ /// PivotPoint constants: 0.5, 0.5, 0.5.
/// </summary>
- public static Position AnchorPointCenter
+ /// <since_tizen> 4 </since_tizen>
+ public static Position PivotPointCenter
{
get
{
}
/// <summary>
- /// AnchorPoint constants: 1.0, 0.5, 0.5
+ /// PivotPoint constants: 1.0, 0.5, 0.5.
/// </summary>
- public static Position AnchorPointCenterRight
+ /// <since_tizen> 4 </since_tizen>
+ public static Position PivotPointCenterRight
{
get
{
}
/// <summary>
- /// AnchorPoint constants: 0.0, 1.0, 0.5
+ /// PivotPoint constants: 0.0, 1.0, 0.5.
/// </summary>
- public static Position AnchorPointBottomLeft
+ /// <since_tizen> 4 </since_tizen>
+ public static Position PivotPointBottomLeft
{
get
{
}
/// <summary>
- /// AnchorPoint constants: 0.5, 1.0, 0.5
+ /// PivotPoint constants: 0.5, 1.0, 0.5
/// </summary>
- public static Position AnchorPointBottomCenter
+ /// <since_tizen> 4 </since_tizen>
+ public static Position PivotPointBottomCenter
{
get
{
}
/// <summary>
- /// AnchorPoint constants: 1.0, 1.0, 0.5
+ /// PivotPoint constants: 1.0, 1.0, 0.5.
/// </summary>
- public static Position AnchorPointBottomRight
+ /// <since_tizen> 4 </since_tizen>
+ public static Position PivotPointBottomRight
{
get
{
}
/// <summary>
- /// Constant ( 1.0f, 1.0f, 1.0f )
+ /// Constant ( 1.0f, 1.0f, 1.0f ).
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public static Position One
{
get
}
/// <summary>
- /// Constant ( 0.0f, 0.0f, 0.0f )
+ /// Constant ( 0.0f, 0.0f, 0.0f ).
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public static Position Zero
{
get
}
/// <summary>
- /// Convert a position instance to a vector3 instance.
+ /// Converts a position instance to a Vector3 instance.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public static implicit operator Vector3(Position Position)
{
return new Vector3(Position.X, Position.Y, Position.Z);
}
/// <summary>
- /// Convert a vector3 instance to a position instance.
+ /// Converts a Vector3 instance to a position instance.
/// </summary>
+ /// <since_tizen> 3 </since_tizen>
public static implicit operator Position(Vector3 vec)
{
return new Position(vec.X, vec.Y, vec.Z);
}
- }
- /// <summary>
- /// ParentOrigin constants.
- /// </summary>
- public struct ParentOrigin
- {
- public static float Top
- {
- get
- {
- float ret = NDalicPINVOKE.ParentOriginTop_get();
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
- public static float Bottom
- {
- get
- {
- float ret = NDalicPINVOKE.ParentOriginBottom_get();
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
- public static float Left
- {
- get
- {
- float ret = NDalicPINVOKE.ParentOriginLeft_get();
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
- public static float Right
- {
- get
- {
- float ret = NDalicPINVOKE.ParentOriginRight_get();
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
- public static float Middle
- {
- get
- {
- float ret = NDalicPINVOKE.ParentOriginMiddle_get();
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
- public static Position TopLeft
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginTopLeft_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
- public static Position TopCenter
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginTopCenter_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
- public static Position TopRight
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginTopRight_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
- public static Position CenterLeft
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginCenterLeft_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
- public static Position Center
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginCenter_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
- public static Position CenterRight
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginCenterRight_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
- public static Position BottomLeft
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginBottomLeft_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
- public static Position BottomCenter
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginBottomCenter_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
- public static Position BottomRight
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.ParentOriginBottomRight_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
- }
-
- /// <summary>
- /// AnchorPoint constants.
- /// </summary>
- public struct AnchorPoint
- {
- public static float Top
+ [Obsolete("Please do not use! this will be deprecated")]
+ public static float AnchorPointTop
{
get
{
return ret;
}
}
- public static float Bottom
+
+ [Obsolete("Please do not use! this will be deprecated")]
+ public static float AnchorPointBottom
{
get
{
return ret;
}
}
- public static float Left
+
+ [Obsolete("Please do not use! this will be deprecated")]
+ public static float AnchorPointLeft
{
get
{
return ret;
}
}
- public static float Right
+
+ [Obsolete("Please do not use! this will be deprecated")]
+ public static float AnchorPointRight
{
get
{
return ret;
}
}
- public static float Middle
+
+ [Obsolete("Please do not use! this will be deprecated")]
+ public static float AnchorPointMiddle
{
get
{
return ret;
}
}
- public static Position TopLeft
+
+ [Obsolete("Please do not use! this will be deprecated")]
+ public static Position AnchorPointTopLeft
{
get
{
return ret;
}
}
- public static Position TopCenter
+
+ [Obsolete("Please do not use! this will be deprecated")]
+ public static Position AnchorPointTopCenter
{
get
{
return ret;
}
}
- public static Position TopRight
+
+ [Obsolete("Please do not use! this will be deprecated")]
+ public static Position AnchorPointTopRight
{
get
{
return ret;
}
}
- public static Position CenterLeft
+
+ [Obsolete("Please do not use! this will be deprecated")]
+ public static Position AnchorPointCenterLeft
{
get
{
return ret;
}
}
- public static Position Center
+
+
+ [Obsolete("Please do not use! this will be deprecated")]
+ public static Position AnchorPointCenter
{
get
{
return ret;
}
}
- public static Position CenterRight
+
+ [Obsolete("Please do not use! this will be deprecated")]
+ public static Position AnchorPointCenterRight
{
get
{
return ret;
}
}
- public static Position BottomLeft
+
+ [Obsolete("Please do not use! this will be deprecated")]
+ public static Position AnchorPointBottomLeft
{
get
{
return ret;
}
}
- public static Position BottomCenter
+
+ [Obsolete("Please do not use! this will be deprecated")]
+ public static Position AnchorPointBottomCenter
{
get
{
return ret;
}
}
- public static Position BottomRight
+
+ [Obsolete("Please do not use! this will be deprecated")]
+ public static Position AnchorPointBottomRight
{
get
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
+ }
+
}
- }
- /// <summary>
- /// PositionAxis constants.
- /// </summary>
- public struct PositionAxis
- {
- public static Position X
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_XAXIS_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
- public static Position Y
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_YAXIS_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
- public static Position Z
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_ZAXIS_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
- public static Position NegativeX
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_XAXIS_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
- public static Position NegativeY
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_YAXIS_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
- public static Position NegativeZ
- {
- get
- {
- global::System.IntPtr cPtr = NDalicPINVOKE.Vector3_NEGATIVE_ZAXIS_get();
- Position ret = (cPtr == global::System.IntPtr.Zero) ? null : new Position(cPtr, false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
- }
-}
+}
\ No newline at end of file