GUI present the user with a selectable list. More...
#include "config.h"#include <stdio.h>#include "private.h"#include "mutt/lib.h"#include "gui/lib.h"#include "lib.h"#include "color/lib.h"#include "expando/lib.h"#include "type.h"
Include dependency graph for menu.c:Go to the source code of this file.
Functions | |
| static const struct AttrColor * | default_color (struct Menu *menu, int line) |
| Get the default colour for a line of the menu - Implements Menu::color() -. | |
| static int | generic_search (struct Menu *menu, regex_t *rx, int line) |
| Search a menu for a item matching a regex - Implements Menu::search() -. | |
| void | menu_cleanup (void) |
| Free the saved Menu searches. | |
| void | menu_init (void) |
| Initialise all the Menus. | |
| enum MenuType | menu_get_current_type (void) |
| Get the type of the current Window. | |
| void | menu_free (struct Menu **ptr) |
| Free a Menu. | |
| struct Menu * | menu_new (enum MenuType type, struct MuttWindow *win, struct ConfigSubset *sub) |
| Create a new Menu. | |
| int | menu_get_index (struct Menu *menu) |
| Get the current selection in the Menu. | |
| MenuRedrawFlags | menu_set_index (struct Menu *menu, int index) |
| Set the current selection in the Menu. | |
| void | menu_queue_redraw (struct Menu *menu, MenuRedrawFlags redraw) |
| Queue a request for a redraw. | |
Variables | |
| char * | SearchBuffers [MENU_MAX] |
| Previous search string, one for each MenuType. | |
GUI present the user with a selectable list.
This program 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 this program. If not, see http://www.gnu.org/licenses/.
Definition in file menu.c.
| void menu_cleanup | ( | void | ) |
| void menu_init | ( | void | ) |
| enum MenuType menu_get_current_type | ( | void | ) |
Get the type of the current Window.
| enum | Menu Type, e.g. MENU_PAGER |
Definition at line 89 of file menu.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void menu_free | ( | struct Menu ** | ptr | ) |
| struct Menu * menu_new | ( | enum MenuType | type, |
| struct MuttWindow * | win, | ||
| struct ConfigSubset * | sub ) |
Create a new Menu.
| type | Menu type, e.g. MENU_ALIAS |
| win | Parent Window |
| sub | Config items |
| ptr | New Menu |
Definition at line 136 of file menu.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int menu_get_index | ( | struct Menu * | menu | ) |
| MenuRedrawFlags menu_set_index | ( | struct Menu * | menu, |
| int | index ) |
Set the current selection in the Menu.
| menu | Menu |
| index | Item to select |
| enum | MenuRedrawFlags, e.g. MENU_REDRAW_INDEX |
Definition at line 174 of file menu.c.
Here is the call graph for this function:| void menu_queue_redraw | ( | struct Menu * | menu, |
| MenuRedrawFlags | redraw ) |
Queue a request for a redraw.
| menu | Menu |
| redraw | Item to redraw, e.g. MENU_REDRAW_CURRENT |
Definition at line 184 of file menu.c.