*/
using System;
+using System.Collections.Generic;
using System.ComponentModel;
namespace Tizen.NUI.BaseComponents.VectorGraphics
[EditorBrowsable(EditorBrowsableState.Never)]
public class DrawableGroup : Drawable
{
+ private List<Drawable> drawables; //The list of added drawables
+
/// <summary>
/// Creates an initialized DrawableGroup.
/// </summary>
internal DrawableGroup(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
{
+ drawables = new List<Drawable>();
}
/// <summary>
}
Interop.DrawableGroup.AddDrawable(View.getCPtr(this), BaseHandle.getCPtr(drawable));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ if (!drawables.Contains(drawable))
+ {
+ drawables.Add(drawable);
+ }
}
/// <summary>
{
bool ret = Interop.DrawableGroup.Clear(BaseHandle.getCPtr(this));
if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+ if (ret)
+ {
+ drawables.Clear();
+ }
return ret;
}
}