001package gwt.material.design.jquery.client.api;
002
003/*
004 * #%L
005 * GwtMaterial
006 * %%
007 * Copyright (C) 2015 - 2017 GwtMaterialDesign
008 * %%
009 * Licensed under the Apache License, Version 2.0 (the "License");
010 * you may not use this file except in compliance with the License.
011 * You may obtain a copy of the License at
012 * 
013 *      http://www.apache.org/licenses/LICENSE-2.0
014 * 
015 * Unless required by applicable law or agreed to in writing, software
016 * distributed under the License is distributed on an "AS IS" BASIS,
017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
018 * See the License for the specific language governing permissions and
019 * limitations under the License.
020 * #L%
021 */
022
023import gwt.material.design.jscore.client.api.core.Element;
024import jsinterop.annotations.JsConstructor;
025import jsinterop.annotations.JsOverlay;
026import jsinterop.annotations.JsProperty;
027import jsinterop.annotations.JsType;
028
029/**
030 * MouseEvent for JQuery.
031 * 
032 * @author Ben Dol
033 */
034@JsType(namespace = "jQuery", name = "Event", isNative=true)
035public class MouseEvent extends KeyEvent {
036
037    public MouseEvent(String type) {
038        super(type);
039    }
040
041    @JsProperty
042    public int pageX;
043
044    @JsOverlay
045    public final int getPageX() {
046        return pageX;
047    }
048
049    @JsProperty
050    public int pageY;
051
052    @JsOverlay
053    public final int getPageY() {
054        return pageY;
055    }
056
057    @JsProperty
058    public int clientX;
059
060    @JsOverlay
061    public final int getClientX() {
062        return clientX;
063    }
064
065    @JsProperty
066    public int clientY;
067
068    @JsOverlay
069    public final int getClientY() {
070        return clientY;
071    }
072
073    @JsProperty
074    public int offsetX;
075
076    @JsOverlay
077    public final int getOffsetX() {
078        return offsetX;
079    }
080
081    @JsProperty
082    public int offsetY;
083
084    @JsOverlay
085    public final int getOffsetY() {
086        return offsetY;
087    }
088
089    @JsProperty
090    public int screenX;
091
092    @JsOverlay
093    public final int getScreenX() {
094        return screenX;
095    }
096
097    @JsProperty
098    public int screenY;
099
100    @JsOverlay
101    public final int getScreenY() {
102        return screenY;
103    }
104
105    @JsProperty
106    public Element target;
107
108    @JsOverlay
109    public final Element getTarget() {
110        return target;
111    }
112
113    @JsProperty
114    public Element toElement;
115
116    @JsOverlay
117    public final Element getToElement() {
118        return toElement;
119    }
120
121    @JsProperty
122    public int button;
123
124    @JsOverlay
125    public final int getButton() {
126        return button;
127    }
128
129    @JsProperty
130    public int buttons;
131
132    @JsOverlay
133    public final int getButtons() {
134        return buttons;
135    }
136}