Files
HtmlRW/Sources/BindingGenerator/Internal/GlobalEventKey.swift

93 lines
2.6 KiB
Swift

//
// GlobalEventKey.swift
// HRW
//
// Created by Isaac Paul on 10/22/24.
// Non-commercial license, see LICENSE.MD in the project root for details
//
public protocol IGlobalEventContainer {
var globalEvents:Dictionary<GlobalEventKey, String> { get set }
}
///While these attributes apply to all elements, they are not useful on all elements. For example, only media elements will ever receive a volumechange event fired by the user agent.
public enum GlobalEventKey: Substring {
case onauxclick
case onbeforeinput
case onbeforematch
case onbeforetoggle
/// when specified on body elements it exposes event handlers of the Window object with the same names.
case onblur
case oncancel
case oncanplay
case oncanplaythrough
case onchange
case onclick
case onclose
case oncontextlost
case oncontextmenu
case oncontextrestored
case oncopy
case oncuechange
case oncut
case ondblclick
case ondrag
case ondragend
case ondragenter
case ondragleave
case ondragover
case ondragstart
case ondrop
case ondurationchange
case onemptied
case onended
/// when specified on body elements it exposes event handlers of the Window object with the same names.
case onerror
/// when specified on body elements it exposes event handlers of the Window object with the same names.
case onfocus
case onformdata
case oninput
case oninvalid
case onkeydown
case onkeypress
case onkeyup
/// when specified on body elements it exposes event handlers of the Window object with the same names.
case onload
case onloadeddata
case onloadedmetadata
case onloadstart
case onmousedown
case onmouseenter
case onmouseleave
case onmousemove
case onmouseout
case onmouseover
case onmouseup
case onpaste
case onpause
case onplay
case onplaying
case onprogress
case onratechange
case onreset
/// when specified on body elements it exposes event handlers of the Window object with the same names.
case onresize
/// when specified on body elements it exposes event handlers of the Window object with the same names.
case onscroll
/// when specified on body elements it exposes event handlers of the Window object with the same names.
case onscrollend
case onsecuritypolicyviolation
case onseeked
case onseeking
case onselect
case onslotchange
case onstalled
case onsubmit
case onsuspend
case ontimeupdate
case ontoggle
case onvolumechange
case onwaiting
case onwheel
}