libdom
Loading...
Searching...
No Matches
ui_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_ui_event_h_
9#define dom_events_ui_event_h_
10
11#include <stdbool.h>
12#include <dom/core/exceptions.h>
13#include <dom/core/string.h>
14
15struct dom_abstract_view;
16
18
20 struct dom_abstract_view **view);
21#define dom_ui_event_get_view(e, v) _dom_ui_event_get_view( \
22 (dom_ui_event *) (e), (struct dom_abstract_view **) (v))
23
25 int32_t *detail);
26#define dom_ui_event_get_detail(e, d) _dom_ui_event_get_detail(\
27 (dom_ui_event *) (e), (int32_t *) (d))
28
30 bool bubble, bool cancelable, struct dom_abstract_view *view,
31 int32_t detail);
32#define dom_ui_event_init(e, t, b, c, v, d) _dom_ui_event_init( \
33 (dom_ui_event *) (e), (dom_string *) (t), (bool) (b), \
34 (bool) (c), (struct dom_abstract_view *) (v), (int32_t) (d))
35
37 dom_string *namespace, dom_string *type,
38 bool bubble, bool cancelable, struct dom_abstract_view *view,
39 int32_t detail);
40#define dom_ui_event_init_ns(e, n, t, b, c, v, d) _dom_ui_event_init_ns( \
41 (dom_ui_event *) (e), (dom_string *) (n), \
42 (dom_string *) (t), (bool) (b), (bool) (c), \
43 (struct dom_abstract_view *) (v), (int32_t) (d))
44
45#endif
dom_exception
Definition exceptions.h:24
dom_exception _dom_ui_event_get_detail(dom_ui_event *evt, int32_t *detail)
Definition ui_event.c:82
dom_exception _dom_ui_event_get_view(dom_ui_event *evt, struct dom_abstract_view **view)
Definition ui_event.c:67
dom_exception _dom_ui_event_init(dom_ui_event *evt, dom_string *type, bool bubble, bool cancelable, struct dom_abstract_view *view, int32_t detail)
Definition ui_event.c:101
dom_exception _dom_ui_event_init_ns(dom_ui_event *evt, dom_string *namespace, dom_string *type, bool bubble, bool cancelable, struct dom_abstract_view *view, int32_t detail)
Definition ui_event.c:123
Definition string.h:19
Definition ui_event.h:32
int32_t detail
Definition ui_event.h:35
struct dom_abstract_view * view
Definition ui_event.h:34