libdom
Loading...
Searching...
No Matches
text_event.h
Go to the documentation of this file.
1/*
2 * This file is part of libdom.
3 * Licensed under the MIT License,
4 * http://www.opensource.org/licenses/mit-license.php
5 * Copyright 2009 Bo Yang <struggleyb.nku@gmail.com>
6 */
7
8#ifndef dom_events_text_event_h_
9#define dom_events_text_event_h_
10
11#include <stdbool.h>
12#include <dom/core/exceptions.h>
13#include <dom/core/string.h>
14
15struct dom_abstract_view;
16
18
21#define dom_text_event_get_data(e, d) _dom_text_event_get_data(\
22 (dom_text_event *) (e), (dom_string **) (d))
23
25 dom_string *type, bool bubble, bool cancelable,
26 struct dom_abstract_view *view, dom_string *data);
27#define dom_text_event_init(e, t, b, c, v, d) _dom_text_event_init( \
28 (dom_text_event *) (e), (dom_string *) (t), (bool) (b), \
29 (bool) (c), (struct dom_abstract_view *) (v),\
30 (dom_string *) (d))
31
33 dom_string *namespace_name, dom_string *type,
34 bool bubble, bool cancelable, struct dom_abstract_view *view,
36#define dom_text_event_init_ns(e, n, t, b, c, v, d) _dom_text_event_init_ns( \
37 (dom_text_event *) (e), (dom_string *) (n), \
38 (dom_string *) (t), (bool) (b), (bool) (c), \
39 (struct dom_abstract_view *) (v), (dom_string *) (d))
40
41#endif
dom_exception
Definition exceptions.h:24
dom_exception _dom_text_event_init_ns(dom_text_event *evt, dom_string *namespace_name, dom_string *type, bool bubble, bool cancelable, struct dom_abstract_view *view, dom_string *data)
Definition text_event.c:112
dom_exception _dom_text_event_init(dom_text_event *evt, dom_string *type, bool bubble, bool cancelable, struct dom_abstract_view *view, dom_string *data)
Definition text_event.c:89
dom_exception _dom_text_event_get_data(dom_text_event *evt, dom_string **data)
Definition text_event.c:69
Definition string.h:19
Definition text_event.h:18
dom_string * data
Definition text_event.h:20