add bindings for canvas width and height

This commit is contained in:
Vincent Sanders 2020-04-24 22:05:57 +01:00
parent 084861a31b
commit bf4cbc95b0
2 changed files with 19 additions and 1 deletions

View File

@ -0,0 +1,18 @@
/* HTML canvas element binding using duktape and libdom
*
* Copyright 2020 Vincent Sanders <vince@netsurf-browser.org>
*
* This file is part of NetSurf, http://www.netsurf-browser.org/
*
* Released under the terms of the MIT License,
* http://www.opensource.org/licenses/mit-license
*/
init HTMLCanvasElement(struct dom_html_element *html_canvas_element::html_element);
getter HTMLCanvasElement::width();
setter HTMLCanvasElement::width();
getter HTMLCanvasElement::height();
setter HTMLCanvasElement::height();

View File

@ -109,6 +109,7 @@ init TrackEvent(struct dom_event *evt::evt);
#include "HTMLBodyElement.bnd" #include "HTMLBodyElement.bnd"
#include "HTMLButtonElement.bnd" #include "HTMLButtonElement.bnd"
#include "HTMLBRElement.bnd" #include "HTMLBRElement.bnd"
#include "HTMLCanvasElement.bnd"
#include "HTMLDivElement.bnd" #include "HTMLDivElement.bnd"
#include "HTMLFontElement.bnd" #include "HTMLFontElement.bnd"
#include "HTMLFormElement.bnd" #include "HTMLFormElement.bnd"
@ -149,7 +150,6 @@ init TrackEvent(struct dom_event *evt::evt);
init HTMLUnknownElement(struct dom_html_element *html_unknown_element::html_element); init HTMLUnknownElement(struct dom_html_element *html_unknown_element::html_element);
init HTMLDirectoryElement(struct dom_html_element *html_directory_element::html_element); init HTMLDirectoryElement(struct dom_html_element *html_directory_element::html_element);
init HTMLCanvasElement(struct dom_html_element *html_canvas_element::html_element);
init HTMLTemplateElement(struct dom_html_element *html_template_element::html_element); init HTMLTemplateElement(struct dom_html_element *html_template_element::html_element);
init HTMLDialogElement(struct dom_html_element *html_dialog_element::html_element); init HTMLDialogElement(struct dom_html_element *html_dialog_element::html_element);
init HTMLMenuItemElement(struct dom_html_element *html_menu_item_element::html_element); init HTMLMenuItemElement(struct dom_html_element *html_menu_item_element::html_element);