1 | /* |
2 | * This file is part of the WebKit open source project. |
3 | * |
4 | * This library is free software; you can redistribute it and/or |
5 | * modify it under the terms of the GNU Library General Public |
6 | * License as published by the Free Software Foundation; either |
7 | * version 2 of the License, or (at your option) any later version. |
8 | * |
9 | * This library is distributed in the hope that it will be useful, |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
12 | * Library General Public License for more details. |
13 | * |
14 | * You should have received a copy of the GNU Library General Public License |
15 | * along with this library; see the file COPYING.LIB. If not, write to |
16 | * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
17 | * Boston, MA 02110-1301, USA. |
18 | */ |
19 | |
20 | #if !defined(__WEBKITDOM_H_INSIDE__) && !defined(BUILDING_WEBKIT) |
21 | #error "Only <webkitdom/webkitdom.h> can be included directly." |
22 | #endif |
23 | |
24 | #ifndef WebKitDOMWheelEvent_h |
25 | #define WebKitDOMWheelEvent_h |
26 | |
27 | #include <glib-object.h> |
28 | #include <webkitdom/WebKitDOMMouseEvent.h> |
29 | #include <webkitdom/webkitdomdefines.h> |
30 | |
31 | G_BEGIN_DECLS |
32 | |
33 | #define WEBKIT_DOM_TYPE_WHEEL_EVENT (webkit_dom_wheel_event_get_type()) |
34 | #define WEBKIT_DOM_WHEEL_EVENT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), WEBKIT_DOM_TYPE_WHEEL_EVENT, WebKitDOMWheelEvent)) |
35 | #define WEBKIT_DOM_WHEEL_EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), WEBKIT_DOM_TYPE_WHEEL_EVENT, WebKitDOMWheelEventClass) |
36 | #define WEBKIT_DOM_IS_WHEEL_EVENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), WEBKIT_DOM_TYPE_WHEEL_EVENT)) |
37 | #define WEBKIT_DOM_IS_WHEEL_EVENT_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), WEBKIT_DOM_TYPE_WHEEL_EVENT)) |
38 | #define WEBKIT_DOM_WHEEL_EVENT_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), WEBKIT_DOM_TYPE_WHEEL_EVENT, WebKitDOMWheelEventClass)) |
39 | |
40 | struct _WebKitDOMWheelEvent { |
41 | WebKitDOMMouseEvent parent_instance; |
42 | }; |
43 | |
44 | struct _WebKitDOMWheelEventClass { |
45 | WebKitDOMMouseEventClass parent_class; |
46 | }; |
47 | |
48 | WEBKIT_DEPRECATED GType |
49 | webkit_dom_wheel_event_get_type(void); |
50 | |
51 | /** |
52 | * webkit_dom_wheel_event_init_wheel_event: |
53 | * @self: A #WebKitDOMWheelEvent |
54 | * @wheelDeltaX: A #glong |
55 | * @wheelDeltaY: A #glong |
56 | * @view: A #WebKitDOMDOMWindow |
57 | * @screenX: A #glong |
58 | * @screenY: A #glong |
59 | * @clientX: A #glong |
60 | * @clientY: A #glong |
61 | * @ctrlKey: A #gboolean |
62 | * @altKey: A #gboolean |
63 | * @shiftKey: A #gboolean |
64 | * @metaKey: A #gboolean |
65 | * |
66 | * |
67 | * Deprecated: 2.22: Use JavaScriptCore API instead |
68 | **/ |
69 | WEBKIT_DEPRECATED void |
70 | webkit_dom_wheel_event_init_wheel_event(WebKitDOMWheelEvent* self, glong wheelDeltaX, glong wheelDeltaY, WebKitDOMDOMWindow* view, glong screenX, glong screenY, glong clientX, glong clientY, gboolean ctrlKey, gboolean altKey, gboolean shiftKey, gboolean metaKey); |
71 | |
72 | /** |
73 | * webkit_dom_wheel_event_get_wheel_delta_x: |
74 | * @self: A #WebKitDOMWheelEvent |
75 | * |
76 | * Returns: A #glong |
77 | * |
78 | * Deprecated: 2.22: Use JavaScriptCore API instead |
79 | **/ |
80 | WEBKIT_DEPRECATED glong |
81 | webkit_dom_wheel_event_get_wheel_delta_x(WebKitDOMWheelEvent* self); |
82 | |
83 | /** |
84 | * webkit_dom_wheel_event_get_wheel_delta_y: |
85 | * @self: A #WebKitDOMWheelEvent |
86 | * |
87 | * Returns: A #glong |
88 | * |
89 | * Deprecated: 2.22: Use JavaScriptCore API instead |
90 | **/ |
91 | WEBKIT_DEPRECATED glong |
92 | webkit_dom_wheel_event_get_wheel_delta_y(WebKitDOMWheelEvent* self); |
93 | |
94 | /** |
95 | * webkit_dom_wheel_event_get_wheel_delta: |
96 | * @self: A #WebKitDOMWheelEvent |
97 | * |
98 | * Returns: A #glong |
99 | * |
100 | * Deprecated: 2.22: Use JavaScriptCore API instead |
101 | **/ |
102 | WEBKIT_DEPRECATED glong |
103 | webkit_dom_wheel_event_get_wheel_delta(WebKitDOMWheelEvent* self); |
104 | |
105 | G_END_DECLS |
106 | |
107 | #endif /* WebKitDOMWheelEvent_h */ |
108 | |