libdom
Loading...
Searching...
No Matches
custom_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_custom_event_h_
9#define dom_events_custom_event_h_
10
11#include <stdbool.h>
12#include <dom/core/exceptions.h>
13#include <dom/core/string.h>
14
16
18 void **detail);
19#define dom_custom_event_get_detail(e, d) \
20 _dom_custom_event_get_detail((dom_custom_event *) (e),\
21 (void **) (d))
22
24 dom_string *namespace, dom_string *type,
25 bool bubble, bool cancelable, void *detail);
26#define dom_custom_event_init_ns(e, n, t, b, c, d) \
27 _dom_custom_event_init_ns((dom_custom_event *) (e), \
28 (dom_string *) (n), (dom_string *) (t), \
29 (bool) (b), (bool) (c), (void *) (d))
30
31#endif
dom_exception
Definition exceptions.h:24
dom_exception _dom_custom_event_get_detail(dom_custom_event *evt, void **detail)
Definition custom_event.c:70
dom_exception _dom_custom_event_init_ns(dom_custom_event *evt, dom_string *namespace, dom_string *type, bool bubble, bool cancelable, void *detail)
Definition custom_event.c:89
Definition custom_event.h:15
void * detail
Definition custom_event.h:17
Definition string.h:19