diff --git a/menu/menu_navigation.c b/menu/menu_navigation.c index cbde42f1a2..14d2907f6a 100644 --- a/menu/menu_navigation.c +++ b/menu/menu_navigation.c @@ -95,6 +95,17 @@ void menu_navigation_set_last(menu_handle_t *menu) driver.menu_ctx->navigation_set_last(menu); } +/** + * menu_navigation_descend_alphabet: + * @menu : menu handle + * @ptr_out : Amount of indices to 'scroll' to get + * to the next entry. + * + * Descends alphabet. + * E.g.: + * If navigation points to an entry called 'Beta', + * navigation pointer will be set to an entry called 'Alpha'. + **/ void menu_navigation_descend_alphabet(menu_handle_t *menu, size_t *ptr_out) { size_t i = 0; @@ -116,6 +127,17 @@ void menu_navigation_descend_alphabet(menu_handle_t *menu, size_t *ptr_out) driver.menu_ctx->navigation_descend_alphabet(menu, ptr_out); } +/** + * menu_navigation_ascends_alphabet: + * @menu : menu handle + * @ptr_out : Amount of indices to 'scroll' to get + * to the next entry. + * + * Ascends alphabet. + * E.g.: + * If navigation points to an entry called 'Alpha', + * navigation pointer will be set to an entry called 'Beta'. + **/ void menu_navigation_ascend_alphabet(menu_handle_t *menu, size_t *ptr_out) { size_t i = 0; diff --git a/menu/menu_navigation.h b/menu/menu_navigation.h index ce39214742..5222a46154 100644 --- a/menu/menu_navigation.h +++ b/menu/menu_navigation.h @@ -66,8 +66,30 @@ void menu_navigation_set(menu_handle_t *menu, size_t i, bool scroll); **/ void menu_navigation_set_last(menu_handle_t *menu); +/** + * menu_navigation_descend_alphabet: + * @menu : menu handle + * @ptr_out : Amount of indices to 'scroll' to get + * to the next entry. + * + * Descends alphabet. + * E.g.: + * If navigation points to an entry called 'Beta', + * navigation pointer will be set to an entry called 'Alpha'. + **/ void menu_navigation_descend_alphabet(menu_handle_t *menu, size_t *ptr_out); +/** + * menu_navigation_ascends_alphabet: + * @menu : menu handle + * @ptr_out : Amount of indices to 'scroll' to get + * to the next entry. + * + * Ascends alphabet. + * E.g.: + * If navigation points to an entry called 'Alpha', + * navigation pointer will be set to an entry called 'Beta'. + **/ void menu_navigation_ascend_alphabet(menu_handle_t *menu, size_t *ptr_out); #ifdef __cplusplus