NeoMutt  2021-10-29-43-g6b8931
Teaching an old dog new tricks
DOXYGEN
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.

Functions

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

Detailed Description

Help Bar Window data.

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

40 {
41  return mutt_mem_calloc(1, sizeof(struct HelpbarWindowData));
42 }
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.

Parameters
winWindow

Definition at line 61 of file wdata.c.

62 {
63  if (!win || (win->type != WT_HELP_BAR))
64  return NULL;
65 
66  return win->wdata;
67 }
@ WT_HELP_BAR
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: