NeoMutt  2024-11-14-34-g5aaf0d
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
config.c
Go to the documentation of this file.
1
29#include "config.h"
30#include <stdbool.h>
31#include <stddef.h>
32#include "config/lib.h"
33
37static struct ConfigDef MenuVars[] = {
38 // clang-format off
39 { "menu_context", DT_NUMBER|D_INTEGER_NOT_NEGATIVE, 0, 0, NULL,
40 "Number of lines of overlap when changing pages in the index"
41 },
42 { "menu_move_off", DT_BOOL, true, 0, NULL,
43 "Allow the last menu item to move off the bottom of the screen"
44 },
45 { "menu_scroll", DT_BOOL, false, 0, NULL,
46 "Scroll the menu/index by one line, rather than a page"
47 },
48 { NULL },
49 // clang-format on
50};
51
56{
58}
Convenience wrapper for the config headers.
bool cs_register_variables(const struct ConfigSet *cs, struct ConfigDef vars[])
Register a set of config items.
Definition: set.c:281
bool config_init_menu(struct ConfigSet *cs)
Register menu config variables - Implements module_init_config_t -.
Definition: config.c:55
static struct ConfigDef MenuVars[]
Config definitions for the Menu library.
Definition: config.c:37
Definition: set.h:64
Container for lots of config items.
Definition: set.h:252
@ DT_NUMBER
a number
Definition: types.h:39
@ DT_BOOL
boolean option
Definition: types.h:32
#define D_INTEGER_NOT_NEGATIVE
Negative numbers are not allowed.
Definition: types.h:101