Position2D position = GetPosition();
Size2D size = GetSize();
Rectangle ret = new Rectangle(position.X, position.Y, size.Width, size.Height);
+ position.Dispose();
return ret;
}
set
{
for (int i = 0; i < orientations.Count; i++)
{
- orientationArray.PushBack(new PropertyValue((int)orientations[i]));
+ PropertyValue value = new PropertyValue((int)orientations[i]);
+ orientationArray.PushBack(value);
+ value.Dispose();
}
}
Interop.Window.SetAvailableOrientations(SwigCPtr, PropertyArray.getCPtr(orientationArray));
+ orientationArray.Dispose();
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
}
{
var val = new Uint16Pair(Interop.Window.GetSize(SwigCPtr), false);
Vector2 ret = new Vector2(val.GetWidth(), val.GetHeight());
+ val.Dispose();
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
var val = new Uint16Pair((uint)size.Width, (uint)size.Height);
Interop.Window.SetSize(SwigCPtr, Uint16Pair.getCPtr(val));
-
+ val.Dispose();
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
-
// Resetting Window size should request a relayout of the tree.
}
{
var val = new Uint16Pair(Interop.Window.GetSize(SwigCPtr), false);
Size2D ret = new Size2D(val.GetWidth(), val.GetHeight());
-
+ val.Dispose();
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}
}
var val = new Uint16Pair((uint)position.X, (uint)position.Y);
Interop.Window.SetPosition(SwigCPtr, Uint16Pair.getCPtr(val));
-
+ val.Dispose();
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
// Setting Position of the window should request a relayout of the tree.
}
{
var val = new Uint16Pair(Interop.Window.GetPosition(SwigCPtr), true);
Position2D ret = new Position2D(val.GetX(), val.GetY());
-
+ val.Dispose();
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
return ret;
}