Maniplate Menus and SubMenus. More...
#include "config.h"#include <string.h>#include "mutt/lib.h"#include "core/lib.h"#include "gui/lib.h"#include "menu.h"#include "lib.h"#include "init.h"#include "keymap.h"
Include dependency graph for menu.c:Go to the source code of this file.
Functions | |
| struct Keymap * | km_find_func (enum MenuType mtype, int func) |
| Find a function's mapping in a Menu. | |
| int | km_get_op (const struct MenuFuncOp *funcs, const char *start, size_t len) |
| Get the function by its name. | |
| bool | is_bound (const struct KeymapList *km_list, int op) |
| Does a function have a keybinding? | |
Maniplate Menus and SubMenus.
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.
Find a function's mapping in a Menu.
| mtype | Menu type, e.g. MENU_PAGER |
| func | Function, e.g. OP_DELETE |
| ptr | Keymap for the function |
Definition at line 45 of file menu.c.
Here is the caller graph for this function:| int km_get_op | ( | const struct MenuFuncOp * | funcs, |
| const char * | start, | ||
| size_t | len ) |
Get the function by its name.
| funcs | Functions table |
| start | Name of function to find |
| len | Length of string to match |
| num | Operation, e.g. OP_DELETE |
Definition at line 63 of file menu.c.
Here is the call graph for this function:
Here is the caller graph for this function:| bool is_bound | ( | const struct KeymapList * | km_list, |
| int | op ) |
Does a function have a keybinding?
| km_list | Keymap to examine |
| op | Operation, e.g. OP_DELETE |
| true | A key is bound to that operation |
Definition at line 82 of file menu.c.
Here is the caller graph for this function: