#include <stdlib.h>
#include "events/mouse_wheel_event.h"
#include "events/keyboard_event.h"
#include "core/document.h"
#include "utils/utils.h"
|
| dom_exception | _dom_mouse_wheel_event_create (struct dom_mouse_wheel_event **evt) |
| |
| void | _dom_mouse_wheel_event_destroy (struct dom_mouse_wheel_event *evt) |
| |
| dom_exception | _dom_mouse_wheel_event_initialise (struct dom_mouse_wheel_event *evt) |
| |
| dom_exception | _dom_mouse_wheel_event_get_wheel_delta (dom_mouse_wheel_event *evt, int32_t *d) |
| |
| 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) |
| |
◆ _dom_mouse_wheel_event_create()
◆ _dom_mouse_wheel_event_destroy()
◆ _dom_mouse_wheel_event_get_wheel_delta()
Get wheelDelta
- Parameters
-
| evt | The Event object |
| d | The wheelDelta |
- Returns
- DOM_NO_ERR.
◆ _dom_mouse_wheel_event_init_ns()
| 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 |
|
) |
| |
Intialise this event with namespace
- Parameters
-
| evt | The Event object |
| namespace | The namespace of this event |
| type | The event's type |
| bubble | Whether this is a bubbling event |
| cancelable | Whether this is a cancelable event |
| view | The AbstractView associated with this event |
| detail | The detail information of this mouse event |
| screen_x | The x position of the mouse pointer in screen |
| screen_y | The y position of the mouse pointer in screen |
| client_x | The x position of the mouse pointer in client window |
| client_y | The y position of the mouse pointer in client window |
| button | The mouse button pressed |
| et | The related target of this event, may be NULL |
| modifier_list | The string contains the modifier identifier strings |
| wheel_delta | The wheelDelta |
- Returns
- DOM_NO_ERR on success, appropriate dom_exception on failure.
◆ _dom_mouse_wheel_event_initialise()