/// <remarks>
/// Deriving classes stipulate the natural size and by default a view has a zero natural size.
/// </remarks>
- /// /// Please do not use! this will be deprecated!
- /// Instead please use NaturalSize2D.
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use NaturalSize2D instead! " +
- "Like: " +
- "TextLabel label = new TextLabel(\"Hello World!\"); " +
- "Size2D size = label.NaturalSize2D;")]
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <since_tizen> 5 </since_tizen>
public Vector3 NaturalSize
{
get
}
/// <summary>
- /// [Obsolete("Please do not use! this will be deprecated")]
+ /// Sets the size of a view for the width, the height and the depth.<br />
+ /// Geometry can be scaled to fit within this area.<br />
+ /// This does not interfere with the view's scale factor.<br />
+ /// The views default depth is the minimum of width and height.<br />
/// </summary>
- /// <since_tizen> 3 </since_tizen>
- [Obsolete("Please do not use! This will be deprecated! Please use Size2D instead! " +
- "Like: " +
- "View view = new View(); " +
- "view.Size2D = new Size2D(100, 100);")]
- [EditorBrowsable(EditorBrowsableState.Never)]
+ /// <remarks>
+ /// Please note that multi-cascade setting is not possible for this NUI object. <br />
+ /// It is recommended that NUI object typed properties are configured by their constructor with parameters. <br />
+ /// For example, this code is working fine : view.Size = new Size( 1.0f, 1.0f, 0.0f); <br />
+ /// but this will not work! : view.Size.Width = 2.0f; view.Size.Height = 2.0f; <br />
+ /// </remarks>
+ /// <since_tizen> 5 </since_tizen>
public Size Size
{
get
namespace Tizen.NUI
{
- // Please do not use! This will be changed to internal class.
/// <summary>
/// A three-dimensional size.
/// </summary>
- /// <since_tizen> 3 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
[Tizen.NUI.Binding.TypeConverter(typeof(SizeTypeConverter))]
- [EditorBrowsable(EditorBrowsableState.Never)]
public class Size : global::System.IDisposable
{
private global::System.Runtime.InteropServices.HandleRef swigCPtr;
/// <summary>swigCMemOwn.</summary>
- /// <since_tizen> 3 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
protected bool swigCMemOwn;
internal Size(global::System.IntPtr cPtr, bool cMemoryOwn)
/// <summary>
/// A Flat to check if it is already disposed.
/// </summary>
- /// <since_tizen> 3 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
protected bool disposed = false;
/// <summary>
/// <summary>
/// Dispose.
/// </summary>
- /// <since_tizen> 3 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public void Dispose()
{
//Throw excpetion if Dispose() is called in separate thread.
/// <summary>
/// Dispose.
/// </summary>
- /// <since_tizen> 3 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
protected virtual void Dispose(DisposeTypes type)
{
if (disposed)
/// <param name="arg1">Size to assign A.</param>
/// <param name="arg2">Size to assign B.</param>
/// <returns>A size containing the result of the addition.</returns>
- /// <since_tizen> 3 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public static Size operator +(Size arg1, Size arg2)
{
return arg1.Add(arg2);
/// <param name="arg1">Size to subtract A.</param>
/// <param name="arg2">Size to subtract B.</param>
/// <returns>The size containing the result of the subtraction.</returns>
- /// <since_tizen> 3 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public static Size operator -(Size arg1, Size arg2)
{
return arg1.Subtract(arg2);
/// </summary>
/// <param name="arg1">Size for unary negation.</param>
/// <returns>A size containing the negation.</returns>
- /// <since_tizen> 3 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public static Size operator -(Size arg1)
{
return arg1.Subtract();
/// <param name="arg1">Size for multiplication.</param>
/// <param name="arg2">The size to multiply.</param>
/// <returns>A size containing the result of the multiplication.</returns>
- /// <since_tizen> 3 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public static Size operator *(Size arg1, Size arg2)
{
return arg1.Multiply(arg2);
/// <param name="arg1">Size for multiplication.</param>
/// <param name="arg2">The float value to scale the size.</param>
/// <returns>A size containing the result of the scaling.</returns>
- /// <since_tizen> 3 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public static Size operator *(Size arg1, float arg2)
{
return arg1.Multiply(arg2);
/// <param name="arg1">Size for division.</param>
/// <param name="arg2">The size to divide.</param>
/// <returns>A size containing the result of the division.</returns>
- /// <since_tizen> 3 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public static Size operator /(Size arg1, Size arg2)
{
return arg1.Divide(arg2);
/// <param name="arg1">Size for division.</param>
/// <param name="arg2">The float value to scale the size by.</param>
/// <returns>A Size containing the result of the scaling.</returns>
- /// <since_tizen> 3 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public static Size operator /(Size arg1, float arg2)
{
return arg1.Divide(arg2);
/// </summary>
/// <param name="index">Subscript index.</param>
/// <returns>The float at the given index.</returns>
- /// <since_tizen> 3 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public float this[uint index]
{
get
/// <summary>
/// The constructor.
/// </summary>
- /// <since_tizen> 3 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public Size() : this(NDalicPINVOKE.new_Vector3__SWIG_0(), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// <param name="x">The x (or width) component.</param>
/// <param name="y">The y (or height) component.</param>
/// <param name="z">The z (or depth) component.</param>
- /// <since_tizen> 3 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public Size(float x, float y, float z) : this(NDalicPINVOKE.new_Vector3__SWIG_1(x, y, z), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// The constructor.
/// </summary>
/// <param name="size2d">Size2D with x (width) and y (height).</param>
- /// <since_tizen> 3 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public Size(Size2D size2d) : this(NDalicPINVOKE.new_Vector3__SWIG_3(Size2D.getCPtr(size2d)), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
/// <summary>
/// The Zero constant, (0.0f, 0.0f, 0.0f).
/// </summary>
- /// <since_tizen> 3 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public static Size Zero
{
get
/// </summary>
/// <param name="rhs">The size to test against.</param>
/// <returns>True if the sizes are equal.</returns>
- /// <since_tizen> 3 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public bool EqualTo(Size rhs)
{
bool ret = NDalicPINVOKE.Vector3_EqualTo(swigCPtr, Size.getCPtr(rhs));
/// </summary>
/// <param name="rhs">The size to test against.</param>
/// <returns>True if the sizes are not equal.</returns>
- /// <since_tizen> 3 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public bool NotEqualTo(Size rhs)
{
bool ret = NDalicPINVOKE.Vector3_NotEqualTo(swigCPtr, Size.getCPtr(rhs));
/// <summary>
/// The Width property for the width component of size
/// </summary>
- /// <since_tizen> 3 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public float Width
{
set
/// <summary>
/// The Height property for the height component of size.
/// </summary>
- /// <since_tizen> 3 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public float Height
{
set
/// <summary>
/// The Depth property for the depth component of size.
/// </summary>
- /// <since_tizen> 3 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public float Depth
{
set
/// The type cast operator, Size to Vector3.
/// </summary>
/// <param name="size">The object of size type.</param>
- /// <since_tizen> 3 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public static implicit operator Vector3(Size size)
{
return new Vector3(size.Width, size.Height, size.Depth);
/// The type cast operator, Vector3 to Size type.
/// </summary>
/// <param name="vec">The object of Vector3 type.</param>
- /// <since_tizen> 3 </since_tizen>
+ /// <since_tizen> 5 </since_tizen>
public static implicit operator Size(Vector3 vec)
{
return new Size(vec.Width, vec.Height, vec.Depth);