NeoMutt  2024-12-12-19-ge4b57e
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
render.c File Reference

Render Expandos using Data. More...

#include "config.h"
#include "render.h"
#include "node.h"
+ Include dependency graph for render.c:

Go to the source code of this file.

Functions

int node_render (const struct ExpandoNode *node, const struct ExpandoRenderCallback *erc, struct Buffer *buf, int max_cols, void *data, MuttFormatFlags flags)
 Render a tree of ExpandoNodes into a string.
 

Detailed Description

Render Expandos using Data.

Authors
  • Tóth János
  • 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 render.c.

Function Documentation

◆ node_render()

int node_render ( const struct ExpandoNode node,
const struct ExpandoRenderCallback erc,
struct Buffer buf,
int  max_cols,
void *  data,
MuttFormatFlags  flags 
)

Render a tree of ExpandoNodes into a string.

Parameters
nodeRoot of tree
ercExpando Render Callback functions
bufBuffer for the result
max_colsMaximum number of screen columns to use
dataPrivate data
flagsFlags to control behaviour
Return values
numNumber of screen columns used

Definition at line 45 of file render.c.

47{
48 if (!node || !node->render)
49 return 0;
50
51 return node->render(node, erc, buf, max_cols, data, flags);
52}
int(* render)(const struct ExpandoNode *node, const struct ExpandoRenderCallback *erc, struct Buffer *buf, int max_cols, void *data, MuttFormatFlags flags)
Definition: node.h:92
+ Here is the caller graph for this function: