Maniplate Menus and SubMenus. More...
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... | |
| struct | MenuFunctionOp |
| Mapping between a function and an operation. More... | |
| struct | SubMenu |
| Collection of related functions. More... | |
| struct | MenuDefinition |
| Functions for a Dialog or Window. More... | |
Macros | |
| #define | MAX_SEQ 8 |
| Maximum length of a key binding sequence used for buffer in km_bind. | |
Typedefs | |
| typedef void(* | init_keys_t) (struct SubMenu *sm_generic) |
Functions | |
| ARRAY_HEAD (MenuFunctionOpArray, struct MenuFunctionOp) | |
| ARRAY_HEAD (SubMenuArray, struct SubMenu) | |
| ARRAY_HEAD (SubMenuPArray, struct SubMenu *) | |
| ARRAY_HEAD (MenuDefinitionArray, struct MenuDefinition *) | |
| bool | is_bound (const struct MenuDefinition *md, int op) |
| Does a function have a keybinding? | |
| struct Keymap * | km_find_func (const struct MenuDefinition *md, int func) |
| Find a function's mapping in a Menu. | |
| int | km_get_op (const char *func) |
| Get the OpCode for a Function. | |
| int | km_get_op_menu (int mtype, const char *func) |
| Get the OpCode for a Function from a Menu. | |
| struct MenuDefinition * | menu_find (int menu) |
| Find a Menu Definition by Menu type. | |
| struct MenuDefinition * | menu_find_by_name (const char *name) |
| Find a Menu Definition 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.
| #define MAX_SEQ 8 |
| ARRAY_HEAD | ( | MenuFunctionOpArray | , |
| struct MenuFunctionOp | ) |
| ARRAY_HEAD | ( | SubMenuArray | , |
| struct SubMenu | ) |
| ARRAY_HEAD | ( | SubMenuPArray | , |
| struct SubMenu * | ) |
| ARRAY_HEAD | ( | MenuDefinitionArray | , |
| struct MenuDefinition * | ) |
| bool is_bound | ( | const struct MenuDefinition * | md, |
| int | op ) |
Does a function have a keybinding?
| md | Menu Definition |
| op | Operation, e.g. OP_DELETE |
| true | A key is bound to that operation |
Definition at line 287 of file menu.c.
Here is the caller graph for this function:| struct Keymap * km_find_func | ( | const struct MenuDefinition * | md, |
| int | func ) |
Find a function's mapping in a Menu.
| md | Menu Definition |
| func | Function, e.g. OP_DELETE |
| ptr | Keymap for the function |
Definition at line 157 of file menu.c.
Here is the caller graph for this function:| int km_get_op | ( | const char * | func | ) |
Get the OpCode for a Function.
| func | Function name, e.g. "exit" |
| num | OpCode, e.g. OP_EXIT |
Definition at line 184 of file menu.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int km_get_op_menu | ( | int | mtype, |
| const char * | func ) |
Get the OpCode for a Function from a Menu.
| mtype | Menu Type, e.g. MENU_INDEX |
| func | Function name, e.g. "exit" |
| num | OpCode, e.g. OP_EXIT |
Definition at line 213 of file menu.c.
Here is the call graph for this function:
Here is the caller graph for this function:| struct MenuDefinition * menu_find | ( | int | menu | ) |
| struct MenuDefinition * menu_find_by_name | ( | const char * | name | ) |
Find a Menu Definition by its name.
| name | Menu name, e.g. "index" |
| ptr | Menu Definition |
Definition at line 264 of file menu.c.
Here is the call graph for this function:
Here is the caller graph for this function: