Lines Matching refs:icon

1 /* icon_manager.c - gfxmenu icon manager.  */
52 /* Create a new icon manager and return a point to it. */
73 /* Destroy the icon manager MGR, freeing all resources used by it.
86 /* Clear the icon cache. */
102 /* Set the theme path. If the theme path is changed, the icon cache
117 /* Set the icon size. When icons are requested from the icon manager,
119 changed, the icon cache is cleared. */
133 /* Try to load an icon for the specified CLASS_NAME in the directory DIR.
134 Returns 0 if the icon could not be loaded, or returns a pointer to a new
174 grub_error (grub_errno, "failed to scale icon");
181 /* Get the icon for the specified class CLASS_NAME. If an icon for
184 If no icon could be could for CLASS_NAME, then 0 is returned. */
188 /* First check the icon cache. */
199 /* Otherwise, we search for an icon to load. */
202 struct grub_video_bitmap *icon;
203 icon = 0;
208 icon = try_loading_icon (mgr, icons_dir, class_name);
213 if (! icon)
219 icon = try_loading_icon (mgr, icondir, class_name);
222 /* No icon was found. */
224 performed each time an icon for CLASS_NAME is requested. */
225 if (! icon)
228 /* Insert a new cache entry for this icon. */
232 grub_video_bitmap_destroy (icon);
236 entry->bitmap = icon;
242 /* Get the best available icon for ENTRY. Beginning with the first class
243 listed in the menu entry and proceeding forward, an icon for each class
244 is searched for. The first icon found is returned. The returned icon
249 icon manager is destroyed.
256 struct grub_video_bitmap *icon;
259 icon = 0;
260 for (c = entry->classes; c && ! icon; c = c->next)
261 icon = get_icon_by_class (mgr, c->name);
262 return icon;