NeoMutt  2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
functions.h File Reference

Definitions of user functions. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

struct SubMenugeneric_init_keys (struct NeoMutt *n)
 Initialise the Generic Keybindings.
struct MenuDefinitiongeneric_get_menu_definition (void)
 Get the Generic Menu Definition.

Detailed Description

Definitions of user functions.

Authors
  • Richard Russon

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 functions.h.

Function Documentation

◆ generic_init_keys()

struct SubMenu * generic_init_keys ( struct NeoMutt * n)

Initialise the Generic Keybindings.

Definition at line 154 of file functions.c.

155{
157 ASSERT(mod_data);
158
159 struct MenuDefinition *md = NULL;
160 struct SubMenu *sm = NULL;
161
163 md = km_register_menu(MENU_GENERIC, "generic");
164 km_menu_add_submenu(md, sm);
166
167 mod_data->md_generic = md;
168 mod_data->sm_generic = sm;
169
170 return sm;
171}
static const struct MenuFuncOp OpGeneric[]
Functions for the Generic Menu.
Definition functions.c:56
static const struct MenuOpSeq GenericDefaultBindings[]
Key bindings for the Generic Menu.
Definition functions.c:111
void km_menu_add_submenu(struct MenuDefinition *md, struct SubMenu *sm)
Add a SubMenu to a Menu Definition.
Definition init.c:123
struct SubMenu * km_register_submenu(const struct MenuFuncOp functions[])
Register a submenu.
Definition init.c:88
struct MenuDefinition * km_register_menu(int menu, const char *name)
Register a menu.
Definition init.c:105
void km_menu_add_bindings(struct MenuDefinition *md, const struct MenuOpSeq bindings[])
Add Keybindings to a Menu.
Definition init.c:136
@ MODULE_ID_GUI
ModuleGui, Graphical code
Definition module_api.h:45
void * neomutt_get_module_data(struct NeoMutt *n, enum ModuleId id)
Get the private data for a Module.
Definition neomutt.c:666
#define ASSERT(COND)
Definition signal2.h:59
Gui private Module data.
Definition module_data.h:32
struct SubMenu * sm_generic
Generic functions.
Definition module_data.h:35
struct MenuDefinition * md_generic
Generic Menu Definition.
Definition module_data.h:34
Functions for a Dialog or Window.
Definition menudef.h:44
Collection of related functions.
Definition menudef.h:33
@ MENU_GENERIC
Generic selection list.
Definition type.h:43
Here is the call graph for this function:
Here is the caller graph for this function:

◆ generic_get_menu_definition()

struct MenuDefinition * generic_get_menu_definition ( void )

Get the Generic Menu Definition.

Return values
ptrGeneric Menu Definition

Definition at line 177 of file functions.c.

178{
180 ASSERT(mod_data);
181
182 return mod_data->md_generic;
183}
Container for Accounts, Notifications.
Definition neomutt.h:41
Here is the call graph for this function:
Here is the caller graph for this function: