/// The Width property for the width component of size
/// </summary>
/// <remarks>
- /// The setter is deprecated in API8 and will be removed in API10. Please use new Size(...) constructor.
+ /// The setter is deprecated in API8 and will be removed in API10. Use new Size(...) constructor.
/// </remarks>
/// <code>
/// // DO NOT use like the followings!
/// Size size = new Size();
/// size.Width = 0.1f;
- /// // Please USE like this
+ /// // USE like this
/// float width = 0.1f, height = 0.5f, depth = 0.9f;
/// Size size = new Size(width, height, depth);
/// </code>
/// <since_tizen> 5 </since_tizen>
public float Width
{
+ [Obsolete("Do not use this setter, that is deprecated in API8 and will be removed in API10. Use new Size(...) constructor")]
set
{
- Tizen.Log.Fatal("NUI", "Please do not use this setter, Deprecated in API8, will be removed in API10. please use new Size(...) constructor");
-
Interop.Vector3.WidthSet(SwigCPtr, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// The Height property for the height component of size.
/// </summary>
/// <remarks>
- /// The setter is deprecated in API8 and will be removed in API10. Please use new Size(...) constructor.
+ /// The setter is deprecated in API8 and will be removed in API10. Use new Size(...) constructor.
/// </remarks>
/// <code>
/// // DO NOT use like the followings!
/// Size size = new Size();
/// size.Height = 0.5f;
- /// // Please USE like this
+ /// // USE like this
/// float width = 0.1f, height = 0.5f, depth = 0.9f;
/// Size size = new Size(width, height, depth);
/// </code>
/// <since_tizen> 5 </since_tizen>
public float Height
{
+ [Obsolete("Do not use this setter, that is deprecated in API8 and will be removed in API10. Use new Size(...) constructor")]
set
{
- Tizen.Log.Fatal("NUI", "Please do not use this setter, Deprecated in API8, will be removed in API10. please use new Size(...) constructor");
-
Interop.Vector3.HeightSet(SwigCPtr, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// The Depth property for the depth component of size.
/// </summary>
/// <remarks>
- /// The setter is deprecated in API8 and will be removed in API10. Please use new Size(...) constructor.
+ /// The setter is deprecated in API8 and will be removed in API10. Use new Size(...) constructor.
/// </remarks>
/// <code>
/// // DO NOT use like the followings!
/// Size size = new Size();
/// size.Depth = 0.9f;
- /// // Please USE like this
+ /// // USE like this
/// float width = 0.1f, height = 0.5f, depth = 0.9f;
/// Size size = new Size(width, height, depth);
/// </code>
/// <since_tizen> 5 </since_tizen>
public float Depth
{
+ [Obsolete("Do not use this setter, that is deprecated in API8 and will be removed in API10. Use new Size(...) constructor")]
set
{
- Tizen.Log.Fatal("NUI", "Please do not use this setter, Deprecated in API8, will be removed in API10. please use new Size(...) constructor");
-
Interop.Vector3.DepthSet(SwigCPtr, value);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
/// <summary>
- /// Gets the the hash code of this Size.
+ /// Gets the hash code of this Size.
/// </summary>
/// <returns>The Hash Code.</returns>
/// <since_tizen> 6 </since_tizen>
/// <since_tizen> 5 </since_tizen>
public static implicit operator Vector3(Size size)
{
- return new Vector3((float)size?.Width, (float)size.Height, (float)size.Depth);
+ if (size == null)
+ {
+ return null;
+ }
+ return new Vector3(size.Width, size.Height, size.Depth);
}
/// <summary>
/// <since_tizen> 5 </since_tizen>
public static implicit operator Size(Vector3 vec)
{
- return new Size((int)vec?.Width, (int)vec.Height, (int)vec.Depth);
+ if (vec == null)
+ {
+ return null;
+ }
+ return new Size(vec.Width, vec.Height, vec.Depth);
}
/// <summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public static implicit operator Size(Size2D size2d)
{
- return new Size((int)size2d?.Width, (int)size2d.Height, 0);
+ if (size2d == null)
+ {
+ return null;
+ }
+ return new Size(size2d.Width, size2d.Height);
}
return ret;
}
- internal static global::System.Runtime.InteropServices.HandleRef getCPtr(Size obj)
- {
- return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.SwigCPtr;
- }
-
internal Size(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
{
}