icon_manager.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* icon_manager.h - gfxmenu icon manager. */
  2. /*
  3. * GRUB -- GRand Unified Bootloader
  4. * Copyright (C) 2008 Free Software Foundation, Inc.
  5. *
  6. * GRUB is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * GRUB is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with GRUB. If not, see <http://www.gnu.org/licenses/>.
  18. */
  19. #ifndef GRUB_ICON_MANAGER_HEADER
  20. #define GRUB_ICON_MANAGER_HEADER 1
  21. #include <grub/menu.h>
  22. #include <grub/bitmap.h>
  23. /* Forward declaration of opaque structure handle type. */
  24. typedef struct grub_gfxmenu_icon_manager *grub_gfxmenu_icon_manager_t;
  25. grub_gfxmenu_icon_manager_t grub_gfxmenu_icon_manager_new (void);
  26. void grub_gfxmenu_icon_manager_destroy (grub_gfxmenu_icon_manager_t mgr);
  27. void grub_gfxmenu_icon_manager_clear_cache (grub_gfxmenu_icon_manager_t mgr);
  28. void grub_gfxmenu_icon_manager_set_theme_path (grub_gfxmenu_icon_manager_t mgr,
  29. const char *path);
  30. void grub_gfxmenu_icon_manager_set_icon_size (grub_gfxmenu_icon_manager_t mgr,
  31. int width, int height);
  32. struct grub_video_bitmap *
  33. grub_gfxmenu_icon_manager_get_icon (grub_gfxmenu_icon_manager_t mgr,
  34. grub_menu_entry_t entry);
  35. #endif /* GRUB_ICON_MANAGER_HEADER */