2 Copyright (C) 2011 Samsung Electronics
4 This library is free software; you can redistribute it and/or
5 modify it under the terms of the GNU Lesser General Public
6 License as published by the Free Software Foundation; either
7 version 2.1 of the License, or (at your option) any later version.
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 Lesser General Public License for more details.
14 You should have received a copy of the GNU Lesser General Public
15 License along with this library; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
19 #ifndef WebKitDOM_MouseEvent_h
20 #define WebKitDOM_MouseEvent_h
22 #include <WebKitDOM_Defines.h>
23 #include <WebKitDOM_UIEvent.h>
30 #define WEBKITDOM_MOUSEEVENT_INIT(objPtr) \
31 (((WebKitDOM_Object*)(objPtr))->p_coreObject) = 0; \
32 (((WebKitDOM_Object*)(objPtr))->deinit) = ewk_webkitdom_mouseevent_deinit
34 struct _WebKitDOM_MouseEvent {
35 WebKitDOM_UIEvent parent_object;
38 EAPI int ewk_webkitdom_mouseevent_get_screen_x(WebKitDOM_MouseEvent* self);
40 EAPI int ewk_webkitdom_mouseevent_get_screen_y(WebKitDOM_MouseEvent* self);
42 EAPI int ewk_webkitdom_mouseevent_get_client_x(WebKitDOM_MouseEvent* self);
44 EAPI int ewk_webkitdom_mouseevent_get_client_y(WebKitDOM_MouseEvent* self);
46 /* #if (defined ENABLE_POINTER_LOCK && ENABLE_POINTER_LOCK)
47 EAPI int ewk_webkitdom_mouseevent_get_webkit_movement_x(WebKitDOM_MouseEvent* self);
50 /* #if (defined ENABLE_POINTER_LOCK && ENABLE_POINTER_LOCK)
51 EAPI int ewk_webkitdom_mouseevent_get_webkit_movement_y(WebKitDOM_MouseEvent* self);
54 EAPI Eina_Bool ewk_webkitdom_mouseevent_get_ctrl_key(WebKitDOM_MouseEvent* self);
56 EAPI Eina_Bool ewk_webkitdom_mouseevent_get_shift_key(WebKitDOM_MouseEvent* self);
58 EAPI Eina_Bool ewk_webkitdom_mouseevent_get_alt_key(WebKitDOM_MouseEvent* self);
60 EAPI Eina_Bool ewk_webkitdom_mouseevent_get_meta_key(WebKitDOM_MouseEvent* self);
62 EAPI unsigned short ewk_webkitdom_mouseevent_get_button(WebKitDOM_MouseEvent* self);
64 EAPI void ewk_webkitdom_mouseevent_get_related_target(WebKitDOM_MouseEvent* self, WebKitDOM_EventTarget* ret);
66 EAPI int ewk_webkitdom_mouseevent_get_offset_x(WebKitDOM_MouseEvent* self);
68 EAPI int ewk_webkitdom_mouseevent_get_offset_y(WebKitDOM_MouseEvent* self);
70 EAPI int ewk_webkitdom_mouseevent_get_x(WebKitDOM_MouseEvent* self);
72 EAPI int ewk_webkitdom_mouseevent_get_y(WebKitDOM_MouseEvent* self);
74 EAPI void ewk_webkitdom_mouseevent_get_from_element(WebKitDOM_MouseEvent* self, WebKitDOM_Node* ret);
76 EAPI void ewk_webkitdom_mouseevent_get_to_element(WebKitDOM_MouseEvent* self, WebKitDOM_Node* ret);
79 EAPI void ewk_webkitdom_mouseevent_init_mouse_event(WebKitDOM_MouseEvent* self, WebKitDOM_String* type, Eina_Bool canBubble, Eina_Bool cancelable, WebKitDOM_DOMWindow* view, int detail, int screenX, int screenY, int clientX, int clientY, Eina_Bool ctrlKey, Eina_Bool altKey, Eina_Bool shiftKey, Eina_Bool metaKey, unsigned short button, WebKitDOM_EventTarget* relatedTarget);
81 EAPI void ewk_webkitdom_mouseevent_deinit(const WebKitDOM_Object*);
82 EAPI void _copy_webkit_mouseevent(WebKitDOM_MouseEvent* kitObjSrc, WebKitDOM_MouseEvent* ret);