if (ret != null)
{
Interop.BaseHandle.DeleteBaseHandle(new global::System.Runtime.InteropServices.HandleRef(this, cPtr));
+ NDalicPINVOKE.ThrowExceptionIfExists();
+ return ret;
}
else
{
ret = new Animatable(cPtr, true);
+ return ret;
}
- NDalicPINVOKE.ThrowExceptionIfExists();
- return ret;
}
/// <summary>
public PropertyArray Add(PropertyValue value)
{
PropertyArray ret = new PropertyArray(Interop.Property.ArrayAdd(SwigCPtr, PropertyValue.getCPtr(value)), false);
- if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
/// <since_tizen> 3 </since_tizen>
public class Wheel : BaseHandle
{
-
/// <summary>
/// The default constructor of Wheel class.
/// </summary>
/// <since_tizen> 3 </since_tizen>
- public Wheel() : this(Interop.Wheel.New(0, 0, 0u, Vector2.getCPtr(new Vector2(0.0f, 0.0f)), 0, 0u), true)
+ public Wheel() : this(Interop.Wheel.New(0, 0, 0u, Vector2.getCPtr(Vector2.Zero), 0, 0u), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
{
using var posVector2 = new Vector2(position.X, position.Y);
using var sizeVector2 = new Vector2(size.Width, size.Height);
- Interop.Capture.Start4(SwigCPtr, source.SwigCPtr, posVector2.SwigCPtr, sizeVector2.SwigCPtr, path, new Vector4(color.R, color.G, color.B, color.A).SwigCPtr);
+ using var colorVector4 = new Vector4(color.R, color.G, color.B, color.A);
+ Interop.Capture.Start4(SwigCPtr, source.SwigCPtr, posVector2.SwigCPtr, sizeVector2.SwigCPtr, path, colorVector4.SwigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
if (source is View || source is Layer)
{
using var sizeVector2 = new Vector2(size.Width, size.Height);
- Interop.Capture.Start3(SwigCPtr, source.SwigCPtr, sizeVector2.SwigCPtr, path, new Vector4(color.R, color.G, color.B, color.A).SwigCPtr, quality);
+ using var colorVector4 = new Vector4(color.R, color.G, color.B, color.A);
+ Interop.Capture.Start3(SwigCPtr, source.SwigCPtr, sizeVector2.SwigCPtr, path, colorVector4.SwigCPtr, quality);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
if (source is View || source is Layer)
{
using var sizeVector2 = new Vector2(size.Width, size.Height);
- Interop.Capture.Start1(SwigCPtr, source.SwigCPtr, sizeVector2.SwigCPtr, path, new Vector4(color.R, color.G, color.B, color.A).SwigCPtr);
+ using var colorVector4 = new Vector4(color.R, color.G, color.B, color.A);
+ Interop.Capture.Start1(SwigCPtr, source.SwigCPtr, sizeVector2.SwigCPtr, path, colorVector4.SwigCPtr);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
using var urlArray = new PropertyArray();
foreach (var url in urls)
{
- var pv = new PropertyValue(url);
- using var _ = urlArray.Add(pv);
+ using (var pv = new PropertyValue(url))
+ {
+ using var _ = urlArray.Add(pv);
+ }
}
using (var temp = new PropertyValue(urlArray))
{
using var urlArray = new PropertyArray();
foreach (var url in resourceUrls)
{
- var urlValue = new PropertyValue(url);
- using var _ = urlArray.Add(urlValue);
+ using (var urlValue = new PropertyValue(url))
+ {
+ using var _ = urlArray.Add(urlValue);
+ }
}
if (cachedVisualPropertyMap != null)
[EditorBrowsable(EditorBrowsableState.Never)]
public class MouseInOut : Disposable
{
-
/// <summary>
/// The default constructor.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
- public MouseInOut() : this(Interop.MouseInOut.NewMouseInOut((int)MouseInOut.StateType.None, 0, Vector2.getCPtr(new Vector2(0, 0)), 0), true)
+ public MouseInOut() : this(Interop.MouseInOut.NewMouseInOut((int)MouseInOut.StateType.None, 0, Vector2.getCPtr(Vector2.Zero), 0), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
[EditorBrowsable(EditorBrowsableState.Never)]
public class MouseRelative : Disposable
{
-
/// <summary>
/// The default constructor.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
- public MouseRelative() : this(Interop.MouseRelative.NewMouseRelative((int)MouseRelative.StateType.None, 0, 0, Vector2.getCPtr(new Vector2(0, 0)), Vector2.getCPtr(new Vector2(0, 0))), true)
+ public MouseRelative() : this(Interop.MouseRelative.NewMouseRelative((int)MouseRelative.StateType.None, 0, 0, Vector2.getCPtr(Vector2.Zero), Vector2.getCPtr(Vector2.Zero)), true)
{
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}