libdom
Loading...
Searching...
No Matches
Functions
mutation_name_event.c File Reference
#include <stdlib.h>
#include "events/mutation_name_event.h"
#include "core/document.h"
#include "utils/utils.h"

Functions

dom_exception _dom_mutation_name_event_create (struct dom_mutation_name_event **evt)
 
void _dom_mutation_name_event_destroy (struct dom_mutation_name_event *evt)
 
dom_exception _dom_mutation_name_event_initialise (struct dom_mutation_name_event *evt)
 
void _dom_mutation_name_event_finalise (struct dom_mutation_name_event *evt)
 
dom_exception _dom_mutation_name_event_get_prev_namespace (dom_mutation_name_event *evt, dom_string **namespace)
 
dom_exception _dom_mutation_name_event_get_prev_node_name (dom_mutation_name_event *evt, dom_string **name)
 
dom_exception _dom_mutation_name_event_init (dom_mutation_name_event *evt, dom_string *type, bool bubble, bool cancelable, struct dom_node *node, dom_string *prev_ns, dom_string *prev_name)
 
dom_exception _dom_mutation_name_event_init_ns (dom_mutation_name_event *evt, dom_string *namespace, dom_string *type, bool bubble, bool cancelable, struct dom_node *node, dom_string *prev_ns, dom_string *prev_name)
 

Function Documentation

◆ _dom_mutation_name_event_create()

dom_exception _dom_mutation_name_event_create ( struct dom_mutation_name_event ** evt)

◆ _dom_mutation_name_event_destroy()

void _dom_mutation_name_event_destroy ( struct dom_mutation_name_event * evt)

◆ _dom_mutation_name_event_finalise()

void _dom_mutation_name_event_finalise ( struct dom_mutation_name_event * evt)

◆ _dom_mutation_name_event_get_prev_namespace()

dom_exception _dom_mutation_name_event_get_prev_namespace ( dom_mutation_name_event * evt,
dom_string ** namespace )

Get the previous namespace

Parameters
evtThe Event object
namespaceThe previous namespace of this event
Returns
DOM_NO_ERR.

◆ _dom_mutation_name_event_get_prev_node_name()

dom_exception _dom_mutation_name_event_get_prev_node_name ( dom_mutation_name_event * evt,
dom_string ** name )

Get the previous node name

Parameters
evtThe Event object
nameThe previous node name
Returns
DOM_NO_ERR.

◆ _dom_mutation_name_event_init()

dom_exception _dom_mutation_name_event_init ( dom_mutation_name_event * evt,
dom_string * type,
bool bubble,
bool cancelable,
struct dom_node * node,
dom_string * prev_ns,
dom_string * prev_name )

Initialise the MutationNameEvent

Parameters
evtThe Event object
typeThe type of this UIEvent
bubbleWhether this event can bubble
cancelableWhether this event is cancelable
nodeThe node whose name change
prev_nsThe old namespace
prev_nameThe old name
Returns
DOM_NO_ERR on success, appropriate dom_exception on failure.

◆ _dom_mutation_name_event_init_ns()

dom_exception _dom_mutation_name_event_init_ns ( dom_mutation_name_event * evt,
dom_string * namespace,
dom_string * type,
bool bubble,
bool cancelable,
struct dom_node * node,
dom_string * prev_ns,
dom_string * prev_name )

Initialise the MutationNameEvent with namespace

Parameters
evtThe Event object
namespaceThe namespace
typeThe type of this UIEvent
bubbleWhether this event can bubble
cancelableWhether this event is cancelable
nodeThe node whose name change
prev_nsThe old namespace
prev_nameThe old name
Returns
DOM_NO_ERR on success, appropriate dom_exception on failure.

◆ _dom_mutation_name_event_initialise()

dom_exception _dom_mutation_name_event_initialise ( struct dom_mutation_name_event * evt)