libdom
Loading...
Searching...
No Matches
include
dom
events
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
15
typedef
struct
dom_custom_event
dom_custom_event
;
16
17
dom_exception
_dom_custom_event_get_detail
(
dom_custom_event
*evt,
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
23
dom_exception
_dom_custom_event_init_ns
(
dom_custom_event
*evt,
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
exceptions.h
dom_exception
dom_exception
Definition
exceptions.h:24
string.h
_dom_custom_event_get_detail
dom_exception _dom_custom_event_get_detail(dom_custom_event *evt, void **detail)
Definition
custom_event.c:70
_dom_custom_event_init_ns
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
dom_custom_event
Definition
custom_event.h:15
dom_custom_event::detail
void * detail
Definition
custom_event.h:17
dom_string
Definition
string.h:19
Generated on Fri Nov 29 2024 17:49:03 for libdom by
1.12.0