Help Bar. More...
#include "config.h"
#include <stdbool.h>
#include <stddef.h>
#include <stdio.h>
#include "private.h"
#include "mutt/lib.h"
#include "config/lib.h"
#include "core/lib.h"
#include "gui/lib.h"
#include "lib.h"
#include "color/lib.h"
#include "key/lib.h"
#include "menu/lib.h"
Go to the source code of this file.
Functions | |
static bool | make_help (char *buf, size_t buflen, const char *txt, enum MenuType menu, int op) |
Create one entry for the Help Bar. | |
static char * | compile_help (char *buf, size_t buflen, enum MenuType menu, const struct Mapping *items) |
Create the text for the help menu. | |
static int | helpbar_recalc (struct MuttWindow *win) |
Recalculate the display of the Help Bar - Implements MuttWindow::recalc() -. | |
static int | helpbar_repaint (struct MuttWindow *win) |
Redraw the Help Bar - Implements MuttWindow::repaint() -. | |
static int | helpbar_binding_observer (struct NotifyCallback *nc) |
Notification that a Key Binding has changed - Implements observer_t -. | |
static int | helpbar_color_observer (struct NotifyCallback *nc) |
Notification that a Color has changed - Implements observer_t -. | |
static int | helpbar_config_observer (struct NotifyCallback *nc) |
Notification that a Config Variable has changed - Implements observer_t -. | |
static int | helpbar_window_observer (struct NotifyCallback *nc) |
Notification that a Window has changed - Implements observer_t -. | |
struct MuttWindow * | helpbar_new (void) |
Create the Help Bar Window. | |
Help Bar.
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 helpbar.c.
|
static |
Create one entry for the Help Bar.
buf | Buffer for the result |
buflen | Length of buffer |
txt | Text part, e.g. "delete" |
menu | Current Menu, e.g. MENU_PAGER |
op | Operation, e.g. OP_DELETE |
true | The keybinding exists |
This will return something like: "d:delete"
Definition at line 92 of file helpbar.c.
|
static |
Create the text for the help menu.
buf | Buffer for the result |
buflen | Length of buffer |
menu | Current Menu, e.g. MENU_PAGER |
items | Map of functions to display in the Help Bar |
ptr | Buffer containing result |
Definition at line 115 of file helpbar.c.
struct MuttWindow * helpbar_new | ( | void | ) |
Create the Help Bar Window.
ptr | New Window |
Definition at line 333 of file helpbar.c.