NeoMutt  2024-03-23-147-g885fbc
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
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() -.
 
struct HelpbarWindowDatahelpbar_wdata_get (struct MuttWindow *win)
 Get the Helpbar data for this window.
 
struct HelpbarWindowDatahelpbar_wdata_new (void)
 Create new Window data for the Helpbar.
 

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