libdom
Loading...
Searching...
No Matches
mouse_wheel_event.c File Reference
#include <stdlib.h>
#include "events/mouse_wheel_event.h"
#include "events/keyboard_event.h"
#include "core/document.h"
#include "utils/utils.h"

Functions

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)
 

Function Documentation

◆ _dom_mouse_wheel_event_create()

dom_exception _dom_mouse_wheel_event_create ( struct dom_mouse_wheel_event ** evt)

◆ _dom_mouse_wheel_event_destroy()

void _dom_mouse_wheel_event_destroy ( struct dom_mouse_wheel_event * evt)

◆ _dom_mouse_wheel_event_get_wheel_delta()

dom_exception _dom_mouse_wheel_event_get_wheel_delta ( dom_mouse_wheel_event * evt,
int32_t * d )

Get wheelDelta

Parameters
evtThe Event object
dThe 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
evtThe Event object
namespaceThe namespace of this event
typeThe event's type
bubbleWhether this is a bubbling event
cancelableWhether this is a cancelable event
viewThe AbstractView associated with this event
detailThe detail information of this mouse event
screen_xThe x position of the mouse pointer in screen
screen_yThe y position of the mouse pointer in screen
client_xThe x position of the mouse pointer in client window
client_yThe y position of the mouse pointer in client window
buttonThe mouse button pressed
etThe related target of this event, may be NULL
modifier_listThe string contains the modifier identifier strings
wheel_deltaThe wheelDelta
Returns
DOM_NO_ERR on success, appropriate dom_exception on failure.

◆ _dom_mouse_wheel_event_initialise()

dom_exception _dom_mouse_wheel_event_initialise ( struct dom_mouse_wheel_event * evt)