}
set
{
- SetProperty(View.Property.TOOLTIP, new Tizen.NUI.PropertyValue(value));
+ var temp = new Tizen.NUI.PropertyValue(value);
+ SetProperty(View.Property.TOOLTIP, temp);
+ temp.Dispose();
NotifyPropertyChanged();
}
}
get
{
Vector2 temp = new Vector2(0.0f, 0.0f);
- GetProperty(View.Property.ScreenPosition).Get(temp);
+ var pValue = GetProperty(View.Property.ScreenPosition);
+ pValue.Get(temp);
+ pValue.Dispose();
return temp;
}
}
get
{
bool temp = false;
- GetProperty(View.Property.PositionUsesAnchorPoint).Get(out temp);
+ var pValue = GetProperty(View.Property.PositionUsesAnchorPoint);
+ pValue.Get(out temp);
+ pValue.Dispose();
return temp;
}
set
{
- SetProperty(View.Property.PositionUsesAnchorPoint, new Tizen.NUI.PropertyValue(value));
+ var temp = new Tizen.NUI.PropertyValue(value);
+ SetProperty(View.Property.PositionUsesAnchorPoint, temp);
+ temp.Dispose();
NotifyPropertyChanged();
}
}
Vector3 temp = new Vector3(Interop.Actor.GetNaturalSize(SwigCPtr), true);
if (NDalicPINVOKE.SWIGPendingException.Pending) throw new InvalidOperationException("FATAL: get Exception", NDalicPINVOKE.SWIGPendingException.Retrieve());
- return new Size2D((int)temp.Width, (int)temp.Height);
+ Size2D sz = new Size2D((int)temp.Width, (int)temp.Height);
+ temp.Dispose();
+ return sz;
}
}
get
{
Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
- GetProperty(View.Property.WorldPosition).Get(temp);
+ var pValue = GetProperty(View.Property.WorldPosition);
+ pValue.Get(temp);
+ pValue.Dispose();
return temp;
}
}
get
{
Rotation temp = new Rotation();
- GetProperty(View.Property.WorldOrientation).Get(temp);
+ var pValue = GetProperty(View.Property.WorldOrientation);
+ pValue.Get(temp);
+ pValue.Dispose();
return temp;
}
}
get
{
Vector3 temp = new Vector3(0.0f, 0.0f, 0.0f);
- GetProperty(View.Property.WorldScale).Get(temp);
+ var pValue = GetProperty(View.Property.WorldScale);
+ pValue.Get(temp);
+ pValue.Dispose();
return temp;
}
}
get
{
bool temp = false;
- GetProperty(View.Property.VISIBLE).Get(out temp);
+ var pValue = GetProperty(View.Property.VISIBLE);
+ pValue.Get(out temp);
+ pValue.Dispose();
return temp;
}
}
get
{
Vector4 temp = new Vector4(0.0f, 0.0f, 0.0f, 0.0f);
- GetProperty(View.Property.WorldColor).Get(temp);
+ var pValue = GetProperty(View.Property.WorldColor);
+ pValue.Get(temp);
+ pValue.Dispose();
return temp;
}
}
get
{
Position temp = new Position(0.0f, 0.0f, 0.0f);
- GetProperty(View.Property.AnchorPoint).Get(temp);
- return new Position(OnAnchorPointChanged, temp.X, temp.Y, temp.Z);
+ var pValue = GetProperty(View.Property.AnchorPoint);
+ pValue.Get(temp);
+ pValue.Dispose();
+ Position ret = new Position(OnAnchorPointChanged, temp.X, temp.Y, temp.Z);
+ temp.Dispose();
+ return ret;
}
set
{
- SetProperty(View.Property.AnchorPoint, new Tizen.NUI.PropertyValue(value));
+ var temp = new Tizen.NUI.PropertyValue(value);
+ SetProperty(View.Property.AnchorPoint, temp);
+ temp.Dispose();
NotifyPropertyChanged();
}
}
get
{
Extents temp = new Extents(0, 0, 0, 0);
- GetProperty(View.Property.PADDING).Get(temp);
- return new Extents(OnPaddingEXChanged, temp.Start, temp.End, temp.Top, temp.Bottom);
+ var pValue = GetProperty(View.Property.PADDING);
+ pValue.Get(temp);
+ pValue.Dispose();
+ Extents ret = new Extents(OnPaddingEXChanged, temp.Start, temp.End, temp.Top, temp.Bottom);
+ temp.Dispose();
+ return ret;
}
set
{
- SetProperty(View.Property.PADDING, new Tizen.NUI.PropertyValue(value));
+ var temp = new Tizen.NUI.PropertyValue(value);
+ SetProperty(View.Property.PADDING, temp);
+ temp.Dispose();
NotifyPropertyChanged();
layout?.RequestLayout();
}
backgroundImageSynchronosLoading = value;
string bgUrl = null;
- Background.Find(ImageVisualProperty.URL)?.Get(out bgUrl);
+ var pValue = Background.Find(ImageVisualProperty.URL);
+ pValue?.Get(out bgUrl);
+ pValue?.Dispose();
if (!string.IsNullOrEmpty(bgUrl))
{
PropertyMap bgMap = this.Background;
- bgMap.Add("synchronousLoading", new PropertyValue(backgroundImageSynchronosLoading));
+ var temp = new PropertyValue(backgroundImageSynchronosLoading);
+ bgMap.Add("synchronousLoading", temp);
+ temp.Dispose();
Background = bgMap;
}
}
get
{
bool temp = false;
- GetProperty(View.Property.CaptureAllTouchAfterStart).Get(out temp);
+ var pValue = GetProperty(View.Property.CaptureAllTouchAfterStart);
+ pValue.Get(out temp);
+ pValue.Dispose();
return temp;
}
set
{
- SetProperty(View.Property.CaptureAllTouchAfterStart, new Tizen.NUI.PropertyValue(value));
+ var temp = new Tizen.NUI.PropertyValue(value);
+ SetProperty(View.Property.CaptureAllTouchAfterStart, temp);
+ temp.Dispose();
NotifyPropertyChanged();
}
}
get
{
int temp = 0;
- GetProperty(View.Property.BlendEquation).Get(out temp);
+ var pValue = GetProperty(View.Property.BlendEquation);
+ pValue.Get(out temp);
+ pValue.Dispose();
return (BlendEquationType)temp;
}
set
{
- SetProperty(View.Property.BlendEquation, new Tizen.NUI.PropertyValue((int)value));
+ var temp = new Tizen.NUI.PropertyValue((int)value);
+ SetProperty(View.Property.BlendEquation, temp);
+ temp.Dispose();
NotifyPropertyChanged();
}
}
private void OnSize2DChanged(int? width, int? height)
{
+ PropertyValue temp;
if (width != null)
{
- Tizen.NUI.Object.SetProperty(this.SwigCPtr, View.Property.SizeWidth, new Tizen.NUI.PropertyValue((float)width));
+ temp = new Tizen.NUI.PropertyValue((float)width);
+ Tizen.NUI.Object.SetProperty(this.SwigCPtr, View.Property.SizeWidth, temp);
+ temp.Dispose();
}
if (height != null)
{
- Tizen.NUI.Object.SetProperty(this.SwigCPtr, View.Property.SizeHeight, new Tizen.NUI.PropertyValue((float)height));
+ temp = new Tizen.NUI.PropertyValue((float)height);
+ Tizen.NUI.Object.SetProperty(this.SwigCPtr, View.Property.SizeHeight, temp);
+ temp.Dispose();
}
}
private void OnSizeChanged(float? width, float? height, float? depth)
{
+ PropertyValue temp;
if (width != null)
{
- Tizen.NUI.Object.SetProperty(this.SwigCPtr, View.Property.SizeWidth, new Tizen.NUI.PropertyValue((float)width));
+ temp = new Tizen.NUI.PropertyValue((float)width);
+ Tizen.NUI.Object.SetProperty(this.SwigCPtr, View.Property.SizeWidth, temp);
+ temp.Dispose();
}
if (height != null)
{
- Tizen.NUI.Object.SetProperty(this.SwigCPtr, View.Property.SizeHeight, new Tizen.NUI.PropertyValue((float)height));
+ temp = new Tizen.NUI.PropertyValue((float)height);
+ Tizen.NUI.Object.SetProperty(this.SwigCPtr, View.Property.SizeHeight, temp);
+ temp.Dispose();
}
if (depth != null)
{
- Tizen.NUI.Object.SetProperty(this.SwigCPtr, View.Property.SizeDepth, new Tizen.NUI.PropertyValue((float)depth));
+ temp = new Tizen.NUI.PropertyValue((float)depth);
+ Tizen.NUI.Object.SetProperty(this.SwigCPtr, View.Property.SizeDepth, temp);
+ temp.Dispose();
}
}
set
{
_arrowImage = value;
- _arrowVisual = VisualFactory.Instance.CreateVisual(
- new PropertyMap().Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Image))
- .Add(ImageVisualProperty.URL, new PropertyValue(_arrowImage))
- .Add(ImageVisualProperty.DesiredHeight, new PropertyValue(150))
- .Add(ImageVisualProperty.DesiredWidth, new PropertyValue(150)));
+ var ptMap = new PropertyMap();
+ var temp = new PropertyValue((int)Visual.Type.Image);
+ ptMap.Add(Visual.Property.Type, temp);
+ temp.Dispose();
+
+ temp = new PropertyValue(_arrowImage);
+ ptMap.Add(ImageVisualProperty.URL, temp);
+ temp.Dispose();
+
+ temp = new PropertyValue(150);
+ ptMap.Add(ImageVisualProperty.DesiredHeight, temp);
+ temp.Dispose();
+
+ temp = new PropertyValue(150);
+ ptMap.Add(ImageVisualProperty.DesiredWidth, temp);
+ temp.Dispose();
+
+ _arrowVisual = VisualFactory.Instance.CreateVisual(ptMap);
+ ptMap.Dispose();
+
RegisterVisual(_arrowVisualPropertyIndex, _arrowVisual);
}
}
_maxTextLength = 0;
// Create image visual for the arrow keys
- _arrowVisualPropertyIndex = RegisterProperty("ArrowImage", new PropertyValue(_arrowImage), Tizen.NUI.PropertyAccessMode.ReadWrite);
- _arrowVisual = VisualFactory.Instance.CreateVisual(
- new PropertyMap().Add(Visual.Property.Type, new PropertyValue((int)Visual.Type.Image))
- .Add(ImageVisualProperty.URL, new PropertyValue(_arrowImage))
- .Add(ImageVisualProperty.DesiredHeight, new PropertyValue(150))
- .Add(ImageVisualProperty.DesiredWidth, new PropertyValue(150)));
+ var temp = new PropertyValue(_arrowImage);
+ _arrowVisualPropertyIndex = RegisterProperty("ArrowImage", temp, Tizen.NUI.PropertyAccessMode.ReadWrite);
+ temp.Dispose();
+
+ var ptMap = new PropertyMap();
+ temp = new PropertyValue((int)Visual.Type.Image);
+ ptMap.Add(Visual.Property.Type, temp);
+ temp.Dispose();
+
+ temp = new PropertyValue(_arrowImage);
+ ptMap.Add(ImageVisualProperty.URL, temp);
+ temp.Dispose();
+
+ temp = new PropertyValue(150);
+ ptMap.Add(ImageVisualProperty.DesiredHeight, temp);
+ temp.Dispose();
+
+ temp = new PropertyValue(150);
+ ptMap.Add(ImageVisualProperty.DesiredWidth, temp);
+ temp.Dispose();
+
+ _arrowVisual = VisualFactory.Instance.CreateVisual(ptMap);
+ ptMap.Dispose();
RegisterVisual(_arrowVisualPropertyIndex, _arrowVisual);
// Create a text field