maug
Quick and dirty C mini-augmentation library.
Loading...
Searching...
No Matches
retrohtr.h File Reference

Go to the source code of this file.

Data Structures

struct  RETROHTR_RENDER_NODE
 
struct  RETROHTR_RENDER_TREE
 

Macros

#define RETROHTR_TREE_FLAG_GUI_ACTIVE   1
 
#define RETROHTR_NODE_FLAG_DIRTY   2
 
#define RETROHTR_RENDER_NODES_INIT_SZ   10
 
#define RETROHTR_TRACE_LVL   0
 
#define RETROHTR_EDGE_UNKNOWN   0
 
#define RETROHTR_EDGE_LEFT   1
 
#define RETROHTR_EDGE_TOP   2
 
#define RETROHTR_EDGE_INSIDE   4
 
#define retrohtr_node(tree, idx)
 
#define retrohtr_node_parent(tree, idx)
 
#define retrohtr_tree_lock(tree)
 
#define retrohtr_tree_unlock(tree)
 
#define retrohtr_tree_is_locked(tree)
 
#define retrohtr_node_screen_x(tree, node_idx)
 
#define retrohtr_node_screen_y(tree, node_idx)
 

Functions

MERROR_RETVAL retrohtr_tree_create (struct MHTML_PARSER *parser, struct RETROHTR_RENDER_TREE *tree, size_t x, size_t y, size_t w, size_t h, ssize_t tag_idx, ssize_t node_idx, size_t d)
 
MERROR_RETVAL retrohtr_apply_styles (struct MHTML_PARSER *parser, struct RETROHTR_RENDER_TREE *tree, struct MCSS_STYLE *parent_style, struct MCSS_STYLE *effect_style, ssize_t tag_idx)
 Create a style node that is a composite of a parent style and the styles applicable to the classes/IDs of a tag and its immediate styles.
 
MERROR_RETVAL retrohtr_tree_size (struct MHTML_PARSER *parser, struct RETROHTR_RENDER_TREE *tree, struct MCSS_STYLE *prev_sibling_style, struct MCSS_STYLE *parent_style, ssize_t node_idx, size_t d)
 
MERROR_RETVAL retrohtr_tree_pos (struct MHTML_PARSER *parser, struct RETROHTR_RENDER_TREE *tree, struct MCSS_STYLE *prev_sibling_style, struct MCSS_STYLE *parent_style, ssize_t node_idx, size_t d)
 
MERROR_RETVAL retrohtr_tree_draw (struct MHTML_PARSER *parser, struct RETROHTR_RENDER_TREE *tree, ssize_t node_idx, size_t d)
 
retrogui_idc_t retrohtr_tree_poll_ctls (struct RETROHTR_RENDER_TREE *tree, RETROFLAT_IN_KEY *input, struct RETROFLAT_INPUT *input_evt)
 
MERROR_RETVAL retrohtr_tree_dump (struct RETROHTR_RENDER_TREE *tree, struct MHTML_PARSER *parser, ssize_t iter, size_t d)
 
void retrohtr_tree_free (struct RETROHTR_RENDER_TREE *tree)
 
MERROR_RETVAL retrohtr_tree_init (struct RETROHTR_RENDER_TREE *tree)