7#ifndef UI_COMPONENTS_H__
8#define UI_COMPONENTS_H__
182typedef struct component_context_menu {
190 void (*action)(
menu_t *menu,
void *arg);
192 struct component_context_menu *submenu;
196#define COMPONENT_CONTEXT_MENU_LIST_END { .text = NULL }
void ui_components_progressbar_draw(int x0, int y0, int x1, int y1, float progress)
Draw a progress bar component.
Definition common.c:108
void ui_components_box_draw(int x0, int y0, int x1, int y1, color_t color)
Draw a box component.
Definition common.c:22
surface_t * image
Definition ui_components.h:233
void ui_components_actions_bar_text_draw(rdpq_align_t align, rdpq_valign_t valign, char *fmt,...)
Draw the actions bar text component.
Definition common.c:289
void ui_components_tabs_common_draw(int selected)
Draw the common part of the tabs component.
Definition tabs.c:23
void ui_components_main_text_draw(rdpq_align_t align, rdpq_valign_t valign, char *fmt,...)
Draw the main text component.
Definition common.c:251
void ui_components_messagebox_draw(char *fmt,...)
Draw a message box component.
Definition common.c:209
void ui_components_dialog_draw(int width, int height)
Draw a dialog component.
Definition common.c:193
void ui_components_background_replace_image(surface_t *image)
Replace the background image.
Definition background.c:224
void ui_components_border_draw(int x0, int y0, int x1, int y1)
Draw a border component.
Definition common.c:56
bool hide_pending
Definition ui_components.h:185
void ui_components_background_draw(void)
Draw the background component.
Definition background.c:248
void ui_components_file_list_draw(entry_t *list, int entries, int selected)
Draw the file list component.
Definition file_list.c:45
void ui_components_layout_draw(void)
Draw the layout component.
Definition common.c:83
struct component_context_menu * parent
Definition ui_components.h:186
bool loading
Definition ui_components.h:232
void ui_components_context_menu_draw(component_context_menu_t *cm)
Draw the context menu component.
Definition context_menu.c:106
int row_selected
Definition ui_components.h:184
void ui_components_seekbar_draw(float progress)
Draw a seek bar component.
Definition common.c:120
void ui_components_context_menu_show(component_context_menu_t *cm)
Show the context menu component.
Definition context_menu.c:45
void ui_components_background_init(char *cache_location)
Initialize the background component.
Definition background.c:188
void ui_components_layout_draw_tabbed(void)
Draw the layout component with tabs.
Definition common.c:63
int row_count
Definition ui_components.h:183
file_image_type_t
File image Enumeration.
Definition ui_components.h:19
@ IMAGE_BOXART_BACK
Definition ui_components.h:21
@ IMAGE_THUMBNAIL
Definition ui_components.h:28
@ IMAGE_GAMEPAK_BACK
Definition ui_components.h:27
@ IMAGE_TYPE_END
Definition ui_components.h:29
@ IMAGE_BOXART_RIGHT
Definition ui_components.h:25
@ IMAGE_BOXART_TOP
Definition ui_components.h:22
@ IMAGE_BOXART_BOTTOM
Definition ui_components.h:23
@ IMAGE_GAMEPAK_FRONT
Definition ui_components.h:26
@ IMAGE_BOXART_LEFT
Definition ui_components.h:24
@ IMAGE_BOXART_FRONT
Definition ui_components.h:20
void ui_components_list_scrollbar_draw(int position, int items, int visible_items)
Draw a list scrollbar component.
Definition common.c:175
void ui_components_scrollbar_draw(int x, int y, int width, int height, int position, int items, int visible_items)
Draw a scrollbar component.
Definition common.c:156
bool ui_components_context_menu_process(menu_t *menu, component_context_menu_t *cm)
Process the context menu component.
Definition context_menu.c:57
void ui_components_boxart_free(component_boxart_t *b)
Free the box art component resources.
Definition boxart.c:144
void ui_components_tabs_draw(const char **text, int count, int selected, float width)
Draw the tabs component.
Definition common.c:327
struct component_context_menu * submenu
Definition ui_components.h:187
void ui_components_boxart_draw(component_boxart_t *b)
Draw the box art component.
Definition boxart.c:162
void ui_components_context_menu_init(component_context_menu_t *cm)
Initialize the context menu component.
Definition context_menu.c:30
component_boxart_t * ui_components_boxart_init(const char *storage_prefix, char *game_code, file_image_type_t current_image_view)
Initialize the box art component.
Definition boxart.c:38
void ui_components_loader_draw(float position)
Draw a loader component.
Definition common.c:135
void ui_components_background_free(void)
Free the background component resources.
Definition background.c:200
Box Art Structure.
Definition ui_components.h:231