MouseEvent
Generated.swift:11853class MouseEvent
class MouseEvent
import DOM
class UIEvent
protocol Any_Event_or_String : ConvertibleToJSValue
protocol ConstructibleFromJSValue
Types conforming to this protocol can be constructed from JSValue
.
protocol ConvertibleToJSValue
Objects that can be converted to a JavaScript value, preferably in a lossless manner.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol JSBridgedClass : JSBridgedType
Conform to this protocol when your Swift class wraps a JavaScript class.
protocol JSBridgedType : ConstructibleFromJSValue, ConvertibleToJSValue, CustomStringConvertible
Use this protocol when your type has no single JavaScript class. For example, a union type of multiple classes or primitive values.
convenience init(type: String, eventInitDict: MouseEventInit? = nil)
required init(unsafelyWrapping jsObject: JSObject)
override class var constructor: JSFunction? { get }
@ReadonlyAttribute var altKey: Bool { get }
@ReadonlyAttribute var button: Int16 { get }
@ReadonlyAttribute var buttons: UInt16 { get }
@ReadonlyAttribute var clientX: Int32 { get }
@ReadonlyAttribute var clientY: Int32 { get }
@ReadonlyAttribute var ctrlKey: Bool { get }
@ReadonlyAttribute var metaKey: Bool { get }
@ReadonlyAttribute var offsetX: Double { get }
@ReadonlyAttribute var offsetY: Double { get }
@ReadonlyAttribute var pageX: Double { get }
@ReadonlyAttribute var pageY: Double { get }
@ReadonlyAttribute var relatedTarget: EventTarget? { get }
@ReadonlyAttribute var screenX: Int32 { get }
@ReadonlyAttribute var screenY: Int32 { get }
@ReadonlyAttribute var shiftKey: Bool { get }
@ReadonlyAttribute var x: Double { get }
@ReadonlyAttribute var y: Double { get }
func getModifierState(keyArg: String) -> Bool
func initMouseEvent(typeArg: String, bubblesArg: Bool? = nil, cancelableArg: Bool? = nil, viewArg: Window? = nil, detailArg: Int32? = nil, screenXArg: Int32? = nil, screenYArg: Int32? = nil, clientXArg: Int32? = nil, clientYArg: Int32? = nil, ctrlKeyArg: Bool? = nil, altKeyArg: Bool? = nil, shiftKeyArg: Bool? = nil, metaKeyArg: Bool? = nil, buttonArg: Int16? = nil, relatedTargetArg: EventTarget? = nil)
class DragEvent
class WheelEvent