libdom
Loading...
Searching...
No Matches
mouse_wheel_event.h
Go to the documentation of this file.
1/* * This file is part of libdom.
2 * Licensed under the MIT License,
3 * http://www.opensource.org/licenses/mit-license.php
4 * Copyright 2009 Bo Yang <struggleyb.nku@gmail.com>
5 */
6
7#ifndef dom_events_mouse_wheel_event_h_
8#define dom_events_mouse_wheel_event_h_
9
10#include <stdbool.h>
11#include <dom/core/exceptions.h>
12#include <dom/core/string.h>
14
15struct dom_abstract_view;
16
18
20 dom_mouse_wheel_event *evt, int32_t *d);
21#define dom_mouse_wheel_event_get_wheel_delta(e, d) \
22 _dom_mouse_wheel_event_get_wheel_delta( \
23 (dom_mouse_wheel_event *) (e), (int32_t *) (d))
24
26 dom_mouse_wheel_event *evt, dom_string *namespace,
27 dom_string *type, bool bubble, bool cancelable,
28 struct dom_abstract_view *view, int32_t detail, int32_t screen_x,
29 int32_t screen_y, int32_t client_x, int32_t client_y,
30 unsigned short button, dom_event_target *et,
31 dom_string *modifier_list, int32_t wheel_delta);
32#define dom_mouse_wheel_event_init_ns(e, n, t, b, c, v, \
33 d, sx, sy, cx, cy, button, et, ml, dt) \
34 _dom_mouse_wheel_event_init_ns((dom_mouse_wheel_event *) (e), \
35 (dom_string *) (n), (dom_string *) (t), \
36 (bool) (b), (bool) (c), (struct dom_abstract_view *) (v),\
37 (int32_t) (d), (int32_t) (sx), (int32_t) (sy), (int32_t) (cx), (int32_t) (cy),\
38 (unsigned short) (button), (dom_event_target *) (et),\
39 (dom_string *) (ml), (int32_t) (dt))
40
41#endif
42
dom_exception
Definition exceptions.h:24
dom_exception _dom_mouse_wheel_event_init_ns(dom_mouse_wheel_event *evt, dom_string *namespace, dom_string *type, bool bubble, bool cancelable, struct dom_abstract_view *view, int32_t detail, int32_t screen_x, int32_t screen_y, int32_t client_x, int32_t client_y, unsigned short button, dom_event_target *et, dom_string *modifier_list, int32_t wheel_delta)
Definition mouse_wheel_event.c:95
dom_exception _dom_mouse_wheel_event_get_wheel_delta(dom_mouse_wheel_event *evt, int32_t *d)
Definition mouse_wheel_event.c:67
Definition event_target.h:20
Definition mouse_wheel_event.h:18
Definition string.h:19