libdom
Loading...
Searching...
No Matches
mutation_event.c File Reference
#include <stdlib.h>
#include "events/mutation_event.h"

Functions

dom_exception _dom_mutation_event_create (struct dom_mutation_event **evt)
 
void _dom_mutation_event_destroy (struct dom_mutation_event *evt)
 
dom_exception _dom_mutation_event_initialise (struct dom_mutation_event *evt)
 
void _dom_mutation_event_finalise (struct dom_mutation_event *evt)
 
dom_exception _dom_mutation_event_get_related_node (dom_mutation_event *evt, struct dom_node **node)
 
dom_exception _dom_mutation_event_get_prev_value (dom_mutation_event *evt, dom_string **ret)
 
dom_exception _dom_mutation_event_get_new_value (dom_mutation_event *evt, dom_string **ret)
 
dom_exception _dom_mutation_event_get_attr_name (dom_mutation_event *evt, dom_string **ret)
 
dom_exception _dom_mutation_event_get_attr_change (dom_mutation_event *evt, dom_mutation_type *type)
 
dom_exception _dom_mutation_event_init (dom_mutation_event *evt, dom_string *type, bool bubble, bool cancelable, struct dom_node *node, dom_string *prev_value, dom_string *new_value, dom_string *attr_name, dom_mutation_type change)
 
dom_exception _dom_mutation_event_init_ns (dom_mutation_event *evt, dom_string *namespace, dom_string *type, bool bubble, bool cancelable, struct dom_node *node, dom_string *prev_value, dom_string *new_value, dom_string *attr_name, dom_mutation_type change)
 

Function Documentation

◆ _dom_mutation_event_create()

dom_exception _dom_mutation_event_create ( struct dom_mutation_event ** evt)

◆ _dom_mutation_event_destroy()

void _dom_mutation_event_destroy ( struct dom_mutation_event * evt)

◆ _dom_mutation_event_finalise()

void _dom_mutation_event_finalise ( struct dom_mutation_event * evt)

◆ _dom_mutation_event_get_attr_change()

dom_exception _dom_mutation_event_get_attr_change ( dom_mutation_event * evt,
dom_mutation_type * type )

Get the way the attribute change

Parameters
evtThe Event object
typeThe change type
Returns
DOM_NO_ERR.

◆ _dom_mutation_event_get_attr_name()

dom_exception _dom_mutation_event_get_attr_name ( dom_mutation_event * evt,
dom_string ** ret )

Get the attr name

Parameters
evtThe Event object
retThe attribute name
Returns
DOM_NO_ERR.

◆ _dom_mutation_event_get_new_value()

dom_exception _dom_mutation_event_get_new_value ( dom_mutation_event * evt,
dom_string ** ret )

Get the new value

Parameters
evtThe Event object
retThe new value
Returns
DOM_NO_ERR.

◆ _dom_mutation_event_get_prev_value()

dom_exception _dom_mutation_event_get_prev_value ( dom_mutation_event * evt,
dom_string ** ret )

Get the old value

Parameters
evtThe Event object
retThe old value
Returns
DOM_NO_ERR.

◆ _dom_mutation_event_get_related_node()

dom_exception _dom_mutation_event_get_related_node ( dom_mutation_event * evt,
struct dom_node ** node )

Get the related node

Parameters
evtThe Event object
nodeThe related node
Returns
DOM_NO_ERR.

◆ _dom_mutation_event_init()

dom_exception _dom_mutation_event_init ( dom_mutation_event * evt,
dom_string * type,
bool bubble,
bool cancelable,
struct dom_node * node,
dom_string * prev_value,
dom_string * new_value,
dom_string * attr_name,
dom_mutation_type change )

Initialise the MutationEvent

Parameters
evtThe Event object
typeThe type of this UIEvent
bubbleWhether this event can bubble
cancelableWhether this event is cancelable
nodeThe mutation node
prev_valueThe old value
new_valueThe new value
attr_nameThe attribute's name
changeThe change type
Returns
DOM_NO_ERR on success, appropriate dom_exception on failure.

◆ _dom_mutation_event_init_ns()

dom_exception _dom_mutation_event_init_ns ( dom_mutation_event * evt,
dom_string * namespace,
dom_string * type,
bool bubble,
bool cancelable,
struct dom_node * node,
dom_string * prev_value,
dom_string * new_value,
dom_string * attr_name,
dom_mutation_type change )

Initialise the MutationEvent with namespace

Parameters
evtThe Event object
namespaceThe namespace
typeThe type of this UIEvent
bubbleWhether this event can bubble
cancelableWhether this event is cancelable
nodeThe mutation node
prev_valueThe old value
new_valueThe new value
attr_nameThe attribute's name
changeThe change type
Returns
DOM_NO_ERR on success, appropriate dom_exception on failure.

◆ _dom_mutation_event_initialise()

dom_exception _dom_mutation_event_initialise ( struct dom_mutation_event * evt)