libdom
Loading...
Searching...
No Matches
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_internal_events_event_h_
9#define dom_internal_events_event_h_
10
11#include <inttypes.h>
12
13#include <dom/core/document.h>
15#include <dom/events/event.h>
16
17#include "utils/list.h"
18
19/* The private virtual table */
21 void (*destroy)(dom_event *evt);
22};
23
54
55/* Destructor */
57
58/* Initialise function */
60
61/* Finalise function */
63
64
65static inline void dom_event_destroy(dom_event *evt)
66{
67 evt->vtable->destroy(evt);
68}
69#define dom_event_destroy(e) dom_event_destroy((dom_event *) (e))
70
71#endif
72
dom_exception
Definition exceptions.h:24
dom_event_flow_phase
Definition event.h:16
void _dom_event_finalise(dom_event *evt)
Definition event.c:66
void _dom_event_destroy(dom_event *evt)
Definition event.c:38
#define dom_event_destroy(e)
Definition event.h:69
dom_exception _dom_event_initialise(dom_event *evt)
Definition event.c:46
Definition event.h:20
void(* destroy)(dom_event *evt)
Definition event.h:21
Definition event_target.h:20
Definition event.h:27
bool stop
Definition event.h:37
dom_event_target * target
Definition event.h:29
bool is_trusted
Definition event.h:52
bool is_initialised
Definition event.h:51
dom_event_target * current
Definition event.h:30
const struct dom_event_private_vtable * vtable
Definition event.h:48
bool bubble
Definition event.h:32
bool stop_now
Definition event.h:40
bool cancelable
Definition event.h:33
dom_string * type
Definition event.h:28
bool custom
Definition event.h:44
dom_event_flow_phase phase
Definition event.h:31
unsigned int timestamp
Definition event.h:34
uint32_t refcnt
Definition event.h:46
bool in_dispatch
Definition event.h:50
bool prevent_default
Definition event.h:41
Definition string.h:19