libdom
Loading...
Searching...
No Matches
document_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_document_event_h_
9#define dom_events_document_event_h_
10
11#include <stdbool.h>
12
13#include <dom/core/exceptions.h>
14#include <dom/core/string.h>
15
16struct dom_event;
17struct dom_document;
18
20
59typedef void (*dom_default_action_callback)(struct dom_event *evt, void *pw);
60
73
84 void **pw);
85
87 dom_string *type, struct dom_event **evt);
88#define dom_document_event_create_event(d, t, e) \
89 _dom_document_event_create_event((dom_document_event *) (d), \
90 (dom_string *) (t), (struct dom_event **) (e))
91
93 dom_string *namespace, dom_string *type,
94 bool* can);
95#define dom_document_event_can_dispatch(d, n, t, c) \
96 _dom_document_event_can_dispatch((dom_document_event *) (d), \
97 (dom_string *) (n), (dom_string *) (t),\
98 (bool *) (c))
99
100#endif
101
dom_exception
Definition exceptions.h:24
dom_default_action_phase
Definition document_event.h:67
@ DOM_DEFAULT_ACTION_FINISHED
Definition document_event.h:71
@ DOM_DEFAULT_ACTION_PREVENTED
Definition document_event.h:69
@ DOM_DEFAULT_ACTION_END
Definition document_event.h:70
@ DOM_DEFAULT_ACTION_STARTED
Definition document_event.h:68
dom_exception _dom_document_event_create_event(dom_document_event *de, dom_string *type, struct dom_event **evt)
Definition document_event.c:96
dom_default_action_callback(* dom_events_default_action_fetcher)(dom_string *type, dom_default_action_phase phase, void **pw)
Definition document_event.h:83
dom_exception _dom_document_event_can_dispatch(dom_document_event *de, dom_string *namespace, dom_string *type, bool *can)
Definition document_event.c:174
void(* dom_default_action_callback)(struct dom_event *evt, void *pw)
Definition document_event.h:59
Definition document.h:43
Definition event.h:27
dom_string * type
Definition event.h:28
dom_event_flow_phase phase
Definition event.h:31
Definition string.h:19