1 /* icon_manager.h - gfxmenu icon manager. */
3 * GRUB -- GRand Unified Bootloader
4 * Copyright (C) 2008 Free Software Foundation, Inc.
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.
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.
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/>.
20 #ifndef GRUB_ICON_MANAGER_HEADER
21 #define GRUB_ICON_MANAGER_HEADER 1
23 #include <grub/menu.h>
24 #include <grub/bitmap.h>
26 /* Forward declaration of opaque structure handle type. */
27 typedef struct grub_gfxmenu_icon_manager
*grub_gfxmenu_icon_manager_t
;
29 grub_gfxmenu_icon_manager_t
grub_gfxmenu_icon_manager_new (void);
30 void grub_gfxmenu_icon_manager_destroy (grub_gfxmenu_icon_manager_t mgr
);
31 void grub_gfxmenu_icon_manager_clear_cache (grub_gfxmenu_icon_manager_t mgr
);
32 void grub_gfxmenu_icon_manager_set_theme_path (grub_gfxmenu_icon_manager_t mgr
,
34 void grub_gfxmenu_icon_manager_set_icon_size (grub_gfxmenu_icon_manager_t mgr
,
35 int width
, int height
);
36 struct grub_video_bitmap
*
37 grub_gfxmenu_icon_manager_get_icon (grub_gfxmenu_icon_manager_t mgr
,
38 grub_menu_entry_t entry
);
40 #endif /* GRUB_ICON_MANAGER_HEADER */