NeoMutt  2024-11-14-34-g5aaf0d
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, 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
#define MUTT_MEM_CALLOC(n, type)
Definition: memory.h:40
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: