NeoMutt  2024-11-14-34-g5aaf0d
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
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.

Functions

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.

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, struct HelpbarWindowData);
42}
#define MUTT_MEM_CALLOC(n, type)
Definition: memory.h:40
Help Bar Window data -.
Definition: private.h:34
+ 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 64 of file wdata.c.

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