Open Classswiftwasm.webapikit 0.1.0DOM
Event
Generated.swift:5219class Event
class Event
import DOM
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 Copyable
A type whose values can be implicitly or explicitly copied.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Escapable
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: EventInit? = nil)
required init(unsafelyWrapping jsObject: JSObject)
static let AT_TARGET: UInt16
static let BUBBLING_PHASE: UInt16
static let CAPTURING_PHASE: UInt16
static let NONE: UInt16
class var constructor: JSFunction? { get }
@ReadonlyAttribute var bubbles: Bool { get }
@ReadWriteAttribute var cancelBubble: Bool { get set }
@ReadonlyAttribute var cancelable: Bool { get }
@ReadonlyAttribute var composed: Bool { get }
@ReadonlyAttribute var currentTarget: EventTarget? { get }
@ReadonlyAttribute var defaultPrevented: Bool { get }
@ReadonlyAttribute var eventPhase: UInt16 { get }
@ReadonlyAttribute var isTrusted: Bool { get }
let jsObject: JSObject
@ReadWriteAttribute var returnValue: Bool { get set }
@ReadonlyAttribute var srcElement: EventTarget? { get }
@ReadonlyAttribute var target: EventTarget? { get }
@ReadonlyAttribute var timeStamp: DOMHighResTimeStamp { get }
@ReadonlyAttribute var type: String { get }
func composedPath() -> [EventTarget]
func initEvent(type: String, bubbles: Bool? = nil, cancelable: Bool? = nil)
func preventDefault()
func stopImmediatePropagation()
func stopPropagation()
init?(from value: JSValue)
init?(from object: JSObject)
static func construct(from value: JSValue) -> Self?
var description: String { get }
var jsValue: JSValue { get }
func jsValue() -> JSValue
class BeforeUnloadEvent
class BlobEvent
class CustomEvent
class ErrorEvent
class FormDataEvent
class HashChangeEvent
class MediaQueryListEvent
class MediaStreamTrackEvent
class MessageEvent
class MutationEvent
class NavigateEvent
class NavigationCurrentEntryChangeEvent
class PageTransitionEvent
class PopStateEvent
class ProgressEvent
class PromiseRejectionEvent
class StorageEvent
class SubmitEvent
class ToggleEvent
class TrackEvent
class UIEvent
import Gamepad
class GamepadEvent
import SVG
class TimeEvent
import CSSOM
class MediaQueryListEvent
import WebAudio
class AudioProcessingEvent
class AudioRenderCapacityEvent
class OfflineAudioCompletionEvent
import WebGL1
class WebGLContextEvent
import WebGPU
class GPUUncapturedErrorEvent
import WebSockets
class CloseEvent