mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-22 20:16:54 +03:00
add bindings for canvas width and height
This commit is contained in:
parent
084861a31b
commit
bf4cbc95b0
18
content/handlers/javascript/duktape/HTMLCanvasElement.bnd
Normal file
18
content/handlers/javascript/duktape/HTMLCanvasElement.bnd
Normal 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();
|
||||
|
@ -109,6 +109,7 @@ init TrackEvent(struct dom_event *evt::evt);
|
||||
#include "HTMLBodyElement.bnd"
|
||||
#include "HTMLButtonElement.bnd"
|
||||
#include "HTMLBRElement.bnd"
|
||||
#include "HTMLCanvasElement.bnd"
|
||||
#include "HTMLDivElement.bnd"
|
||||
#include "HTMLFontElement.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 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 HTMLDialogElement(struct dom_html_element *html_dialog_element::html_element);
|
||||
init HTMLMenuItemElement(struct dom_html_element *html_menu_item_element::html_element);
|
||||
|
Loading…
Reference in New Issue
Block a user