Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  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>
  13. #include <dom/events/event_target.h>
  14.  
  15. struct dom_abstract_view;
  16.  
  17. typedef struct dom_mouse_wheel_event dom_mouse_wheel_event;
  18.  
  19. dom_exception _dom_mouse_wheel_event_get_wheel_delta(
  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.  
  25. dom_exception _dom_mouse_wheel_event_init_ns(
  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.  
  43.