Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
3584 | sourcerer | 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 |
||
6 | */ |
||
7 | |||
8 | #ifndef dom_events_text_event_h_ |
||
9 | #define dom_events_text_event_h_ |
||
10 | |||
11 | #include |
||
12 | #include |
||
13 | #include |
||
14 | |||
15 | struct dom_abstract_view; |
||
16 | |||
17 | typedef struct dom_text_event dom_text_event; |
||
18 | |||
19 | dom_exception _dom_text_event_get_data(dom_text_event *evt, |
||
20 | dom_string **data); |
||
21 | #define dom_text_event_get_data(e, d) _dom_text_event_get_data(\ |
||
22 | (dom_text_event *) (e), (dom_string **) (d)) |
||
23 | |||
24 | dom_exception _dom_text_event_init(dom_text_event *evt, |
||
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 | |||
32 | dom_exception _dom_text_event_init_ns(dom_text_event *evt, |
||
33 | dom_string *namespace_name, dom_string *type, |
||
34 | bool bubble, bool cancelable, struct dom_abstract_view *view, |
||
35 | dom_string *data); |
||
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 |