NeoMutt  2021-02-05-666-ge300cd
Teaching an old dog new tricks
DOXYGEN
private.h File Reference

Shared constants/structs that are private to the Help Bar. More...

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  HelpbarWindowData
 Help Bar Window data -. More...
 

Functions

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...
 
struct HelpbarWindowDatahelpbar_wdata_new (void)
 Create new Window data for the Helpbar. More...
 

Detailed Description

Shared constants/structs that are private to the Help Bar.

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

Function Documentation

◆ 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 }
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:

◆ 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:33
+ Here is the call graph for this function:
+ Here is the caller graph for this function: