bud/bud_app.h(3)bud

NAME

bud/bud_app.h - Pure isomorphic C UI rendering contract for libbud.

SYNOPSIS

#include 'bud.h'
#include 'bud_jsx.h'

Macros

#define BUD_APP_ROUTE(render_fn)

Define bud_app_render() in terms of a single render function.

Functions

bud_node * bud_app_render (void)

Application render entry point.

void bud_patch_attr (bud_node *node, const char *name, const char *value)

Queue an attribute patch for a node.

void bud_patch_text (bud_node *node, const char *value)

Queue a text patch for a node.

void bud_app_set_state (void)

Signal that application state has changed.

Detailed Description

Pure isomorphic C UI rendering contract for libbud.

Macro Definition Documentation

#define BUD_APP_ROUTE( render_fn)

Value:

    ISO_EXPORT(bud_node *, bud_app_render, void)                           \
    {                                                                      \
        return render_fn();                                            \
    }

Define bud_app_render() in terms of a single render function.

Parameters

render_fn Function returning the root node.

Function Documentation

bud_node * bud_app_render (void )

Application render entry point.

Returns

Root node of the application tree.

Author

Generated automatically by Doxygen for bud from the source code.