001package react4j.dom.events;
002
003import akasha.EventTarget;
004import javax.annotation.Nonnull;
005import jsinterop.annotations.JsOverlay;
006import jsinterop.annotations.JsPackage;
007import jsinterop.annotations.JsType;
008
009@JsType( isNative = true, namespace = JsPackage.GLOBAL, name = "Object" )
010@SuppressWarnings( "unused" )
011public class MouseEvent
012  extends SyntheticEvent<akasha.MouseEvent>
013{
014  private boolean altKey;
015  private int button;
016  private int buttons;
017  private int clientX;
018  private int clientY;
019  private boolean ctrlKey;
020  private boolean metaKey;
021  private int pageX;
022  private int pageY;
023  private EventTarget relatedTarget;
024  private int screenX;
025  private int screenY;
026  private boolean shiftKey;
027
028  public native boolean getModifierState( @Nonnull String key );
029
030  @JsOverlay
031  public final boolean isAltKey()
032  {
033    return altKey;
034  }
035
036  @JsOverlay
037  public final int getButton()
038  {
039    return button;
040  }
041
042  @JsOverlay
043  public final int getButtons()
044  {
045    return buttons;
046  }
047
048  @JsOverlay
049  public final int getClientX()
050  {
051    return clientX;
052  }
053
054  @JsOverlay
055  public final int getClientY()
056  {
057    return clientY;
058  }
059
060  @JsOverlay
061  public final boolean isCtrlKey()
062  {
063    return ctrlKey;
064  }
065
066  @JsOverlay
067  public final boolean isMetaKey()
068  {
069    return metaKey;
070  }
071
072  @JsOverlay
073  public final int getPageX()
074  {
075    return pageX;
076  }
077
078  @JsOverlay
079  public final int getPageY()
080  {
081    return pageY;
082  }
083
084  @JsOverlay
085  public final EventTarget getRelatedTarget()
086  {
087    return relatedTarget;
088  }
089
090  @JsOverlay
091  public final int getScreenX()
092  {
093    return screenX;
094  }
095
096  @JsOverlay
097  public final int getScreenY()
098  {
099    return screenY;
100  }
101
102  @JsOverlay
103  public final boolean isShiftKey()
104  {
105    return shiftKey;
106  }
107}