2023-05-05 14:40:17 -04:00
|
|
|
#ifndef EL__DOCUMENT_LIBDOM_RENDERER2_H
|
|
|
|
#define EL__DOCUMENT_LIBDOM_RENDERER2_H
|
2021-06-20 16:38:17 -04:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
struct cache_entry;
|
|
|
|
struct document;
|
2024-01-26 12:43:33 -05:00
|
|
|
struct document_view;
|
|
|
|
struct el_box;
|
2021-06-20 16:38:17 -04:00
|
|
|
struct string;
|
2024-01-26 12:43:33 -05:00
|
|
|
struct terminal;
|
|
|
|
|
|
|
|
struct node_rect {
|
|
|
|
int x0, y0, x1, y1, offset;
|
|
|
|
};
|
2021-06-20 16:38:17 -04:00
|
|
|
|
|
|
|
void render_xhtml_document(struct cache_entry *cached, struct document *document, struct string *buffer);
|
2023-09-24 11:56:58 -04:00
|
|
|
void dump_xhtml(struct cache_entry *cached, struct document *document, int parse);
|
2024-03-02 13:13:45 -05:00
|
|
|
|
2024-05-12 12:52:27 -04:00
|
|
|
void free_libdom(void);
|
2024-05-17 16:05:25 -04:00
|
|
|
void debug_dump_xhtml(void *doc);
|
2024-05-12 12:52:27 -04:00
|
|
|
|
2024-05-28 15:07:59 -04:00
|
|
|
int fire_generic_dom_event(void *typ, void *target, int bubbles, int cancelable);
|
|
|
|
int fire_onload(void *doc);
|
|
|
|
|
2024-03-02 13:13:45 -05:00
|
|
|
#if 0
|
2024-01-26 12:43:33 -05:00
|
|
|
void walk2(struct document *document);
|
|
|
|
void scan_document(struct document_view *doc_view);
|
|
|
|
void try_to_color(struct terminal *term, struct el_box *box, struct document *document, int vx, int vy);
|
2024-01-27 07:53:24 -05:00
|
|
|
struct node_rect *get_element_rect(struct document *document, int offset);
|
2024-03-02 13:13:45 -05:00
|
|
|
#endif
|
2021-06-20 16:38:17 -04:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|