public void Read(IProject project, XmlElement elem) { icons.Clear (); foreach (XmlElement child in elem.SelectNodes ("icon-set")) { ProjectIconSet icon = new ProjectIconSet (); icon.Read (project, child); icons.Add (icon); } }
public void Read(IProject project, XmlElement elem) { icons.Clear(); foreach (XmlElement child in elem.SelectNodes("icon-set")) { ProjectIconSet icon = new ProjectIconSet(); icon.Read(project, child); icons.Add(icon); } }
public Gdk.Pixbuf RenderIcon(IProject project, string name, int size) { ProjectIconSet icon = GetIcon(name); if (icon == null) { return(null); } return(icon.Sources [0].Image.GetScaledImage(project, size, size)); }
public Gdk.Pixbuf RenderIcon(IProject project, string name, Gtk.IconSize size) { ProjectIconSet icon = GetIcon(name); if (icon == null) { return(null); } foreach (ProjectIconSource src in icon.Sources) { if (src.SizeWildcarded || src.Size == size) { return(src.Image.GetScaledImage(project, size)); } } return(icon.Sources [0].Image.GetScaledImage(project, size)); }
public void Remove(ProjectIconSet icon) { List.Remove (icon); }
public void Add(ProjectIconSet icon) { List.Add (icon); }
public void Remove(ProjectIconSet icon) { List.Remove(icon); }
public void Add(ProjectIconSet icon) { List.Add(icon); }