libdom
Loading...
Searching...
No Matches
mutation_name_event.h File Reference
#include <stdbool.h>
#include <dom/core/exceptions.h>
#include <dom/core/string.h>

Go to the source code of this file.

Macros

#define dom_mutation_name_event_get_prev_namespace(e, n)
 
#define dom_mutation_name_event_get_prev_node_name(e, n)
 
#define dom_mutation_name_event_init(e, t, b, c, n, p, pn)
 
#define dom_mutation_name_event_init_ns(e, n, t, b, c, nv, p, pn)
 

Typedefs

typedef struct dom_mutation_name_event dom_mutation_name_event
 

Functions

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)
 

Macro Definition Documentation

◆ dom_mutation_name_event_get_prev_namespace

#define dom_mutation_name_event_get_prev_namespace ( e,
n )
Value:
dom_exception _dom_mutation_name_event_get_prev_namespace(dom_mutation_name_event *evt, dom_string **namespace)
Definition mutation_name_event.c:77
Definition mutation_name_event.h:18
Definition string.h:19

◆ dom_mutation_name_event_get_prev_node_name

#define dom_mutation_name_event_get_prev_node_name ( e,
n )
Value:
dom_exception _dom_mutation_name_event_get_prev_node_name(dom_mutation_name_event *evt, dom_string **name)
Definition mutation_name_event.c:93

◆ dom_mutation_name_event_init

#define dom_mutation_name_event_init ( e,
t,
b,
c,
n,
p,
pn )
Value:
(dom_string *) (t), (bool) (b), (bool) (c), \
(struct dom_node *) (n), (dom_string *) (p), \
(dom_string *) (pn))
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)
Definition mutation_name_event.c:114
Definition node.h:79

◆ dom_mutation_name_event_init_ns

#define dom_mutation_name_event_init_ns ( e,
n,
t,
b,
c,
nv,
p,
pn )
Value:
(dom_string *) (t), (bool) (b), (bool) (c),\
(struct dom_node *) (nv), (dom_string *) (p), \
(dom_string *) (pn))
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)
Definition mutation_name_event.c:143

Typedef Documentation

◆ dom_mutation_name_event

typedef struct dom_mutation_name_event dom_mutation_name_event

Function Documentation

◆ _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.