XenevaOS
Loading...
Searching...
No Matches
Functions
html_canvas_element.c File Reference
#include <assert.h>
#include <stdlib.h>
#include <dom/html/html_canvas_element.h>
#include "html/html_document.h"
#include "html/html_canvas_element.h"
#include "core/node.h"
#include "core/attr.h"
#include "utils/utils.h"
Include dependency graph for html_canvas_element.c:

Functions

dom_exception _dom_html_canvas_element_create (struct dom_html_element_create_params *params, struct dom_html_canvas_element **ele)
 
dom_exception _dom_html_canvas_element_initialise (struct dom_html_element_create_params *params, struct dom_html_canvas_element *ele)
 
void _dom_html_canvas_element_finalise (struct dom_html_canvas_element *ele)
 
void _dom_html_canvas_element_destroy (struct dom_html_canvas_element *ele)
 
dom_exception _dom_html_canvas_element_parse_attribute (dom_element *ele, dom_string *name, dom_string *value, dom_string **parsed)
 
void _dom_virtual_html_canvas_element_destroy (dom_node_internal *node)
 
dom_exception _dom_html_canvas_element_copy (dom_node_internal *old, dom_node_internal **copy)
 
dom_exception _dom_html_canvas_element_copy_internal (dom_html_canvas_element *old, dom_html_canvas_element *new)
 
dom_exception dom_html_canvas_element_get_width (dom_html_canvas_element *canvas, dom_ulong *width)
 
dom_exception dom_html_canvas_element_set_width (dom_html_canvas_element *canvas, dom_ulong width)
 
dom_exception dom_html_canvas_element_get_height (dom_html_canvas_element *canvas, dom_ulong *height)
 
dom_exception dom_html_canvas_element_set_height (dom_html_canvas_element *canvas, dom_ulong height)
 

Function Documentation

◆ _dom_html_canvas_element_copy()

dom_exception _dom_html_canvas_element_copy ( dom_node_internal *  old,
dom_node_internal **  copy 
)

◆ _dom_html_canvas_element_copy_internal()

dom_exception _dom_html_canvas_element_copy_internal ( dom_html_canvas_element *  old,
dom_html_canvas_element *  new 
)

◆ _dom_html_canvas_element_create()

dom_exception _dom_html_canvas_element_create ( struct dom_html_element_create_params *  params,
struct dom_html_canvas_element **  ele 
)

Create a dom_html_canvas_element object

Parameters
paramsThe html element creation parameters
eleThe returned element object
Returns
DOM_NO_ERR on success, appropriate dom_exception on failure.

◆ _dom_html_canvas_element_destroy()

void _dom_html_canvas_element_destroy ( struct dom_html_canvas_element *  ele)

Destroy a dom_html_canvas_element object

Parameters
eleThe dom_html_canvas_element object

◆ _dom_html_canvas_element_finalise()

void _dom_html_canvas_element_finalise ( struct dom_html_canvas_element *  ele)

Finalise a dom_html_canvas_element object

Parameters
eleThe dom_html_canvas_element object

◆ _dom_html_canvas_element_initialise()

dom_exception _dom_html_canvas_element_initialise ( struct dom_html_element_create_params *  params,
struct dom_html_canvas_element *  ele 
)

Initialise a dom_html_canvas_element object

Parameters
paramsThe html element creation parameters
eleThe dom_html_canvas_element object
Returns
DOM_NO_ERR on success, appropriate dom_exception on failure.

◆ _dom_html_canvas_element_parse_attribute()

dom_exception _dom_html_canvas_element_parse_attribute ( dom_element *  ele,
dom_string *  name,
dom_string *  value,
dom_string **  parsed 
)

◆ _dom_virtual_html_canvas_element_destroy()

void _dom_virtual_html_canvas_element_destroy ( dom_node_internal *  node)

◆ dom_html_canvas_element_get_height()

dom_exception dom_html_canvas_element_get_height ( dom_html_canvas_element *  canvas,
dom_ulong *  height 
)

◆ dom_html_canvas_element_get_width()

dom_exception dom_html_canvas_element_get_width ( dom_html_canvas_element *  canvas,
dom_ulong *  width 
)

◆ dom_html_canvas_element_set_height()

dom_exception dom_html_canvas_element_set_height ( dom_html_canvas_element *  canvas,
dom_ulong  height 
)

◆ dom_html_canvas_element_set_width()

dom_exception dom_html_canvas_element_set_width ( dom_html_canvas_element *  canvas,
dom_ulong  width 
)