#include <stdbool.h>
#include <dom/core/exceptions.h>
#include <dom/core/string.h>
Go to the source code of this file.
|
#define | dom_mutation_event_get_related_node(e, n) |
|
#define | dom_mutation_event_get_prev_value(e, r) |
|
#define | dom_mutation_event_get_new_value(e, r) |
|
#define | dom_mutation_event_get_attr_name(e, r) |
|
#define | dom_mutation_event_get_attr_change(e, t) |
|
#define | dom_mutation_event_init(e, t, b, c, n, p, nv, a, ch) |
|
#define | dom_mutation_event_init_ns(e, n, t, b, c, nd, p, nv, a, ch) |
|
|
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) |
|
◆ dom_mutation_event_get_attr_change
#define dom_mutation_event_get_attr_change |
( |
| e, |
|
|
| t ) |
Value:
dom_mutation_type
Definition mutation_event.h:17
dom_exception _dom_mutation_event_get_attr_change(dom_mutation_event *evt, dom_mutation_type *type)
Definition mutation_event.c:145
Definition mutation_event.h:18
◆ dom_mutation_event_get_attr_name
#define dom_mutation_event_get_attr_name |
( |
| e, |
|
|
| r ) |
Value:
dom_exception _dom_mutation_event_get_attr_name(dom_mutation_event *evt, dom_string **ret)
Definition mutation_event.c:129
◆ dom_mutation_event_get_new_value
#define dom_mutation_event_get_new_value |
( |
| e, |
|
|
| r ) |
Value:
dom_exception _dom_mutation_event_get_new_value(dom_mutation_event *evt, dom_string **ret)
Definition mutation_event.c:113
◆ dom_mutation_event_get_prev_value
#define dom_mutation_event_get_prev_value |
( |
| e, |
|
|
| r ) |
Value:
dom_exception _dom_mutation_event_get_prev_value(dom_mutation_event *evt, dom_string **ret)
Definition mutation_event.c:97
◆ dom_mutation_event_get_related_node
#define dom_mutation_event_get_related_node |
( |
| e, |
|
|
| n ) |
Value:
dom_exception _dom_mutation_event_get_related_node(dom_mutation_event *evt, struct dom_node **node)
Definition mutation_event.c:81
◆ dom_mutation_event_init
#define dom_mutation_event_init |
( |
| e, |
|
|
| t, |
|
|
| b, |
|
|
| c, |
|
|
| n, |
|
|
| p, |
|
|
| nv, |
|
|
| a, |
|
|
| ch ) |
Value:
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)
Definition mutation_event.c:167
◆ dom_mutation_event_init_ns
#define dom_mutation_event_init_ns |
( |
| e, |
|
|
| n, |
|
|
| t, |
|
|
| b, |
|
|
| c, |
|
|
| nd, |
|
|
| p, |
|
|
| nv, |
|
|
| a, |
|
|
| ch ) |
Value:
(
bool) (b), (
bool) (c), (
struct dom_node *) (nd), \
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)
Definition mutation_event.c:205
◆ dom_mutation_event
typedef struct dom_mutation_event dom_mutation_event |
◆ dom_mutation_type
Enumerator |
---|
DOM_MUTATION_MODIFICATION | |
DOM_MUTATION_ADDITION | |
DOM_MUTATION_REMOVAL | |
◆ _dom_mutation_event_get_attr_change()
Get the way the attribute change
- Parameters
-
evt | The Event object |
type | The change type |
- Returns
- DOM_NO_ERR.
◆ _dom_mutation_event_get_attr_name()
Get the attr name
- Parameters
-
evt | The Event object |
ret | The attribute name |
- Returns
- DOM_NO_ERR.
◆ _dom_mutation_event_get_new_value()
Get the new value
- Parameters
-
evt | The Event object |
ret | The new value |
- Returns
- DOM_NO_ERR.
◆ _dom_mutation_event_get_prev_value()
Get the old value
- Parameters
-
evt | The Event object |
ret | The old value |
- Returns
- DOM_NO_ERR.
◆ _dom_mutation_event_get_related_node()
Get the related node
- Parameters
-
evt | The Event object |
node | The related node |
- Returns
- DOM_NO_ERR.
◆ _dom_mutation_event_init()
Initialise the MutationEvent
- Parameters
-
evt | The Event object |
type | The type of this UIEvent |
bubble | Whether this event can bubble |
cancelable | Whether this event is cancelable |
node | The mutation node |
prev_value | The old value |
new_value | The new value |
attr_name | The attribute's name |
change | The change type |
- Returns
- DOM_NO_ERR on success, appropriate dom_exception on failure.
◆ _dom_mutation_event_init_ns()
Initialise the MutationEvent with namespace
- Parameters
-
evt | The Event object |
namespace | The namespace |
type | The type of this UIEvent |
bubble | Whether this event can bubble |
cancelable | Whether this event is cancelable |
node | The mutation node |
prev_value | The old value |
new_value | The new value |
attr_name | The attribute's name |
change | The change type |
- Returns
- DOM_NO_ERR on success, appropriate dom_exception on failure.