mirror of
https://github.com/Polprzewodnikowy/N64FlashcartMenu.git
synced 2024-12-02 23:34:15 +01:00
53 lines
1.6 KiB
C
53 lines
1.6 KiB
C
|
/**
|
||
|
* @file components.h
|
||
|
* @brief Menu Components
|
||
|
* @ingroup menu
|
||
|
*/
|
||
|
|
||
|
#ifndef COMPONENTS_H__
|
||
|
#define COMPONENTS_H__
|
||
|
|
||
|
|
||
|
#include <libdragon.h>
|
||
|
#include "menu_state.h"
|
||
|
|
||
|
|
||
|
/**
|
||
|
* @addtogroup
|
||
|
* @{ menu_components
|
||
|
*/
|
||
|
|
||
|
void component_box_draw (int x0, int y0, int x1, int y1, color_t color);
|
||
|
void component_border_draw (int x0, int y0, int x1, int y1);
|
||
|
void component_layout_draw (void);
|
||
|
void component_progressbar_draw (int x0, int y0, int x1, int y1, float progress);
|
||
|
void component_seekbar_draw (float progress);
|
||
|
void component_loader_draw (float position);
|
||
|
void component_scrollbar_draw (int x, int y, int width, int height, int position, int items, int visible_items);
|
||
|
void component_file_list_scrollbar_draw (int position, int items, int visible_items);
|
||
|
void component_dialog_draw (int width, int height);
|
||
|
void component_messagebox_draw (char *fmt, ...);
|
||
|
void component_main_text_draw (rdpq_align_t align, rdpq_valign_t valign, char *fmt, ...);
|
||
|
void component_actions_bar_text_draw (rdpq_align_t align, rdpq_valign_t valign, char *fmt, ...);
|
||
|
|
||
|
void component_background_init (char *cache_location);
|
||
|
void component_background_free (void);
|
||
|
void component_background_replace_image (surface_t *image);
|
||
|
void component_background_draw (void);
|
||
|
|
||
|
void component_file_list_draw (entry_t *list, int entries, int selected);
|
||
|
|
||
|
typedef struct {
|
||
|
bool loading;
|
||
|
surface_t *image;
|
||
|
} component_boxart_t;
|
||
|
|
||
|
component_boxart_t *component_boxart_init (uint16_t id);
|
||
|
void component_boxart_free (component_boxart_t *b);
|
||
|
void component_boxart_draw (component_boxart_t *b);
|
||
|
|
||
|
/** @} */ /* menu_components */
|
||
|
|
||
|
|
||
|
#endif
|