NeoMutt  2024-04-25-89-g194907
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
msgwin_wdata.h File Reference

Message Window private data. More...

#include "mutt/lib.h"
+ Include dependency graph for msgwin_wdata.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  MwChar
 Description of a single character. More...
 
struct  MwChunk
 A block of characters of one colour. More...
 
struct  MsgWinWindowData
 Message Window private Window data. More...
 

Macros

#define MSGWIN_MAX_ROWS   3
 

Functions

 ARRAY_HEAD (MwCharArray, struct MwChar)
 
 ARRAY_HEAD (MwChunkArray, struct MwChunk)
 
void msgwin_wdata_free (struct MuttWindow *win, void **ptr)
 Free the private data - Implements MuttWindow::wdata_free() -.
 
struct MsgWinWindowDatamsgwin_wdata_new (void)
 Create new private data for the Message Window.
 

Detailed Description

Message Window private 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 msgwin_wdata.h.

Macro Definition Documentation

◆ MSGWIN_MAX_ROWS

#define MSGWIN_MAX_ROWS   3

Definition at line 30 of file msgwin_wdata.h.

Function Documentation

◆ ARRAY_HEAD() [1/2]

ARRAY_HEAD ( MwCharArray  ,
struct MwChar   
)

◆ ARRAY_HEAD() [2/2]

ARRAY_HEAD ( MwChunkArray  ,
struct MwChunk   
)

◆ msgwin_wdata_new()

struct MsgWinWindowData * msgwin_wdata_new ( void  )

Create new private data for the Message Window.

Return values
ptrNew private data

Definition at line 60 of file msgwin_wdata.c.

61{
62 struct MsgWinWindowData *wdata = mutt_mem_calloc(1, sizeof(struct MsgWinWindowData));
63
64 wdata->text = buf_new(NULL);
65
66 return wdata;
67}
struct Buffer * buf_new(const char *str)
Allocate a new Buffer.
Definition: buffer.c:304
void * mutt_mem_calloc(size_t nmemb, size_t size)
Allocate zeroed memory on the heap.
Definition: memory.c:51
Message Window private Window data.
Definition: msgwin_wdata.h:66
struct Buffer * text
Cached display string.
Definition: msgwin_wdata.h:67
+ Here is the call graph for this function:
+ Here is the caller graph for this function: