X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FTizen.NUI%2Fsrc%2Fpublic%2FPaddingType.cs;h=0dc76a943fbbfa9bb9bdb3e3fb8bc0c288b57302;hb=refs%2Ftags%2Fsubmit%2Ftizen_4.0%2F20171016.150030;hp=edcf4e0a75ffa74ff490f2bda3242d090f444348;hpb=c66c3842e08cfcfa4ed876d186f97ac4693eef26;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git
diff --git a/src/Tizen.NUI/src/public/PaddingType.cs b/src/Tizen.NUI/src/public/PaddingType.cs
index edcf4e0..0dc76a9 100755
--- a/src/Tizen.NUI/src/public/PaddingType.cs
+++ b/src/Tizen.NUI/src/public/PaddingType.cs
@@ -17,6 +17,9 @@
namespace Tizen.NUI
{
+
+ using System;
+
///
/// The gesture state.
///
@@ -119,8 +122,11 @@ namespace Tizen.NUI
}
///
- /// Equality operator
+ /// Equality operator.
///
+ /// First operand
+ /// Second operand
+ /// True if the values are identical
/// 3
public static bool operator ==(PaddingType a, PaddingType b)
{
@@ -137,15 +143,18 @@ namespace Tizen.NUI
}
// Return true if the fields match:
- return (System.Math.Abs(a.Left - b.Left) < NDalic.GetRangedEpsilon(a.Left, b.Left)) &&
- (System.Math.Abs(a.Right - b.Right) < NDalic.GetRangedEpsilon(a.Right, b.Right)) &&
+ return (System.Math.Abs(a.Start- b.Start) < NDalic.GetRangedEpsilon(a.Start, b.Start)) &&
+ (System.Math.Abs(a.End - b.End) < NDalic.GetRangedEpsilon(a.End, b.End)) &&
(System.Math.Abs(a.Bottom - b.Bottom) < NDalic.GetRangedEpsilon(a.Bottom, b.Bottom)) &&
(System.Math.Abs(a.Top - b.Top) < NDalic.GetRangedEpsilon(a.Top, b.Top));
}
///
- /// Inequality operator. Returns Null if either operand is Null
+ /// Inequality operator.
///
+ /// First operand
+ /// Second operand
+ /// True if the values are not identical
/// 3
public static bool operator !=(PaddingType a, PaddingType b)
{
@@ -172,8 +181,8 @@ namespace Tizen.NUI
PaddingType p = (PaddingType)o;
// Return true if the fields match:
- return (System.Math.Abs(Left - p.Left) < NDalic.GetRangedEpsilon(Left, p.Left)) &&
- (System.Math.Abs(Right - p.Right) < NDalic.GetRangedEpsilon(Right, p.Right)) &&
+ return (System.Math.Abs(Start- p.Start) < NDalic.GetRangedEpsilon(Start, p.Start)) &&
+ (System.Math.Abs(End - p.End) < NDalic.GetRangedEpsilon(End, p.End)) &&
(System.Math.Abs(Bottom - p.Bottom) < NDalic.GetRangedEpsilon(Bottom, p.Bottom)) &&
(System.Math.Abs(Top - p.Top) < NDalic.GetRangedEpsilon(Top, p.Top));
}
@@ -191,7 +200,7 @@ namespace Tizen.NUI
///
/// The Left value.
///
- /// 3
+ [Obsolete("Please do not use! this will be removed. please use Start instead")]
public float Left
{
set
@@ -205,9 +214,24 @@ namespace Tizen.NUI
}
///
+ /// The Start value.
+ ///
+ public float Start
+ {
+ set
+ {
+ start = value;
+ }
+ get
+ {
+ return start;
+ }
+ }
+
+ ///
/// The Right value.
///
- /// 3
+ [Obsolete("Please do not use! this will be removed. please use End instead")]
public float Right
{
set
@@ -221,18 +245,17 @@ namespace Tizen.NUI
}
///
- /// The Bottom value.
+ /// The End value.
///
- /// 3
- public float Bottom
+ public float End
{
set
{
- bottom = value;
+ end = value;
}
get
{
- return bottom;
+ return end;
}
}
@@ -253,54 +276,53 @@ namespace Tizen.NUI
}
///
- /// Create an instance of paddingType.
+ /// The Bottom value.
///
/// 3
- public PaddingType() : this(NDalicPINVOKE.new_PaddingType__SWIG_0(), true)
+ public float Bottom
{
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ set
+ {
+ bottom = value;
+ }
+ get
+ {
+ return bottom;
+ }
}
///
- /// Create an instance of BaseHandle.
+ /// Creates an uninitialized PaddingType.
///
- /// The x value.
- /// The y value.
- /// The width value.
- /// The height value.
/// 3
- public PaddingType(float x, float y, float width, float height) : this(NDalicPINVOKE.new_PaddingType__SWIG_1(x, y, width, height), true)
+ public PaddingType() : this(NDalicPINVOKE.new_PaddingType__SWIG_0(), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
///
- /// Set the x, y, width, height of this paddingtype.
+ /// PaddingType Constructor.
///
- /// The x value.
- /// The y value.
- /// The width value.
- /// The height value.
- /// 3
- public void Set(float newX, float newY, float newWidth, float newHeight)
+ /// Start padding or X coordinate
+ /// End padding or Y coordinate
+ /// Top padding or Height
+ /// Bottom padding or Width
+ public PaddingType(float start, float end, float top, float bottom) : this(NDalicPINVOKE.new_PaddingType__SWIG_1(start, end, bottom, top), true)
{
- NDalicPINVOKE.PaddingType_Set(swigCPtr, newX, newY, newWidth, newHeight);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
- private float x
+ ///
+ /// Assignment from individual values.
+ ///
+ /// Start padding or X coordinate
+ /// End padding or Y coordinate
+ /// Top padding or Height
+ /// Bottom padding or Width
+ public void Set(float newStart, float newEnd, float newTop, float newBottom)
{
- set
- {
- NDalicPINVOKE.PaddingType_x_set(swigCPtr, value);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- get
- {
- float ret = NDalicPINVOKE.PaddingType_x_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
+ NDalicPINVOKE.PaddingType_Set(swigCPtr, newStart, newEnd, newBottom, newTop);
+ if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
private float left
@@ -318,16 +340,16 @@ namespace Tizen.NUI
}
}
- private float y
+ private float start
{
set
{
- NDalicPINVOKE.PaddingType_y_set(swigCPtr, value);
+ NDalicPINVOKE.PaddingType_start_set(swigCPtr, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- float ret = NDalicPINVOKE.PaddingType_y_get(swigCPtr);
+ float ret = NDalicPINVOKE.PaddingType_start_get(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
@@ -348,66 +370,50 @@ namespace Tizen.NUI
}
}
- private float width
+ private float end
{
set
{
- NDalicPINVOKE.PaddingType_width_set(swigCPtr, value);
+ NDalicPINVOKE.PaddingType_end_set(swigCPtr, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- float ret = NDalicPINVOKE.PaddingType_width_get(swigCPtr);
+ float ret = NDalicPINVOKE.PaddingType_end_get(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
- private float bottom
- {
- set
- {
- NDalicPINVOKE.PaddingType_bottom_set(swigCPtr, value);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- }
- get
- {
- float ret = NDalicPINVOKE.PaddingType_bottom_get(swigCPtr);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
- return ret;
- }
- }
-
- private float height
+ private float top
{
set
{
- NDalicPINVOKE.PaddingType_height_set(swigCPtr, value);
+ NDalicPINVOKE.PaddingType_top_set(swigCPtr, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- float ret = NDalicPINVOKE.PaddingType_height_get(swigCPtr);
+ float ret = NDalicPINVOKE.PaddingType_top_get(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
- private float top
+ private float bottom
{
set
{
- NDalicPINVOKE.PaddingType_top_set(swigCPtr, value);
+ NDalicPINVOKE.PaddingType_bottom_set(swigCPtr, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
get
{
- float ret = NDalicPINVOKE.PaddingType_top_get(swigCPtr);
+ float ret = NDalicPINVOKE.PaddingType_bottom_get(swigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
-
}
}
\ No newline at end of file