summaryrefslogtreecommitdiff
path: root/web/web_dom.h
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-27 16:12:46 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-27 16:14:38 -0700
commita0ca7ab5421d001f50fabbc6c139ded380f597d8 (patch)
tree3d10554311f8644d7fec76f4a2f41d8cc38a6f2f /web/web_dom.h
parent51447980c54eab163773b80211a73dbfb3636e79 (diff)
downloaddartboat-a0ca7ab5421d001f50fabbc6c139ded380f597d8.tar.gz
dartboat-a0ca7ab5421d001f50fabbc6c139ded380f597d8.tar.xz
web: refactor svg drawing and related code
Diffstat (limited to 'web/web_dom.h')
-rw-r--r--web/web_dom.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/web/web_dom.h b/web/web_dom.h
index 45afd15..7806916 100644
--- a/web/web_dom.h
+++ b/web/web_dom.h
@@ -16,6 +16,7 @@ struct dom_elem *dom_text_init(char *content);
void dom_elem_free(struct dom_elem *e);
void dom_elem_add_attr(struct dom_elem *e, char *name, char *val);
void dom_elem_add_attrd(struct dom_elem *e, char *name, double val);
+void dom_elem_add_attrf(struct dom_elem *e, char *name, char *fmt, ...);
void dom_elem_add_child(struct dom_elem *e, struct dom_elem *child);
void dom_append_elemv(char *sel, int elemc, struct dom_elem **elemv);