summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile1
-rw-r--r--include/dom/dom.h1
-rw-r--r--include/dom/html/html_canvas_element.h10
-rw-r--r--src/html/html_canvas_element.c16
4 files changed, 15 insertions, 13 deletions
diff --git a/Makefile b/Makefile
index fe1656b..64bf7c2 100644
--- a/Makefile
+++ b/Makefile
@@ -99,6 +99,7 @@ INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):$(Is)/html_body_element.h
INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):$(Is)/html_meta_element.h
INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):$(Is)/html_form_element.h
INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):$(Is)/html_button_element.h
+INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):$(Is)/html_canvas_element.h
INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):$(Is)/html_input_element.h
INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):$(Is)/html_select_element.h
INSTALL_ITEMS := $(INSTALL_ITEMS) $(I):$(Is)/html_text_area_element.h
diff --git a/include/dom/dom.h b/include/dom/dom.h
index 1737f29..c10e5a6 100644
--- a/include/dom/dom.h
+++ b/include/dom/dom.h
@@ -51,6 +51,7 @@
#include <dom/html/html_form_element.h>
#include <dom/html/html_input_element.h>
#include <dom/html/html_button_element.h>
+#include <dom/html/html_canvas_element.h>
#include <dom/html/html_text_area_element.h>
#include <dom/html/html_opt_group_element.h>
#include <dom/html/html_option_element.h>
diff --git a/include/dom/html/html_canvas_element.h b/include/dom/html/html_canvas_element.h
index 3da9127..29c7668 100644
--- a/include/dom/html/html_canvas_element.h
+++ b/include/dom/html/html_canvas_element.h
@@ -8,7 +8,7 @@
#ifndef dom_html_canvas_element_h_
#define dom_html_canvas_element_h_
-#include <stdbool.h>
+#include <dom/inttypes.h>
#include <dom/core/exceptions.h>
#include <dom/html/html_document.h>
@@ -16,16 +16,16 @@
typedef struct dom_html_canvas_element dom_html_canvas_element;
dom_exception dom_html_canvas_element_get_width(
- dom_html_canvas_element *object, int32_t *width);
+ dom_html_canvas_element *object, dom_ulong *width);
dom_exception dom_html_canvas_element_set_width(
- dom_html_canvas_element *object, uint32_t width);
+ dom_html_canvas_element *object, dom_ulong width);
dom_exception dom_html_canvas_element_get_height(
- dom_html_canvas_element *object, int32_t *height);
+ dom_html_canvas_element *object, dom_ulong *height);
dom_exception dom_html_canvas_element_set_height(
- dom_html_canvas_element *object, uint32_t height);
+ dom_html_canvas_element *object, dom_ulong height);
#endif
diff --git a/src/html/html_canvas_element.c b/src/html/html_canvas_element.c
index ea9d9c9..2543e5b 100644
--- a/src/html/html_canvas_element.c
+++ b/src/html/html_canvas_element.c
@@ -150,9 +150,9 @@ dom_exception _dom_html_canvas_element_copy_internal(
dom_exception
dom_html_canvas_element_get_width(dom_html_canvas_element *canvas,
- int32_t *width)
+ dom_ulong *width)
{
- return dom_html_element_get_int32_t_property(&canvas->base,
+ return dom_html_element_get_dom_ulong_property(&canvas->base,
"width",
SLEN("width"),
width);
@@ -160,9 +160,9 @@ dom_html_canvas_element_get_width(dom_html_canvas_element *canvas,
dom_exception
dom_html_canvas_element_set_width(dom_html_canvas_element *canvas,
- uint32_t width)
+ dom_ulong width)
{
- return dom_html_element_set_int32_t_property(&canvas->base,
+ return dom_html_element_set_dom_ulong_property(&canvas->base,
"width",
SLEN("width"),
width);
@@ -170,9 +170,9 @@ dom_html_canvas_element_set_width(dom_html_canvas_element *canvas,
dom_exception
dom_html_canvas_element_get_height(dom_html_canvas_element *canvas,
- int32_t *height)
+ dom_ulong *height)
{
- return dom_html_element_get_int32_t_property(&canvas->base,
+ return dom_html_element_get_dom_ulong_property(&canvas->base,
"height",
SLEN("height"),
height);
@@ -180,9 +180,9 @@ dom_html_canvas_element_get_height(dom_html_canvas_element *canvas,
dom_exception
dom_html_canvas_element_set_height(dom_html_canvas_element *canvas,
- uint32_t height)
+ dom_ulong height)
{
- return dom_html_element_set_int32_t_property(&canvas->base,
+ return dom_html_element_set_dom_ulong_property(&canvas->base,
"height",
SLEN("height"),
height);