diff options
author | Marvin Borner | 2020-11-28 19:14:56 +0100 |
---|---|---|
committer | Marvin Borner | 2020-11-28 19:14:56 +0100 |
commit | 24dfdaa72a64f7b1b00f5a0e054ac359fc995c52 (patch) | |
tree | 58646ec9e3752b5c87a966921a739a4d2740ced3 /libtxt/inc | |
parent | baa5c8716372f29b2e1340601282c44d7c5da7e9 (diff) | |
parent | e983cfa7f8580e39a181184fb2ae3a990597c02a (diff) |
Merged HTML renderer
Diffstat (limited to 'libtxt/inc')
-rw-r--r-- | libtxt/inc/html.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/libtxt/inc/html.h b/libtxt/inc/html.h index dd2b59f..c1b29f2 100644 --- a/libtxt/inc/html.h +++ b/libtxt/inc/html.h @@ -4,6 +4,23 @@ #ifndef HTML_H #define HTML_H -int html_self_closing(const char *tag); +#include <def.h> +#include <list.h> + +struct dom { + char *tag; + char *content; + struct dom *parent; + struct list *children; +}; + +struct html_element { + u32 x_offset; + u32 y_offset; + struct dom *dom; + struct element *obj; +}; + +int html_render(struct element *container, char *data, u32 length); #endif |