Class

io.scalajs.dom.event

MouseEvent

Related Doc: package event

Permalink

class MouseEvent extends Object with Event

Mouse Event Object

Annotations
@RawJSType() @native()
Linear Supertypes
Event, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MouseEvent
  2. Event
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MouseEvent()

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val AT_TARGET: Int

    Permalink

    The current event is in the target phase, i.e.

    The current event is in the target phase, i.e. it is being evaluated at the event target (2)

    Definition Classes
    Event
  5. val BUBBLING_PHASE: Int

    Permalink

    The current event phase is the bubbling phase (3)

    The current event phase is the bubbling phase (3)

    Definition Classes
    Event
  6. val CAPTURING_PHASE: Int

    Permalink

    The current event phase is the capture phase (1)

    The current event phase is the capture phase (1)

    Definition Classes
    Event
  7. def altKey: Int

    Permalink

    Returns whether the "ALT" key was pressed when the mouse event was triggered

  8. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  9. def bubbles: Boolean

    Permalink

    Returns whether or not a specific event is a bubbling event

    Returns whether or not a specific event is a bubbling event

    Definition Classes
    Event
  10. def button: Int

    Permalink

    Returns which mouse button was pressed when the mouse event was triggered 2

  11. def buttons: Int

    Permalink

    Returns which mouse buttons were pressed when the mouse event was triggered

  12. def cancelable: Boolean

    Permalink

    Returns whether or not an event can have its default action prevented

    Returns whether or not an event can have its default action prevented

    Definition Classes
    Event
  13. def clientX: Int

    Permalink

    Returns the horizontal coordinate of the mouse pointer, relative to the current window, when the mouse event was triggered

  14. def clientY: Int

    Permalink

    Returns the vertical coordinate of the mouse pointer, relative to the current window, when the mouse event was triggered

  15. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  16. def ctrlKey: Int

    Permalink

    Returns whether the "CTRL" key was pressed when the mouse event was triggered

  17. def currentTarget: Element

    Permalink

    Returns the element whose event listeners triggered the event

    Returns the element whose event listeners triggered the event

    Definition Classes
    Event
  18. def defaultPrevented: Boolean

    Permalink

    Returns whether or not the preventDefault() method was called for the event

    Returns whether or not the preventDefault() method was called for the event

    Definition Classes
    Event
  19. def detail: Int

    Permalink

    Returns a number that indicates how many times the mouse was clicked

  20. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  22. def eventPhase: String

    Permalink

    Returns which phase of the event flow is currently being evaluated

    Returns which phase of the event flow is currently being evaluated

    Definition Classes
    Event
  23. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  24. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  25. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  26. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  27. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  28. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  29. def isTrusted: Boolean

    Permalink

    Returns whether or not an event is trusted

    Returns whether or not an event is trusted

    Definition Classes
    Event
  30. def metaKey: Int

    Permalink

    Returns whether the "META" key was pressed when an event was triggered

  31. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  32. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  33. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  34. def pageX: Int

    Permalink

    Returns the horizontal coordinate of the mouse pointer, relative to the document, when the mouse event was triggered

  35. def pageY: Int

    Permalink

    Returns the vertical coordinate of the mouse pointer, relative to the document, when the mouse event was triggered

  36. def preventDefault(): Unit

    Permalink

    Cancels the event if it is cancelable, meaning that the default action that belongs to the event will not occur

    Cancels the event if it is cancelable, meaning that the default action that belongs to the event will not occur

    Definition Classes
    Event
  37. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  38. def relatedTarget: Element

    Permalink

    Returns the element related to the element that triggered the mouse event

  39. def screenX: Int

    Permalink

    Returns the horizontal coordinate of the mouse pointer, relative to the screen, when an event was triggered

  40. def screenY: Int

    Permalink

    Returns the vertical coordinate of the mouse pointer, relative to the screen, when an event was triggered

  41. def shiftKey: Int

    Permalink

    Returns whether the "SHIFT" key was pressed when an event was triggered

  42. def stopImmediatePropagation(): Unit

    Permalink

    Prevents other listeners of the same event from being called

    Prevents other listeners of the same event from being called

    Definition Classes
    Event
  43. def stopPropagation(): Unit

    Permalink

    Prevents further propagation of an event during event flow

    Prevents further propagation of an event during event flow

    Definition Classes
    Event
  44. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  45. def target: Element

    Permalink

    Returns the element that triggered the event

    Returns the element that triggered the event

    Definition Classes
    Event
  46. def timeStamp: Double

    Permalink

    Returns the time (in milliseconds relative to the epoch) at which the event was created

    Returns the time (in milliseconds relative to the epoch) at which the event was created

    Definition Classes
    Event
  47. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  48. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  49. def type: String

    Permalink

    Returns the name of the event

    Returns the name of the event

    Definition Classes
    Event
  50. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  51. def view: Any

    Permalink

    Returns a reference to the Window object where the event occurred TODO is this really a reference to Window?

    Returns a reference to the Window object where the event occurred TODO is this really a reference to Window?

    Definition Classes
    Event
  52. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  54. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  55. def which: Int

    Permalink

    Returns which mouse button was pressed when the mouse event was triggered

Inherited from Event

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped