.. role:: ts-api-decorator

####################
MouseWheelInputEvent
####################

.. js:module:: Event
   :noindex:

.. container:: ts-api-section

   .. js:class:: MouseWheelInputEvent



.. container:: api-index-section

   .. rubric:: Accessors

   .. rst-class:: api-index-list-item api-kind-accessor api-parent-kind-class

   * :js:attr:`~Event.MouseWheelInputEvent.viewKey`



.. container:: api-index-section

   .. rubric:: Methods

   .. rst-class:: api-index-list-item api-kind-method api-parent-kind-class

   * :js:meth:`~Event.MouseWheelInputEvent.altDown`
   * :js:meth:`~Event.MouseWheelInputEvent.commandDown`
   * :js:meth:`~Event.MouseWheelInputEvent.controlDown`
   * :js:meth:`~Event.MouseWheelInputEvent.getButtons`
   * :js:meth:`~Event.MouseWheelInputEvent.getDate`
   * :js:meth:`~Event.MouseWheelInputEvent.getEventType`
   * :js:meth:`~Event.MouseWheelInputEvent.getHandled`
   * :js:meth:`~Event.MouseWheelInputEvent.getModifiers`
   * :js:meth:`~Event.MouseWheelInputEvent.getPosition`
   * :js:meth:`~Event.MouseWheelInputEvent.getWheelDelta`
   * :js:meth:`~Event.MouseWheelInputEvent.setHandled`
   * :js:meth:`~Event.MouseWheelInputEvent.shiftDown`





------------

Accessors
=========

.. container:: ts-api-section

   .. js:function:: viewKey()
      :noindex:



      Get the ViewKey this event is associated with.


      :rtype: ViewKey



Methods
=======

.. rst-class:: ts-api-section

altDown
-------

.. js:method:: MouseWheelInputEvent.altDown()



   gets the state of the alt key

   :returns: whether the alt key was down when this event was generated


   :rtype: boolean

.. rst-class:: ts-api-section

commandDown
-----------

.. js:method:: MouseWheelInputEvent.commandDown()



   gets the state of the command key

   :returns: whether the command key was down when this event was generated


   :rtype: boolean

.. rst-class:: ts-api-section

controlDown
-----------

.. js:method:: MouseWheelInputEvent.controlDown()



   gets the state of the control key

   :returns: whether the control key was down when this event was generated


   :rtype: boolean

.. rst-class:: ts-api-section

getButtons
----------

.. js:method:: MouseWheelInputEvent.getButtons()



   gets the mouse buttons currently pressed with this event

   :returns: the mouse buttons currently pressed for this event


   :rtype: Buttons

.. rst-class:: ts-api-section

getDate
-------

.. js:method:: MouseWheelInputEvent.getDate()



   Gets the Date this event occurred

   :returns: the event Date


   :rtype: Date

.. rst-class:: ts-api-section

getEventType
------------

.. js:method:: MouseWheelInputEvent.getEventType()



   gets the event type

   :returns: the type of mouse event


   :rtype: MouseInputType

.. rst-class:: ts-api-section

getHandled
----------

.. js:method:: MouseWheelInputEvent.getHandled()



   Gets the handled state of the event

   :returns: whether the event has been handled


   :rtype: boolean

.. rst-class:: ts-api-section

getModifiers
------------

.. js:method:: MouseWheelInputEvent.getModifiers()



   gets the event modifiers

   :returns: bitwise combination of KeyModifiers


   :rtype: KeyModifiers

.. rst-class:: ts-api-section

getPosition
-----------

.. js:method:: MouseWheelInputEvent.getPosition()



   gets the window position of the mouse pointer for this event

   :returns: the mouse position for this event


   :rtype: Point2

.. rst-class:: ts-api-section

getWheelDelta
-------------

.. js:method:: MouseWheelInputEvent.getWheelDelta()



   Gets the wheel delta for this event. A positive value indicates that the wheel was scrolled Up, while a negative value indicated the wheel was scrolled down.

   :returns: Wheel dela value


   :rtype: number

.. rst-class:: ts-api-section

setHandled
----------

.. js:method:: MouseWheelInputEvent.setHandled( handled)

   :param handled: Indicates whether this event has been handled.
   :type handled: boolean


   Sets the handled state of the event. When an event has been handled it will not propagate any further


   :rtype: void

.. rst-class:: ts-api-section

shiftDown
---------

.. js:method:: MouseWheelInputEvent.shiftDown()



   gets the state of the shift key

   :returns: whether the shift key was down when this event was generated


   :rtype: boolean

