NeoMutt  2024-04-16-36-g75b6fb
Teaching an old dog new tricks
No Matches
wdata.c File Reference

Help Bar Window data. More...

#include "config.h"
#include <stddef.h>
#include "private.h"
#include "mutt/lib.h"
#include "gui/lib.h"
+ Include dependency graph for wdata.c:

Go to the source code of this file.


struct HelpbarWindowDatahelpbar_wdata_new (void)
 Create new Window data for the Helpbar.
void helpbar_wdata_free (struct MuttWindow *win, void **ptr)
 Free Helpbar Window data - Implements MuttWindow::wdata_free() -.
struct HelpbarWindowDatahelpbar_wdata_get (struct MuttWindow *win)
 Get the Helpbar data for this window.

Detailed Description

Help Bar Window data.

  • 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

Definition in file wdata.c.

Function Documentation

◆ helpbar_wdata_new()

struct HelpbarWindowData * helpbar_wdata_new ( void  )

Create new Window data for the Helpbar.

Return values
ptrNew Window data

Definition at line 39 of file wdata.c.

41 return mutt_mem_calloc(1, sizeof(struct HelpbarWindowData));
void * mutt_mem_calloc(size_t nmemb, size_t size)
Allocate zeroed memory on the heap.
Definition: memory.c:50
Help Bar Window data -.
Definition: private.h:34
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ helpbar_wdata_get()

struct HelpbarWindowData * helpbar_wdata_get ( struct MuttWindow win)

Get the Helpbar data for this window.


Definition at line 64 of file wdata.c.

66 if (!win || (win->type != WT_HELP_BAR))
67 return NULL;
69 return win->wdata;
Help Bar containing list of useful key bindings.
Definition: mutt_window.h:96
void * wdata
Private data.
Definition: mutt_window.h:145
enum WindowType type
Window type, e.g. WT_SIDEBAR.
Definition: mutt_window.h:144
+ Here is the caller graph for this function: