X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FTizen.NUI%2Fsrc%2Fpublic%2FPosition2D.cs;h=ed8f058a4a0ed7b4a19775fed6f0bb39b5020cd8;hb=ca5f55ed34963335713c66cd024ed2c48eadb8cf;hp=f12ece408780d8cc4ea23c27fecfafedd0283b12;hpb=5780f94dd8d7cc0112f68ad9a3afcad793f9a9e8;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git
diff --git a/src/Tizen.NUI/src/public/Position2D.cs b/src/Tizen.NUI/src/public/Position2D.cs
index f12ece4..ed8f058 100755
--- a/src/Tizen.NUI/src/public/Position2D.cs
+++ b/src/Tizen.NUI/src/public/Position2D.cs
@@ -106,6 +106,7 @@ namespace Tizen.NUI
/// The vector to add.
/// The vector to add.
/// The vector containing the result of the addition.
+ /// 3
public static Position2D operator +(Position2D arg1, Position2D arg2)
{
return arg1.Add(arg2);
@@ -117,6 +118,7 @@ namespace Tizen.NUI
/// The vector to subtract.
/// The vector to subtract.
/// The vector containing the result of the subtraction.
+ /// 3
public static Position2D operator -(Position2D arg1, Position2D arg2)
{
return arg1.Subtract(arg2);
@@ -127,6 +129,7 @@ namespace Tizen.NUI
///
/// The vector to negate.
/// The vector containing the negation.
+ /// 3
public static Position2D operator -(Position2D arg1)
{
return arg1.Subtract();
@@ -138,6 +141,7 @@ namespace Tizen.NUI
/// The vector to multiply.
/// The vector to multiply.
/// The vector containing the result of the multiplication.
+ /// 3
public static Position2D operator *(Position2D arg1, Position2D arg2)
{
return arg1.Multiply(arg2);
@@ -149,6 +153,7 @@ namespace Tizen.NUI
/// The vector to multiply.
/// The integer value to scale the vector.
/// The vector containing the result of the multiplication.
+ /// 3
public static Position2D operator *(Position2D arg1, int arg2)
{
return arg1.Multiply(arg2);
@@ -160,6 +165,7 @@ namespace Tizen.NUI
/// The vector to divide.
/// The vector to divide.
/// The vector containing the result of the division.
+ /// 3
public static Position2D operator /(Position2D arg1, Position2D arg2)
{
return arg1.Divide(arg2);
@@ -171,6 +177,7 @@ namespace Tizen.NUI
/// The vector to divide.
/// The integer value to scale the vector by.
/// The vector containing the result of the division.
+ /// 3
public static Position2D operator /(Position2D arg1, int arg2)
{
return arg1.Divide(arg2);
@@ -181,6 +188,7 @@ namespace Tizen.NUI
///
/// The subscript index.
/// The float at the given index.
+ /// 3
public float this[uint index]
{
get
@@ -199,6 +207,7 @@ namespace Tizen.NUI
///
/// The constructor.
///
+ /// 3
public Position2D() : this(NDalicPINVOKE.new_Vector2__SWIG_0(), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
@@ -209,6 +218,7 @@ namespace Tizen.NUI
///
/// x component
/// y component
+ /// 3
public Position2D(int x, int y) : this(NDalicPINVOKE.new_Vector2__SWIG_1((float)x, (float)y), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
@@ -218,6 +228,7 @@ namespace Tizen.NUI
/// The constructor.
///
/// Position to create this vector from
+ /// 3
public Position2D(Position position) : this(NDalicPINVOKE.new_Vector2__SWIG_3(Position.getCPtr(position)), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
@@ -279,6 +290,7 @@ namespace Tizen.NUI
///
/// The vector to compare
/// Returns true if the two vectors are equal, otherwise false
+ /// 3
public bool EqualTo(Position2D rhs)
{
bool ret = NDalicPINVOKE.Vector2_EqualTo(swigCPtr, Position2D.getCPtr(rhs));
@@ -291,6 +303,7 @@ namespace Tizen.NUI
///
/// The vector to compare.
/// Returns true if the two vectors are not equal, otherwise false.
+ /// 3
public bool NotEqualTo(Position2D rhs)
{
bool ret = NDalicPINVOKE.Vector2_NotEqualTo(swigCPtr, Position2D.getCPtr(rhs));
@@ -308,6 +321,7 @@ namespace Tizen.NUI
///
/// The x component.
///
+ /// 3
public int X
{
set
@@ -326,6 +340,7 @@ namespace Tizen.NUI
///
/// The y component.
///
+ /// 3
public int Y
{
set
@@ -344,6 +359,7 @@ namespace Tizen.NUI
///
/// Converts a Position2D instance to a Vector2 instance.
///
+ /// 3
public static implicit operator Vector2(Position2D position2d)
{
return new Vector2((float)position2d.X, (float)position2d.Y);
@@ -352,6 +368,7 @@ namespace Tizen.NUI
///
/// Converts a Vector2 instance to a Position2D instance.
///
+ /// 3
public static implicit operator Position2D(Vector2 vec)
{
return new Position2D((int)vec.X, (int)vec.Y);
@@ -360,6 +377,7 @@ namespace Tizen.NUI
///
/// Converts a Position2D instance to a Uint16Pair instance.
///
+ /// 4
public static implicit operator Uint16Pair(Position2D position2d)
{
return new Uint16Pair((uint)position2d.X, (uint)position2d.Y);
@@ -368,6 +386,7 @@ namespace Tizen.NUI
///
/// Converts a Uint16Pair instance to a Position2D instance.
///
+ /// 4
public static implicit operator Position2D(Uint16Pair pair)
{
return new Position2D((int)pair.GetX(), (int)pair.GetY());
@@ -377,4 +396,3 @@ namespace Tizen.NUI
}
-