// Automatically generated by CodeGeneratorJava.pm. Do not edit.

package com.sun.webkit.dom;

import org.w3c.dom.views.AbstractView;

public class WheelEventImpl extends MouseEventImpl {
    WheelEventImpl(long peer) {
        super(peer);
    }

    static WheelEventImpl getImpl(long peer) {
        return (WheelEventImpl)create(peer);
    }


//constants
    public static final int DOM_DELTA_PIXEL = 0x00;
    public static final int DOM_DELTA_LINE = 0x01;
    public static final int DOM_DELTA_PAGE = 0x02;

//attributes
    public int getWheelDeltaX() {
        return getWheelDeltaXImpl(getPeer());
    }
    native static int getWheelDeltaXImpl(long peer);

    public int getWheelDeltaY() {
        return getWheelDeltaYImpl(getPeer());
    }
    native static int getWheelDeltaYImpl(long peer);

    public int getDeltaMode() {
        return getDeltaModeImpl(getPeer());
    }
    native static int getDeltaModeImpl(long peer);

    public int getWheelDelta() {
        return getWheelDeltaImpl(getPeer());
    }
    native static int getWheelDeltaImpl(long peer);

    public boolean getWebkitDirectionInvertedFromDevice() {
        return getWebkitDirectionInvertedFromDeviceImpl(getPeer());
    }
    native static boolean getWebkitDirectionInvertedFromDeviceImpl(long peer);


//functions
    public void initWheelEvent(int wheelDeltaX
        , int wheelDeltaY
        , AbstractView view
        , int screenX
        , int screenY
        , int clientX
        , int clientY
        , boolean ctrlKey
        , boolean altKey
        , boolean shiftKey
        , boolean metaKey)
    {
        initWheelEventImpl(getPeer()
            , wheelDeltaX
            , wheelDeltaY
            , DOMWindowImpl.getPeer(view)
            , screenX
            , screenY
            , clientX
            , clientY
            , ctrlKey
            , altKey
            , shiftKey
            , metaKey);
    }
    native static void initWheelEventImpl(long peer
        , int wheelDeltaX
        , int wheelDeltaY
        , long view
        , int screenX
        , int screenY
        , int clientX
        , int clientY
        , boolean ctrlKey
        , boolean altKey
        , boolean shiftKey
        , boolean metaKey);


}

