Expando Node for a Condition. More...
#include "config.h"
#include <stdbool.h>
#include "mutt/lib.h"
#include "node_condition.h"
#include "node.h"
#include "render.h"
Go to the source code of this file.
Functions | |
static int | node_condition_render (const struct ExpandoNode *node, const struct ExpandoRenderData *rdata, struct Buffer *buf, int max_cols, void *data, MuttFormatFlags flags) |
Render a Conditional Node - Implements ExpandoNode::render() -. | |
struct ExpandoNode * | node_condition_new (struct ExpandoNode *condition, struct ExpandoNode *node_true, struct ExpandoNode *node_false) |
Create a new Condition Expando Node. | |
Expando Node for a Condition.
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 node_condition.c.
struct ExpandoNode * node_condition_new | ( | struct ExpandoNode * | condition, |
struct ExpandoNode * | node_true, | ||
struct ExpandoNode * | node_false | ||
) |
Create a new Condition Expando Node.
condition | Expando Node that will be tested |
node_true | Node tree for the 'true' case |
node_false | Node tree for the 'false' case |
ptr | New Condition Expando Node |
Definition at line 72 of file node_condition.c.