Subversion Repositories Kolibri OS

Rev

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

  1. /*
  2.  * This file is part of libdom.
  3.  * Licensed under the MIT License,
  4.  *                http://www.opensource.org/licenses/mit-license.php
  5.  * Copyright 2009 Bo Yang <struggleyb.nku@gmail.com>
  6.  */
  7.  
  8. #ifndef dom_events_internal_mouse_wheel_event_h_
  9. #define dom_events_internal_mouse_wheel_event_h_
  10.  
  11. #include <dom/events/mouse_wheel_event.h>
  12.  
  13. #include "events/mouse_event.h"
  14.  
  15. /**
  16.  * The MouseWheelEvent
  17.  */
  18. struct dom_mouse_wheel_event {
  19.         struct dom_mouse_event base;    /**< The base class */
  20.  
  21.         int32_t delta;  /**< The wheelDelta */
  22. };
  23.  
  24. /* Constructor */
  25. dom_exception _dom_mouse_wheel_event_create(struct dom_document *doc,
  26.                 struct dom_mouse_wheel_event **evt);
  27.  
  28. /* Destructor */
  29. void _dom_mouse_wheel_event_destroy(struct dom_mouse_wheel_event *evt);
  30.  
  31. /* Initialise function */
  32. dom_exception _dom_mouse_wheel_event_initialise(struct dom_document *doc,
  33.                 struct dom_mouse_wheel_event *evt);
  34.  
  35. /* Finalise function */
  36. #define _dom_mouse_wheel_event_finalise _dom_mouse_event_finalise
  37.  
  38. #endif
  39.  
  40.