/* gfxwidgets.h - Widgets for the graphical menu (gfxmenu). */
/*
* VAS_EBOOT -- GRand Unified Bootloader
* Copyright (C) 2008 Free Software Foundation, Inc.
*
* VAS_EBOOT is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* VAS_EBOOT is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with VAS_EBOOT. If not, see .
*/
#ifndef VAS_EBOOT_GFXWIDGETS_HEADER
#define VAS_EBOOT_GFXWIDGETS_HEADER 1
#include
typedef struct VasEBoot_gfxmenu_box *VasEBoot_gfxmenu_box_t;
struct VasEBoot_gfxmenu_box
{
/* The size of the content. */
int content_width;
int content_height;
struct VasEBoot_video_bitmap **raw_pixmaps;
struct VasEBoot_video_bitmap **scaled_pixmaps;
void (*draw) (VasEBoot_gfxmenu_box_t self, int x, int y);
void (*set_content_size) (VasEBoot_gfxmenu_box_t self,
int width, int height);
int (*get_border_width) (VasEBoot_gfxmenu_box_t self);
int (*get_left_pad) (VasEBoot_gfxmenu_box_t self);
int (*get_top_pad) (VasEBoot_gfxmenu_box_t self);
int (*get_right_pad) (VasEBoot_gfxmenu_box_t self);
int (*get_bottom_pad) (VasEBoot_gfxmenu_box_t self);
void (*destroy) (VasEBoot_gfxmenu_box_t self);
};
VasEBoot_gfxmenu_box_t VasEBoot_gfxmenu_create_box (const char *pixmaps_prefix,
const char *pixmaps_suffix);
#endif /* ! VAS_EBOOT_GFXWIDGETS_HEADER */