Maniplate Menus and SubMenus. More...
#include <stdbool.h>#include "mutt/lib.h"#include "core/lib.h"#include "menu/lib.h"#include "get.h"#include "keymap.h"
Include dependency graph for menu.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | MenuFuncOp |
| Mapping between a function and an operation. More... | |
| struct | MenuOpSeq |
| Mapping between an operation and a key sequence. More... | |
Functions | |
| bool | is_bound (const struct KeymapList *km_list, int op) |
| Does a function have a keybinding? | |
| 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. | |
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.h.
| 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:| 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.