NeoMutt  2025-12-11-79-gf03987
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
menu.h
Go to the documentation of this file.
1
22
23#ifndef MUTT_KEY_MENU_H
24#define MUTT_KEY_MENU_H
25
26#include <stdbool.h>
27#include "mutt/lib.h"
28#include "core/lib.h"
29#include "menu/lib.h"
30#include "get.h"
31#include "keymap.h"
32
37{
38 const char *name;
39 int op;
41};
42
47{
48 int op;
49 const char *seq;
50};
51
52bool is_bound (const struct KeymapList *km_list, int op);
53struct Keymap * km_find_func (enum MenuType mtype, int func);
54int km_get_op (const struct MenuFuncOp *funcs, const char *start, size_t len);
55
56#endif /* MUTT_KEY_MENU_H */
Convenience wrapper for the core headers.
Get a key from the user.
uint8_t MenuFuncFlags
Flags, e.g. MFF_DEPRECATED.
Definition get.h:35
Keymap handling.
GUI present the user with a selectable list.
struct Keymap * km_find_func(enum MenuType mtype, int func)
Find a function's mapping in a Menu.
Definition menu.c:45
int km_get_op(const struct MenuFuncOp *funcs, const char *start, size_t len)
Get the function by its name.
Definition menu.c:63
bool is_bound(const struct KeymapList *km_list, int op)
Does a function have a keybinding?
Definition menu.c:82
Convenience wrapper for the library headers.
A keyboard mapping.
Definition keymap.h:43
short len
Length of key sequence (unit: sizeof (keycode_t))
Definition keymap.h:48
Mapping between a function and an operation.
Definition menu.h:37
const char * name
Name of the function.
Definition menu.h:38
MenuFuncFlags flags
Flags, e.g. MFF_DEPRECATED.
Definition menu.h:40
int op
Operation, e.g. OP_DELETE.
Definition menu.h:39
Mapping between an operation and a key sequence.
Definition menu.h:47
int op
Operation, e.g. OP_DELETE.
Definition menu.h:48
const char * seq
Default key binding.
Definition menu.h:49
MenuType
Types of GUI selections.
Definition type.h:35