NeoMutt  2025-12-11-435-g4ac674
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
module.c File Reference

Definition of the Menu Module. More...

#include "config.h"
#include <stdbool.h>
#include <stddef.h>
#include "config/lib.h"
#include "core/lib.h"
+ Include dependency graph for module.c:

Go to the source code of this file.

Functions

static bool menu_config_define_variables (struct NeoMutt *n, struct ConfigSet *cs)
 Define the Config Variables - Implements Module::config_define_variables()
 

Variables

struct ConfigDef MenuVars []
 Config definitions for the Menu library.
 
const struct Module ModuleMenu
 Module for the Menu library.
 

Detailed Description

Definition of the Menu Module.

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 module.c.

Function Documentation

◆ menu_config_define_variables()

static bool menu_config_define_variables ( struct NeoMutt * n,
struct ConfigSet * cs )
static

Define the Config Variables - Implements Module::config_define_variables()

Definition at line 40 of file module.c.

41{
43}
bool cs_register_variables(const struct ConfigSet *cs, struct ConfigDef vars[])
Register a set of config items.
Definition set.c:290
struct ConfigDef MenuVars[]
Config definitions for the Menu library.
Definition config.c:37
+ Here is the call graph for this function:

Variable Documentation

◆ MenuVars

struct ConfigDef MenuVars[]
extern

Config definitions for the Menu library.

Definition at line 37 of file config.c.

37 {
38 // clang-format off
39 { "arrow_cursor", DT_BOOL, false, 0, NULL,
40 "Use an arrow '->' instead of highlighting in the index"
41 },
42 { "arrow_string", DT_STRING|D_NOT_EMPTY, IP "->", 0, NULL,
43 "Use a custom string for arrow_cursor"
44 },
45 { "menu_context", DT_NUMBER|D_INTEGER_NOT_NEGATIVE, 0, 0, NULL,
46 "Number of lines of overlap when changing pages in the index"
47 },
48 { "menu_move_off", DT_BOOL, true, 0, NULL,
49 "Allow the last menu item to move off the bottom of the screen"
50 },
51 { "menu_scroll", DT_BOOL, false, 0, NULL,
52 "Scroll the menu/index by one line, rather than a page"
53 },
54 { NULL },
55 // clang-format on
56};
#define IP
Definition set.h:54
@ DT_NUMBER
a number
Definition types.h:38
@ DT_BOOL
boolean option
Definition types.h:32
@ DT_STRING
a string
Definition types.h:44
#define D_NOT_EMPTY
Empty strings are not allowed.
Definition types.h:80
#define D_INTEGER_NOT_NEGATIVE
Negative numbers are not allowed.
Definition types.h:101

◆ ModuleMenu

const struct Module ModuleMenu
Initial value:
= {
"menu",
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
}
static bool menu_config_define_variables(struct NeoMutt *n, struct ConfigSet *cs)
Define the Config Variables - Implements Module::config_define_variables()
Definition module.c:40
@ MODULE_ID_MENU
ModuleMenu, Menu
Definition module_api.h:77

Module for the Menu library.

Definition at line 48 of file module.c.

48 {
50 "menu",
51 NULL, // init
52 NULL, // config_define_types
54 NULL, // commands_register
55 NULL, // gui_init
56 NULL, // gui_cleanup
57 NULL, // cleanup
58};