public void Data() { string name = "parasite"; int data = 13; var parasite = new Parasite(name, 0, data); // int value = (int) parasite.Data; }
public void AttachParasite() { var vectors = new Vectors(_image, "firstVector"); var parasite = new Parasite("foo", 0, 13); vectors.AttachParasite(parasite); Assert.AreEqual(1, vectors.ParasiteList.Count); }
public void AttachParasite(Parasite parasite) { if (!gimp_item_attach_parasite(ID, parasite.Ptr)) { throw new GimpSharpException(); } }
public void DetachParasite(Parasite parasite) { if (!gimp_item_detach_parasite(ID, parasite.Name)) { throw new GimpSharpException(); } }
public void ParasiteAttach(Parasite parasite) { if (!gimp_image_parasite_attach(ID, parasite.Ptr)) { throw new GimpSharpException(); } }
public void AttachParasite() { var parasite = new Parasite("foo", 0, 13); Gimp.AttachParasite(parasite); Assert.AreEqual(1, Gimp.ParasiteList.Count); Gimp.DetachParasite(parasite); }
public void Constructor() { string name = "parasite"; // string foo = "foo"; int data = 13; var parasite = new Parasite(name, 0, data); Assert.AreEqual(name, parasite.Name); }
public void DataSize() { string name = "parasite"; int data = 13; var parasite = new Parasite(name, 0, data); long size = parasite.DataSize; Assert.AreEqual(sizeof(int), size); }
public void GetParasite() { Assert.IsNull(Gimp.GetParasite("foo")); var parasite = new Parasite("foo", 0, 13); Gimp.AttachParasite(parasite); var found = Gimp.GetParasite("foo"); Assert.IsNotNull(found); Assert.AreEqual(parasite, found); Gimp.DetachParasite(parasite); }
public void Equals() { int data = 13; var parasite1 = new Parasite("parasite", 0, data); var parasite2 = new Parasite("parasite", 0, data); Assert.IsTrue(parasite1.Equals(parasite2)); data = 14; var parasite3 = new Parasite("parasite", 0, data); Assert.IsFalse(parasite1.Equals(parasite3)); }
public void ParasiteFind() { var vectors = new Vectors(_image, "firstVector"); var parasite = new Parasite("foo", 0, 13); vectors.AttachParasite(parasite); var found = vectors.ParasiteFind("foo"); Assert.AreEqual(parasite, found); Assert.IsNull(vectors.ParasiteFind("bar")); }
public void AttachParasite() { string name = "parasite"; int data = 13; var parasite = new Parasite(name, 0, data); _drawable.AttachParasite(parasite); var found = _drawable.ParasiteFind(name); Assert.IsNotNull(found); Assert.AreEqual(name, found.Name); }
public void DetachParasite() { string name = "parasite"; int data = 13; var parasite = new Parasite(name, 0, data); _drawable.AttachParasite(parasite); _drawable.DetachParasite(parasite); var found = _drawable.ParasiteFind(name); Assert.IsNull(found); Assert.AreEqual(0, _drawable.ParasiteList.Count); }
public void ParasiteList() { var list = _drawable.ParasiteList; Assert.AreEqual(0, list.Count); string name = "parasite"; int data = 13; var parasite = new Parasite(name, 0, data); _drawable.AttachParasite(parasite); list = _drawable.ParasiteList; Assert.AreEqual(1, list.Count); Assert.AreEqual(parasite, list[0]); }
public Parasite(Parasite parasite) { _parasite = gimp_parasite_copy(parasite._parasite); }
public static void DetachParasite(Parasite parasite) { if (!gimp_detach_parasite(parasite.Name)) { throw new GimpSharpException(); } }
public static void AttachParasite(Parasite parasite) { if (!gimp_attach_parasite(parasite.Ptr)) { throw new GimpSharpException(); } }
public void Add(Parasite parasite) { _list.Add(parasite); }
public void ParasiteDetach(Parasite parasite) { if (!gimp_vectors_parasite_detach(_ID, parasite.Name)) { throw new GimpSharpException(); } }