|
N64FlashcartMenu
|
Common UI components implementation. More...
Functions | |
| void | ui_components_box_draw (int x0, int y0, int x1, int y1, color_t color) |
| Draw a box with the specified color. | |
| void | ui_components_border_draw (int x0, int y0, int x1, int y1) |
| Draw a border with the default border color. | |
| void | ui_components_layout_draw_tabbed (void) |
| Draw the layout with tabs. | |
| void | ui_components_layout_draw (void) |
| Draw the layout. | |
| void | ui_components_progressbar_draw (int x0, int y0, int x1, int y1, float progress) |
| Draw a progress bar. | |
| void | ui_components_seekbar_draw (float position) |
| Draw a seek bar. | |
| void | ui_components_loader_draw (float progress, const char *msg) |
| Draw a loader. | |
| void | ui_components_scrollbar_draw (int x, int y, int width, int height, int position, int items, int visible_items) |
| Draw a scrollbar. | |
| void | ui_components_list_scrollbar_draw (int position, int items, int visible_items) |
| Draw a list scrollbar. | |
| void | ui_components_dialog_draw (int width, int height) |
| Draw a dialog box. | |
| void | ui_components_messagebox_draw (char *fmt,...) |
| Draw a message box with formatted text. | |
| void | ui_components_main_text_draw (menu_font_type_t style, rdpq_align_t align, rdpq_valign_t valign, char *fmt,...) |
| Draw the main text with formatted content. | |
| void | ui_components_actions_bar_text_draw (menu_font_type_t style, rdpq_align_t align, rdpq_valign_t valign, char *fmt,...) |
| Draw the actions bar text with formatted content. | |
| void | ui_components_tabs_draw (const char **text, int count, int selected, float width) |
| Draw the tabs. | |
| void | ui_component_value_editor (const char **header_text, const char **value_text, int count, int selected, float width_adjustment) |
| Draw a value editor component. | |
Common UI components implementation.
| void ui_components_box_draw | ( | int | x0, |
| int | y0, | ||
| int | x1, | ||
| int | y1, | ||
| color_t | color ) |
Draw a box with the specified color.
Draw a box component.
| x0 | The x-coordinate of the top-left corner. |
| y0 | The y-coordinate of the top-left corner. |
| x1 | The x-coordinate of the bottom-right corner. |
| y1 | The y-coordinate of the bottom-right corner. |
| color | The color of the box. |
| void ui_components_border_draw | ( | int | x0, |
| int | y0, | ||
| int | x1, | ||
| int | y1 ) |
Draw a border with the default border color.
Draw a border component.
| x0 | The x-coordinate of the top-left corner. |
| y0 | The y-coordinate of the top-left corner. |
| x1 | The x-coordinate of the bottom-right corner. |
| y1 | The y-coordinate of the bottom-right corner. |
| void ui_components_layout_draw_tabbed | ( | void | ) |
Draw the layout with tabs.
Draw the layout component with tabs.
| void ui_components_layout_draw | ( | void | ) |
Draw the layout.
Draw the layout component.
| void ui_components_progressbar_draw | ( | int | x0, |
| int | y0, | ||
| int | x1, | ||
| int | y1, | ||
| float | progress ) |
Draw a progress bar.
Draw a progress bar component.
| x0 | The x-coordinate of the top-left corner. |
| y0 | The y-coordinate of the top-left corner. |
| x1 | The x-coordinate of the bottom-right corner. |
| y1 | The y-coordinate of the bottom-right corner. |
| progress | The progress value (0.0 to 1.0). |
| void ui_components_seekbar_draw | ( | float | position | ) |
Draw a seek bar.
Draw a seek bar component.
| position | The position value (0.0 to 1.0). |
| void ui_components_loader_draw | ( | float | progress, |
| const char * | msg ) |
Draw a loader.
Draw a loader component.
| progress | The progress value (0.0 to 1.0). |
| msg | The message to display truncated to 30 characters. |
| void ui_components_scrollbar_draw | ( | int | x, |
| int | y, | ||
| int | width, | ||
| int | height, | ||
| int | position, | ||
| int | items, | ||
| int | visible_items ) |
Draw a scrollbar.
Draw a scrollbar component.
| x | The x-coordinate of the top-left corner. |
| y | The y-coordinate of the top-left corner. |
| width | The width of the scrollbar. |
| height | The height of the scrollbar. |
| position | The current position. |
| items | The total number of items. |
| visible_items | The number of visible items. |
| void ui_components_list_scrollbar_draw | ( | int | position, |
| int | items, | ||
| int | visible_items ) |
Draw a list scrollbar.
Draw a list scrollbar component.
| position | The current position. |
| items | The total number of items. |
| visible_items | The number of visible items. |
| void ui_components_dialog_draw | ( | int | width, |
| int | height ) |
Draw a dialog box.
Draw a dialog component.
| width | The width of the dialog box. |
| height | The height of the dialog box. |
| void ui_components_messagebox_draw | ( | char * | fmt, |
| ... ) |
Draw a message box with formatted text.
Draw a message box component.
| fmt | The format string. |
| ... | The format arguments. |
| void ui_components_main_text_draw | ( | menu_font_type_t | style, |
| rdpq_align_t | align, | ||
| rdpq_valign_t | valign, | ||
| char * | fmt, | ||
| ... ) |
Draw the main text with formatted content.
Draw the main text component.
| style | The font style. |
| align | The horizontal alignment. |
| valign | The vertical alignment. |
| fmt | The format string. |
| ... | The format arguments. |
| void ui_components_actions_bar_text_draw | ( | menu_font_type_t | style, |
| rdpq_align_t | align, | ||
| rdpq_valign_t | valign, | ||
| char * | fmt, | ||
| ... ) |
Draw the actions bar text with formatted content.
Draw the actions bar text component.
| style | The font style. |
| align | The horizontal alignment. |
| valign | The vertical alignment. |
| fmt | The format string. |
| ... | The format arguments. |
| void ui_components_tabs_draw | ( | const char ** | text, |
| int | count, | ||
| int | selected, | ||
| float | width ) |
Draw the tabs.
Draw the tabs component.
| text | Array of tab text. |
| count | Number of tabs. |
| selected | Index of the selected tab. |
| width | Width of each tab. |
| void ui_component_value_editor | ( | const char ** | header_text, |
| const char ** | value_text, | ||
| int | count, | ||
| int | selected, | ||
| float | width_adjustment ) |
Draw a value editor component.
| header_text | Array of header text for the values. |
| value_text | Array of value text to be displayed. |
| count | Number of values. |
| selected | Index of the selected value. |
| width_adjustment | Negative width adjustment of each value box. |