X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;ds=sidebyside;f=src%2FTizen.NUI%2Fsrc%2Fpublic%2FSize2D.cs;h=9f30751eda3e77c04a8e842a410640c37c5f00c3;hb=5e1c35c38b2bc29eebc484679f7de727b636f744;hp=13006b47193f641be095927584df93867ca59a31;hpb=f4f1f421c081e4007d3e1d52211ed3db72707ecd;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git diff --git a/src/Tizen.NUI/src/public/Size2D.cs b/src/Tizen.NUI/src/public/Size2D.cs index 13006b4..9f30751 100755 --- a/src/Tizen.NUI/src/public/Size2D.cs +++ b/src/Tizen.NUI/src/public/Size2D.cs @@ -19,7 +19,7 @@ namespace Tizen.NUI { /// - /// A two dimensional size + /// A two-dimensional size. /// public class Size2D : global::System.IDisposable { @@ -52,7 +52,7 @@ namespace Tizen.NUI } /// - /// Dispose + /// Dispose. /// public void Dispose() { @@ -104,54 +104,54 @@ namespace Tizen.NUI } /// - /// Addition operator for A+B + /// The addition operator for A+B. /// - /// Size, A - /// Size to assign, B - /// A Size containing the result of the addition + /// Size A. + /// Size to assign B. + /// A size containing the result of the addition. public static Size2D operator +(Size2D arg1, Size2D arg2) { return arg1.Add(arg2); } /// - /// Subtraction operator for A-B + /// The subtraction operator for A-B. /// - /// Size, A - /// Size to subtract, B - /// A Size containing the result of the subtraction + /// Size A. + /// Size to subtract B. + /// A size containing the result of the subtraction. public static Size2D operator -(Size2D arg1, Size2D arg2) { return arg1.Subtract(arg2); } /// - /// Unary negation operator. + /// The unary negation operator. /// - /// Size for unary negation - /// A Size containg the negation + /// Size for unary negation. + /// A size containing the negation. public static Size2D operator -(Size2D arg1) { return arg1.Subtract(); } /// - /// Multiplication operator. + /// The multiplication operator. /// - /// Size for multiplication - /// The Size to multipl - /// A Size containing the result of the multiplication + /// Size for multiplication. + /// Size to multiply. + /// A size containing the result of the multiplication. public static Size2D operator *(Size2D arg1, Size2D arg2) { return arg1.Multiply(arg2); } /// - /// Multiplication operator. + /// The multiplication operator. /// /// Size for multiplication - /// The int value to scale the Size - /// A Size containing the result of the scaling + /// The integer value to scale the size. + /// A size containing the result of the scaling. public static Size2D operator *(Size2D arg1, int arg2) { @@ -159,32 +159,32 @@ namespace Tizen.NUI } /// - /// Division operator. + /// The division operator. /// - /// Size for division - /// The Size to divide - /// A Size containing the result of the division> + /// Size for division. + /// Size to divide. + /// A size containing the result of the division. public static Size2D operator /(Size2D arg1, Size2D arg2) { return arg1.Divide(arg2); } /// - /// Division operator. + /// The division operator. /// - /// Size for division - /// The int value to scale the Size by - /// A Size containing the result of the scaling + /// Size for division. + /// The integer value to scale the size by. + /// A size containing the result of the scaling. public static Size2D operator /(Size2D arg1, int arg2) { return arg1.Divide(arg2); } /// - /// Array subscript operator. + /// The array subscript operator. /// - /// Subscript index - /// The float at the given index + /// The subscript index. + /// The float at the given index. public float this[uint index] { get @@ -194,9 +194,9 @@ namespace Tizen.NUI } /// - /// Get Size from pointer. + /// Gets the size from the pointer. /// - /// Pointer of the Size + /// The pointer of the size. /// Size internal static Size2D GetSize2DFromPtr(global::System.IntPtr cPtr) { @@ -206,7 +206,7 @@ namespace Tizen.NUI } /// - /// Constructor. + /// The constructor. /// public Size2D() : this(NDalicPINVOKE.new_Vector2__SWIG_0(), true) { @@ -214,10 +214,10 @@ namespace Tizen.NUI } /// - /// Constructor. + /// The constructor. /// - /// x (or width) component - /// y (or height) component + /// The x (or width) component. + /// The y (or height) component. public Size2D(int x, int y) : this(NDalicPINVOKE.new_Vector2__SWIG_1((float)x, (float)y), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); @@ -275,11 +275,11 @@ namespace Tizen.NUI } /// - /// Check equality.
+ /// Checks equality.
/// Utilizes appropriate machine epsilon values.
///
- /// The Size to test against - /// True if the Sizes are equal + /// The size to test against. + /// True if the sizes are equal. public bool EqualTo(Size2D rhs) { bool ret = NDalicPINVOKE.Vector2_EqualTo(swigCPtr, Size2D.getCPtr(rhs)); @@ -288,11 +288,11 @@ namespace Tizen.NUI } /// - /// Check inequality.
+ /// Checks inequality.
/// Utilizes appropriate machine epsilon values.
///
- /// The Size to test against - /// True if the Sizes are not equal + /// The size to test against. + /// True if the sizes are not equal. public bool NotEqualTo(Size2D rhs) { bool ret = NDalicPINVOKE.Vector2_NotEqualTo(swigCPtr, Size2D.getCPtr(rhs)); @@ -308,7 +308,7 @@ namespace Tizen.NUI } /// - /// Property for width component of Size + /// The property for the width component of a size. /// public int Width { @@ -326,7 +326,7 @@ namespace Tizen.NUI } /// - /// Property for height component of Size + /// The property for the height component of a size. /// public int Height { @@ -344,36 +344,36 @@ namespace Tizen.NUI } /// - /// Type cast operator, Size2D to Vector2. + /// The type cast operator, Size2D to Vector2. /// - /// Object of Size2D type + /// An object of the Size2D type. public static implicit operator Vector2(Size2D size) { return new Vector2((float)size.Width, (float)size.Height); } /// - /// Type cast operator, Vector2 to Size2D type. + /// The type cast operator, Vector2 to Size2D type. /// - /// Object of Vector2 type + /// An object of the Vector2 type. public static implicit operator Size2D(Vector2 vec) { return new Size2D((int)vec.X, (int)vec.Y); } /// - /// Type cast operator, Size2D to Uint16Pair. + /// The type cast operator, Size2D to Uint16Pair. /// - /// Object of Size2D type + /// An object of the Size2D type. public static implicit operator Uint16Pair(Size2D size2d) { return new Uint16Pair((uint)size2d.Width, (uint)size2d.Height); } /// - /// Type cast operator, Uint16Pair to Size2D type. + /// The type cast operator, Uint16Pair to Size2D type. /// - /// Object of Vector2 type + /// An object of the Vector2 type. public static implicit operator Size2D(Uint16Pair pair) { return new Size2D((int)pair.GetWidth(), (int)pair.GetWidth());